sys_role.go 1021 B

12345678910111213141516171819202122232425262728293031323334
  1. // =================================================================================
  2. // This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
  3. // =================================================================================
  4. package model
  5. import (
  6. comModel "gfast/app/common/model"
  7. "gfast/app/system/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. }