org_team.go 560 B

123456789101112131415161718
  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. }