1234567891011121314151617181920
  1. package service
  2. import (
  3. "spaceofcheng/services/models/system"
  4. "spaceofcheng/services/utils"
  5. )
  6. // DictServ 系统处理
  7. type DictServ struct {
  8. ctx *utils.Context
  9. dao *system.DictDAO
  10. }
  11. // NewDictServ 初始化
  12. func NewDictServ(ctx *utils.Context) *DictServ {
  13. return &DictServ{
  14. ctx: ctx,
  15. dao: system.NewDictDAO(ctx),
  16. }
  17. }