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 561B

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