sys_role_admin.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. type DepartmentGroupSellersResp struct {
  22. List []DepartmentGroupSellers
  23. }
  24. type DepartmentGroupSellers struct {
  25. AdminId string `description:"系统用户id"`
  26. RealName string `description:"用户真实名称"`
  27. ChildrenList []DepartmentGroupSellers `gorm:"-" description:"销售列表"`
  28. }
  29. type EnglishAuthRoleDetailResp struct {
  30. AdminId int `description:"用户ID"`
  31. AuthName string `description:"权限名称"`
  32. RoleTypeCode string `description:"角色类型编码"`
  33. AuthOk bool `description:"是否有权限"`
  34. }