mod(gitea-api): add json encoding informations for all structs
This commit is contained in:
@@ -3,25 +3,25 @@ package gitea
|
||||
import "time"
|
||||
|
||||
type User struct {
|
||||
Id uint
|
||||
Login string
|
||||
Login_name string
|
||||
Full_name string
|
||||
Email string
|
||||
Avatar_url string
|
||||
Language string
|
||||
Is_admin bool
|
||||
Last_login time.Time
|
||||
Created time.Time
|
||||
Restricted bool
|
||||
Active bool
|
||||
Prohibit_login bool
|
||||
Location string
|
||||
Website string
|
||||
Description string
|
||||
Visibility string
|
||||
Followers_count uint
|
||||
Following_count uint
|
||||
Starred_repos_count uint
|
||||
Username string
|
||||
Id uint `json:"id"`
|
||||
Login string `json:"login"`
|
||||
Login_name string `json:"login_name"`
|
||||
Full_name string `json:"full_name"`
|
||||
Email string `json:"email"`
|
||||
Avatar_url string `json:"avatar_url"`
|
||||
Language string `json:"language"`
|
||||
Is_admin bool `json:"is_admin"`
|
||||
Last_login time.Time `json:"last_login"`
|
||||
Created time.Time `json:"created"`
|
||||
Restricted bool `json:"restricted"`
|
||||
Active bool `json:"active"`
|
||||
Prohibit_login bool `json:"prohibit_login"`
|
||||
Location string `json:"location"`
|
||||
Website string `json:"website"`
|
||||
Description string `json:"description"`
|
||||
Visibility string `json:"visibility"`
|
||||
Followers_count uint `json:"followers_count"`
|
||||
Following_count uint `json:"following_count"`
|
||||
Starred_repos_count uint `json:"starred_repos_count"`
|
||||
Username string `json:"username"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user