user.go 300 B

123456789101112131415
  1. package model
  2. //UserRole role
  3. type UserRole struct {
  4. UID int64 `json:"uid"`
  5. Name string `json:"username"`
  6. Role int8 `json:"role"`
  7. }
  8. //UserDepart department
  9. type UserDepart struct {
  10. UID int64 `json:"uid"`
  11. Name string `json:"username"`
  12. Department string `json:"department"`
  13. }