golang 的 rabbitmq 消费项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

63 lines
2.7 KiB

  1. package arkid
  2. type ArkIDUser struct {
  3. Token string `json:"token"`
  4. UserID int `json:"user_id"`
  5. Username string `json:"username"`
  6. Name string `json:"name"`
  7. Email string `json:"email"`
  8. Mobile string `json:"mobile"`
  9. EmployeeNumber string `json:"employee_number"`
  10. Gender int `json:"gender"`
  11. Perms []string `json:"perms"`
  12. Avatar string `json:"avatar"`
  13. Roles []string `json:"roles"`
  14. PrivateEmail string `json:"private_email"`
  15. Position string `json:"position"`
  16. IsSettled bool `json:"is_settled"`
  17. IsManager bool `json:"is_manager"`
  18. IsAdmin bool `json:"is_admin"`
  19. IsExternUser bool `json:"is_extern_user"`
  20. OriginVerbose string `json:"origin_verbose"`
  21. RequireResetPassword bool `json:"require_reset_password"`
  22. HasPassword bool `json:"has_password"`
  23. }
  24. type RequestBody struct {
  25. Token string `json:"token,omitempty"`
  26. Username string `json:"username,omitempty"`
  27. Password string `json:"password,omitempty"`
  28. User struct {
  29. Avatar string `json:"avatar,omitempty"`
  30. Email string `json:"email,omitempty"`
  31. EmployeeNumber string `json:"employee_number,omitempty"`
  32. Gender int `json:"gende,omitemptyr"`
  33. Mobile string `json:"mobile,omitempty"`
  34. Name string `json:"name,omitempty"`
  35. Position string `json:"position,omitempty"`
  36. PrivateEmail string `json:"private_email,omitempty"`
  37. Username string `json:"username,omitempty"`
  38. Depts interface{} `json:"depts,omitempty"`
  39. Roles interface{} `json:"roles,omitempty"`
  40. Nodes []interface{} `json:"nodes,omitempty"`
  41. IsSettled bool `json:"is_settled,omitempty"`
  42. Password string `json:"password,omitempty"`
  43. RequireResetPassword bool `json:"require_reset_password,omitempty"`
  44. HasPassword bool `json:"has_password,omitempty"`
  45. } `json:"user,omitempty"`
  46. NodeUids []string `json:"node_uids,omitempty"`
  47. PermName string `json:"perm_name,omitempty"`
  48. UserPermStatus []struct {
  49. UID string `json:"uid,omitempty"`
  50. Status int `json:"status,omitempty"`
  51. } `json:"user_perm_status,omitempty"`
  52. }
  53. type AppAccessWhiteListResult struct {
  54. UserPermStatus []struct {
  55. UID string `json:"uid"`
  56. Status int `json:"status"`
  57. } `json:"user_perm_status"`
  58. NodePermStatus []interface{} `json:"node_perm_status"`
  59. }