gitea源码

repo_collaborator.go 698B

12345678910111213141516171819202122
  1. // Copyright 2016 The Gogs Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs
  4. // AddCollaboratorOption options when adding a user as a collaborator of a repository
  5. type AddCollaboratorOption struct {
  6. // enum: read,write,admin
  7. // Permission level to grant the collaborator
  8. Permission *string `json:"permission"`
  9. }
  10. // RepoCollaboratorPermission to get repository permission for a collaborator
  11. type RepoCollaboratorPermission struct {
  12. // Permission level of the collaborator
  13. Permission string `json:"permission"`
  14. // RoleName is the name of the permission role
  15. RoleName string `json:"role_name"`
  16. // User information of the collaborator
  17. User *User `json:"user"`
  18. }