Files
bl/modules/config/service/talkconfig.go
昔念 e1f910848f
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
1
2026-02-14 23:14:43 +08:00

28 lines
503 B
Go

package service
import (
"blazing/cool"
"blazing/modules/config/model"
)
type TalkConfigService struct {
*cool.Service
}
func NewTalkConfigService() *TalkConfigService {
return &TalkConfigService{
Service: &cool.Service{Model: model.NewMineralCollectionConfig()},
// Cache: gcache.New()},
}
}
func (s *TalkConfigService) GetCache(flag int) model.MineralCollectionConfig {
var config model.MineralCollectionConfig
dbm_enable(s.Model).Where("type", flag).Scan(&config)
return config
}