Files
bl/modules/config/service/talkconfig.go

28 lines
503 B
Go
Raw Normal View History

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
2026-02-14 23:14:43 +08:00
dbm_enable(s.Model).Where("type", flag).Scan(&config)
return config
}