sys_config.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // =================================================================================
  2. // Code generated by GoFrame CLI tool. DO NOT EDIT.
  3. // =================================================================================
  4. package model
  5. import (
  6. "github.com/gogf/gf/os/gtime"
  7. )
  8. // SysConfig is the golang structure for table sys_config.
  9. type SysConfig struct {
  10. ConfigId uint `orm:"config_id,primary" json:"configId"` // 参数主键
  11. ConfigName string `orm:"config_name" json:"configName"` // 参数名称
  12. ConfigKey string `orm:"config_key,unique" json:"configKey"` // 参数键名
  13. ConfigValue string `orm:"config_value" json:"configValue"` // 参数键值
  14. ConfigType int `orm:"config_type" json:"configType"` // 系统内置(Y是 N否)
  15. CreateBy uint `orm:"create_by" json:"createBy"` // 创建者
  16. UpdateBy uint `orm:"update_by" json:"updateBy"` // 更新者
  17. Remark string `orm:"remark" json:"remark"` // 备注
  18. CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
  19. UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 修改时间
  20. DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
  21. }
  22. //分页请求参数
  23. type SysConfigSearchReq struct {
  24. ConfigName string `p:"configName"` //参数名称
  25. ConfigKey string `p:"configKey"` //参数键名
  26. ConfigType string `p:"configType"` //状态
  27. BeginTime string `p:"beginTime"` //开始时间
  28. EndTime string `p:"endTime"` //结束时间
  29. PageReq
  30. }
  31. //新增页面请求参数
  32. type SysConfigAddReq struct {
  33. ConfigName string `p:"configName" v:"required#参数名称不能为空"`
  34. ConfigKey string `p:"configKey" v:"required#参数键名不能为空"`
  35. ConfigValue string `p:"configValue" v:"required#参数键值不能为空"`
  36. ConfigType int `p:"configType" v:"required|in:0,1#系统内置不能为空|系统内置类型只能为0或1"`
  37. Remark string `p:"remark"`
  38. CreateBy uint64
  39. }
  40. //修改页面请求参数
  41. type SysConfigEditReq struct {
  42. ConfigId int64 `p:"configId" v:"required|min:1#主键ID不能为空|主键ID参数错误"`
  43. UpdateBy uint64
  44. SysConfigAddReq
  45. }