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.

28 lines
699 B

  1. package sso
  2. type User struct {
  3. Uid string `json:"uid"`
  4. UidNumber string `json:"uidNumber"`
  5. Name string `json:"name"`
  6. FirstName string `json:"firstname"`
  7. LastName string `json:"lastname"`
  8. RealName string `json:"realname"`
  9. Mobile string `json:"mobile"`
  10. Mail string `json:"mail"`
  11. Department Department `json:"department"`
  12. Roles []Role `json:"roles"`
  13. Domains []string `json:"domains"`
  14. }
  15. type Department struct {
  16. Gid string `json:"gid"`
  17. Name string `json:"name"`
  18. Abbr string `json:"abbr"`
  19. }
  20. type Role struct {
  21. Name string `json:"name"`
  22. Domains []string `json:"domains"`
  23. Abbr string `json:"abbr"`
  24. }