sys_role.go 1009 B

1234567891011121314151617181920212223242526272829303132333435
  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. // SysRole is the golang structure for table sys_role.
  10. type SysRole internal.SysRole
  11. // Fill with you ideas below.
  12. // 分页请求参数
  13. type SelectPageReq struct {
  14. RoleName string `p:"roleName"` //参数名称
  15. Status string `p:"status"` //状态
  16. comModel.PageReq
  17. }
  18. // 修改状态参数
  19. type StatusSetReq struct {
  20. RoleId uint `p:"roleId" v:"required#角色ID不能为空"`
  21. Status uint `p:"status" v:"required#状态不能为空"`
  22. }
  23. // 角色数据授权参数
  24. type DataScopeReq struct {
  25. RoleId uint `p:"roleId" v:"required#角色ID不能为空"`
  26. DataScope uint `p:"dataScope" v:"required#权限范围不能为空"`
  27. DeptIds []uint `p:"deptIds"`
  28. }