Team: Add an endpoint for bulk team membership updates (#87441)

* add an endpoint for bulk team membership updates

* update comment

* schema gen

* test fix

* add swagger parameter definition
This commit is contained in:
Ieva
2024-05-17 13:41:41 +03:00
committed by GitHub
parent 7726631fe8
commit da1a99d729
9 changed files with 407 additions and 1 deletions
@@ -126,6 +126,7 @@ type SyncUserRolesCommand struct {
type TeamPermissionsService interface {
GetPermissions(ctx context.Context, user identity.Requester, resourceID string) ([]ResourcePermission, error)
SetUserPermission(ctx context.Context, orgID int64, user User, resourceID, permission string) (*ResourcePermission, error)
SetPermissions(ctx context.Context, orgID int64, resourceID string, commands ...SetResourcePermissionCommand) ([]ResourcePermission, error)
}
type FolderPermissionsService interface {