附近小店
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

model.go 2.7 KiB

2 meses atrás
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. }