You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. NumRepos int `json:"num_repos"`
  17. }
  18. // CreateOrgOption options for creating an organization
  19. type CreateOrgOption struct {
  20. // required: true
  21. UserName string `json:"username" binding:"Required"`
  22. FullName string `json:"full_name"`
  23. Description string `json:"description"`
  24. Website string `json:"website"`
  25. Location string `json:"location"`
  26. // possible values are `public` (default), `limited` or `private`
  27. // enum: public,limited,private
  28. Visibility string `json:"visibility" binding:"In(,public,limited,private)"`
  29. RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"`
  30. }
  31. // EditOrgOption options for editing an organization
  32. type EditOrgOption struct {
  33. FullName string `json:"full_name"`
  34. Description string `json:"description"`
  35. Website string `json:"website"`
  36. Location string `json:"location"`
  37. // possible values are `public`, `limited` or `private`
  38. // enum: public,limited,private
  39. Visibility string `json:"visibility" binding:"In(,public,limited,private)"`
  40. RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"`
  41. }