forked from forgejo/forgejo
[API] User expose counters (#16167)
This commit is contained in:
parent
9469e14dc6
commit
c9d053f0ca
3 changed files with 25 additions and 0 deletions
|
@ -43,6 +43,11 @@ type User struct {
|
|||
Website string `json:"website"`
|
||||
// the user's description
|
||||
Description string `json:"description"`
|
||||
|
||||
// user counts
|
||||
Followers int `json:"followers_count"`
|
||||
Following int `json:"following_count"`
|
||||
StarredRepos int `json:"starred_repos_count"`
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaler interface for User, adding field(s) for backward compatibility
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue