sys_dict_data.go 790 B

123456789101112131415161718192021222324252627
  1. /*
  2. * @desc:字典数据api
  3. * @company:云南奇讯科技有限公司
  4. * @Author: yixiaohu<yxh669@qq.com>
  5. * @Date: 2022/3/18 11:59
  6. */
  7. package system
  8. import (
  9. "github.com/gogf/gf/v2/frame/g"
  10. commonModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
  11. )
  12. // GetDictReq 获取字典信息请求参数
  13. type GetDictReq struct {
  14. g.Meta `path:"/dict/data/getDictData" tags:"get dict data" method:"get" summary:"获取字典数据公共方法"`
  15. DictType string `p:"dictType" v:"required#字典类型不能为空"`
  16. DefaultValue string `p:"defaultValue"`
  17. }
  18. // GetDictRes 完整的一个字典信息
  19. type GetDictRes struct {
  20. g.Meta `mime:"application/json" example:""`
  21. Info *commonModel.DictTypeRes `json:"info"`
  22. Values []*commonModel.DictDataRes `json:"values"`
  23. }