sys_dict_data.go 857 B

12345678910111213141516171819202122232425262728
  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:"字典管理" method:"get" summary:"获取字典数据公共方法"`
  15. Authorization string `p:"Authorization" in:"header" dc:"Bearer {{token}}"`
  16. DictType string `p:"dictType" v:"required#字典类型不能为空"`
  17. DefaultValue string `p:"defaultValue"`
  18. }
  19. // GetDictRes 完整的一个字典信息
  20. type GetDictRes struct {
  21. g.Meta `mime:"application/json"`
  22. Info *commonModel.DictTypeRes `json:"info"`
  23. Values []*commonModel.DictDataRes `json:"values"`
  24. }