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.

36 lines
1.2 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 VisibleType `json:"visibility"`
  15. }
  16. // CreateOrgOption options for creating an organization
  17. type CreateOrgOption struct {
  18. // required: true
  19. UserName string `json:"username" binding:"Required"`
  20. FullName string `json:"full_name"`
  21. Description string `json:"description"`
  22. Website string `json:"website"`
  23. Location string `json:"location"`
  24. Visibility VisibleType `json:"visibility"`
  25. }
  26. // EditOrgOption options for editing an organization
  27. type EditOrgOption struct {
  28. FullName string `json:"full_name"`
  29. Description string `json:"description"`
  30. Website string `json:"website"`
  31. Location string `json:"location"`
  32. }