sys_role_admin.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package response
  2. import (
  3. "github.com/rdlucklib/rdluck_tools/paging"
  4. )
  5. type RoleAdminItemResp struct {
  6. SysRoleAdminId int `description:"绑定ID"`
  7. AdminId int `description:"管理员账号ID"`
  8. AdminName string `description:"管理员账号名称"`
  9. RealName string `description:"管理员真实姓名"`
  10. Enabled int `description:"账号状态 1:有效,0:禁用"`
  11. Mobile string `description:"管理员手机号"`
  12. DepartmentGroup string `description:"部门/分组"`
  13. LabelVal int `description:"标签:1:超级管理员,2:管理员,3:部门经理,4:组长,5:ficc销售主管"`
  14. RoleId int `description:"角色ID"`
  15. RoleName string `description:"角色名称"`
  16. }
  17. type RoleAdminListResp struct {
  18. List []*RoleAdminItemResp
  19. Paging *paging.PagingItem
  20. }
  21. // DepartmentGroupSellersResp 销售列表(根据部门、分组来)
  22. type DepartmentGroupSellersResp struct {
  23. List []DepartmentGroupSellers
  24. }
  25. type DepartmentGroupSellers struct {
  26. AdminId string `description:"系统用户id"`
  27. RealName string `description:"用户真实名称"`
  28. ChildrenList []DepartmentGroupSellers `description:"销售列表"`
  29. }
  30. // EnglishAuthRoleDetailResp 英文权限角色详情响应体
  31. type EnglishAuthRoleDetailResp struct {
  32. AdminId int `description:"用户ID"`
  33. AuthName string `description:"权限名称"`
  34. RoleTypeCode string `description:"角色类型编码"`
  35. AuthOk bool `description:"是否有权限"`
  36. }