sys_config.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. "dashoo.cn/micro/app/model/internal"
  7. "dashoo.cn/opms_libary/request"
  8. )
  9. // SysConfig is the golang structure for table sys_config.
  10. type SysConfig internal.SysConfig
  11. // Fill with you ideas below.
  12. type SysConfigSearchReq struct {
  13. ConfigName string `json:"configName"` //参数名称
  14. ConfigKey string `json:"configKey"` //参数键名
  15. ConfigType string `json:"configType"` //状态
  16. request.PageReq
  17. }
  18. type CreateSysConfigReq struct {
  19. ConfigName string `json:"configName" v:"required#参数名称不能为空"`
  20. ConfigKey string `json:"configKey" v:"required#参数键名不能为空"`
  21. ConfigValue string `json:"configValue" v:"required#参数键值不能为空"`
  22. ConfigType string `json:"configType" v:"required|in:10,20#系统内置不能为空|系统内置类型只能为10或20"`
  23. Remark string `json:"remark"`
  24. }
  25. type UpdateSysConfigReq struct {
  26. Id int64 `json:"id" v:"required|min:1#主键ID不能为空|主键ID参数错误"`
  27. CreateSysConfigReq
  28. }