本站源代码
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

45 行
1.8KB

  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. }
上海开阖软件有限公司 沪ICP备12045867号-1