diff options
Diffstat (limited to 'vendor/code.gitea.io/sdk/gitea/org.go')
-rw-r--r-- | vendor/code.gitea.io/sdk/gitea/org.go | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/org.go b/vendor/code.gitea.io/sdk/gitea/org.go index 103674a701..ffdc2ffbea 100644 --- a/vendor/code.gitea.io/sdk/gitea/org.go +++ b/vendor/code.gitea.io/sdk/gitea/org.go @@ -11,6 +11,7 @@ import ( ) // Organization a group of some repositories, users and teams +// swagger:response Organization type Organization struct { ID int64 `json:"id"` UserName string `json:"username"` @@ -40,12 +41,18 @@ func (c *Client) GetOrg(orgname string) (*Organization, error) { } // CreateOrgOption create one organization options +// swagger:parameters adminCreateOrg type CreateOrgOption struct { - UserName string `json:"username" binding:"Required"` - FullName string `json:"full_name"` + // in: body + UserName string `json:"username" binding:"Required"` + // in: body + FullName string `json:"full_name"` + // in: body Description string `json:"description"` - Website string `json:"website"` - Location string `json:"location"` + // in: body + Website string `json:"website"` + // in: body + Location string `json:"location"` } // EditOrgOption edit one organization options |