sys_config.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. comModel "dashoo.cn/micro/app/common/model"
  7. "dashoo.cn/micro/app/model/internal"
  8. )
  9. // SysConfig is the golang structure for table sys_config.
  10. type SysConfig internal.SysConfig
  11. // Fill with you ideas below.
  12. // 分页请求参数
  13. type SysConfigSearchReq struct {
  14. ConfigName string `p:"configName"` //参数名称
  15. ConfigKey string `p:"configKey"` //参数键名
  16. ConfigType string `p:"configType"` //状态
  17. BeginTime string `p:"beginTime"` //开始时间
  18. EndTime string `p:"endTime"` //结束时间
  19. comModel.PageReq
  20. }
  21. // 新增页面请求参数
  22. type SysConfigAddReq struct {
  23. ConfigName string `p:"configName" v:"required#参数名称不能为空"`
  24. ConfigKey string `p:"configKey" v:"required#参数键名不能为空"`
  25. ConfigValue string `p:"configValue" v:"required#参数键值不能为空"`
  26. ConfigType int `p:"configType" v:"required|in:0,1#系统内置不能为空|系统内置类型只能为0或1"`
  27. Remark string `p:"remark"`
  28. CreateBy uint64
  29. }
  30. // 修改页面请求参数
  31. type SysConfigEditReq struct {
  32. ConfigId int64 `p:"configId" v:"required|min:1#主键ID不能为空|主键ID参数错误"`
  33. UpdateBy uint64
  34. SysConfigAddReq
  35. }