sys_group.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. // SysGroup is the golang structure for table sys_group.
  10. type SysGroup internal.SysGroup
  11. // Fill with you ideas below.
  12. // SysGroupSearchParams 搜索参数
  13. type SysGroupSearchParams struct {
  14. GroupCode string `p:"groupCode"` //用户组编码
  15. GroupName string `p:"groupName"` //用户组名称
  16. Status string `p:"status"` //状态
  17. request.PageReq
  18. }
  19. // SysGroupReq 添加用户组参数
  20. type SysGroupReq struct {
  21. GroupCode string `p:"groupCode" v:"required#用户组编码不能为空"`
  22. GroupName string `p:"groupName" v:"required#用户组名称不能为空"`
  23. Sort int `p:"sort" v:"required#用户组排序不能为空"`
  24. Status string `p:"status" v:"required|in:10,20#状态不能为空|状态只能为10或20"`
  25. Remark string `p:"remark"`
  26. }
  27. // UpdateSysGroupReq 修改用户组参数
  28. type UpdateSysGroupReq struct {
  29. Id int64 `p:"id" v:"required#id必须"`
  30. SysGroupReq
  31. }