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.

org_team.go 919B

123456789101112131415161718192021222324252627
  1. // Copyright 2016 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 gitea
  5. // Team is a sub virtual organization of one Organization
  6. type Team struct {
  7. ID int64 `json:"id"`
  8. Name string `json:"name"`
  9. Description string `json:"description"`
  10. Permission string `json:"permission"`
  11. }
  12. // CreateTeamOption options when create team
  13. type CreateTeamOption struct {
  14. Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(30)"`
  15. Description string `json:"description" binding:"MaxSize(255)"`
  16. Permission string `json:"permission"`
  17. }
  18. // EditTeamOption options when edit team
  19. type EditTeamOption struct {
  20. Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(30)"`
  21. Description string `json:"description" binding:"MaxSize(255)"`
  22. Permission string `json:"permission"`
  23. }