mirror of
https://gitee.com/gitea/gitea
synced 2026-01-07 08:05:47 +08:00
#1692 api: admin list and create team under organization
This commit is contained in:
@@ -196,3 +196,12 @@ func ToOrganization(org *models.User) *api.Organization {
|
||||
Location: org.Location,
|
||||
}
|
||||
}
|
||||
|
||||
func ToTeam(team *models.Team) *api.Team {
|
||||
return &api.Team{
|
||||
ID: team.ID,
|
||||
Name: team.Name,
|
||||
Description: team.Description,
|
||||
Permission: team.Authorize.String(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user