2
0

role.go 322 B

12345678910111213141516
  1. package types
  2. type RoleKind string
  3. const (
  4. RoleAdmin RoleKind = "admin"
  5. RoleDeveloper RoleKind = "developer"
  6. RoleViewer RoleKind = "viewer"
  7. RoleCustom RoleKind = "custom"
  8. )
  9. type Role struct {
  10. Kind RoleKind `json:"kind"`
  11. UserID uint `json:"user_id"`
  12. ProjectID uint `json:"project_id"`
  13. }