38 lines
1.4 KiB
Go
38 lines
1.4 KiB
Go
// Copyright 2015 The Gogs Authors. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package structs
|
|
|
|
|
|
// Organization represents an organization
|
|
|
|
type OrganizationExt struct {
|
|
ID int64 `json:"id"`
|
|
UserName string `json:"username"`
|
|
FullName string `json:"full_name"`
|
|
AvatarURL string `json:"avatar_url"`
|
|
Description string `json:"description"`
|
|
Website string `json:"website"`
|
|
Location string `json:"location"`
|
|
Visibility string `json:"visibility"`
|
|
RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"`
|
|
OwnerTeam interface{} `json:"owner_team"` //团队关系;
|
|
}
|
|
|
|
|
|
|
|
// EditOrgOption options for editing an organization
|
|
type EditOrgOptionExt struct {
|
|
Name string `json:"name"` // 添加对name的修改,lower_name 其值跟随name变化;
|
|
FullName string `json:"full_name"`
|
|
Description string `json:"description"`
|
|
Website string `json:"website"`
|
|
Location string `json:"location"`
|
|
// possible values are `public`, `limited` or `private`
|
|
// enum: public,limited,private
|
|
Visibility string `json:"visibility" binding:"In(,public,limited,private)"`
|
|
RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"`
|
|
}
|
|
|