43 lines
1.7 KiB
Go
43 lines
1.7 KiB
Go
|
package domain
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type UserCreateRequest struct {
|
||
|
CreatedAt time.Time `json:"created_at"`
|
||
|
Email string `json:"email"`
|
||
|
FullName string `json:"full_name"`
|
||
|
LoginName string `json:"login_name"`
|
||
|
MustChangePassword bool `json:"must_change_password"`
|
||
|
Password string `json:"password"`
|
||
|
Restricted bool `json:"restricted"`
|
||
|
SendNotify bool `json:"send_notify"`
|
||
|
SourceID int `json:"source_id"`
|
||
|
Username string `json:"username"`
|
||
|
}
|
||
|
|
||
|
type UserGet struct {
|
||
|
ID int `json:"id"`
|
||
|
Login string `json:"login"`
|
||
|
LoginName string `json:"login_name"`
|
||
|
SourceID int `json:"source_id"`
|
||
|
FullName string `json:"full_name"`
|
||
|
Email string `json:"email"`
|
||
|
AvatarURL string `json:"avatar_url"`
|
||
|
HTMLURL string `json:"html_url"`
|
||
|
Language string `json:"language"`
|
||
|
IsAdmin bool `json:"is_admin"`
|
||
|
LastLogin time.Time `json:"last_login"`
|
||
|
Created time.Time `json:"created"`
|
||
|
Restricted bool `json:"restricted"`
|
||
|
Active bool `json:"active"`
|
||
|
ProhibitLogin bool `json:"prohibit_login"`
|
||
|
Location string `json:"location"`
|
||
|
Website string `json:"website"`
|
||
|
Description string `json:"description"`
|
||
|
Visibility string `json:"visibility"`
|
||
|
FollowersCount int `json:"followers_count"`
|
||
|
FollowingCount int `json:"following_count"`
|
||
|
StarredReposCount int `json:"starred_repos_count"`
|
||
|
Username string `json:"username"`
|
||
|
}
|