Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserListResponse ¶
type UserListResponse struct {
List []UserResponse `json:"list"`
Total int64 `json:"total"`
}
type UserResponse ¶
type UserResponse struct {
ID uint64 `json:"id"`
Telephone string `json:"telephone"`
Avatar string `json:"avatar"`
Nickname string `json:"nickname"`
RealName string `json:"real_name"`
Gender uint8 `json:"gender"`
Birthday string `json:"birthday"`
Status uint8 `json:"status"`
}
func FromDomainUser ¶
func FromDomainUser(user *model.User) *UserResponse
func ListFromDomainUser ¶
func ListFromDomainUser(users []model.User) []UserResponse
Click to show internal directories.
Click to hide internal directories.