1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

#1692 api: admin list and create team under organization

This commit is contained in:
Unknwon
2016-03-21 12:47:54 -04:00
parent 60ae8ac3d2
commit e6f927f61a
15 changed files with 100 additions and 18 deletions

View File

@@ -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(),
}
}