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.

44 lines
1.8 KiB

  1. // Copyright 2015 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package structs
  5. // Organization represents an organization
  6. type Organization struct {
  7. ID int64 `json:"id"`
  8. UserName string `json:"username"`
  9. FullName string `json:"full_name"`
  10. AvatarURL string `json:"avatar_url"`
  11. Description string `json:"description"`
  12. Website string `json:"website"`
  13. Location string `json:"location"`
  14. Visibility string `json:"visibility"`
  15. RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"`
  16. }
  17. // CreateOrgOption options for creating an organization
  18. type CreateOrgOption struct {
  19. // required: true
  20. UserName string `json:"username" binding:"Required"`
  21. FullName string `json:"full_name"`
  22. Description string `json:"description"`
  23. Website string `json:"website"`
  24. Location string `json:"location"`
  25. // possible values are `public` (default), `limited` or `private`
  26. // enum: public,limited,private
  27. Visibility string `json:"visibility" binding:"In(,public,limited,private)"`
  28. RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"`
  29. }
  30. // EditOrgOption options for editing an organization
  31. type EditOrgOption struct {
  32. FullName string `json:"full_name"`
  33. Description string `json:"description"`
  34. Website string `json:"website"`
  35. Location string `json:"location"`
  36. // possible values are `public`, `limited` or `private`
  37. // enum: public,limited,private
  38. Visibility string `json:"visibility" binding:"In(,public,limited,private)"`
  39. RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"`
  40. }