org_team.go 560 B

12345678910111213141516171819
  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 gogs
  5. type Team struct {
  6. ID int64 `json:"id"`
  7. Name string `json:"name"`
  8. Description string `json:"description"`
  9. Permission string `json:"permission"`
  10. }
  11. type CreateTeamOption struct {
  12. Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(30)"`
  13. Description string `json:"description" binding:"MaxSize(255)"`
  14. Permission string `json:"permission"`
  15. }