diff options
Diffstat (limited to 'vendor/code.gitea.io/sdk/gitea/user.go')
-rw-r--r-- | vendor/code.gitea.io/sdk/gitea/user.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/user.go b/vendor/code.gitea.io/sdk/gitea/user.go index 967d8b5154..9fe2edcbf2 100644 --- a/vendor/code.gitea.io/sdk/gitea/user.go +++ b/vendor/code.gitea.io/sdk/gitea/user.go @@ -10,6 +10,7 @@ import ( ) // User represents a API user. +// swagger:response User type User struct { ID int64 `json:"id"` UserName string `json:"login"` @@ -18,6 +19,10 @@ type User struct { AvatarURL string `json:"avatar_url"` } +// UserList represents a list of API user. +// swagger:response UserList +type UserList []*User + // MarshalJSON implements the json.Marshaler interface for User, adding field(s) for backward compatibility func (u User) MarshalJSON() ([]byte, error) { // Re-declaring User to avoid recursion |