34 lines
974 B
Go
34 lines
974 B
Go
package vo
|
|
|
|
import (
|
|
"wireguard-ui/global/constant"
|
|
"wireguard-ui/model"
|
|
)
|
|
|
|
// UserItem
|
|
// @description: 用户列表的数据
|
|
type UserItem struct {
|
|
Id string `json:"id"`
|
|
Account string `json:"account"`
|
|
Nickname string `json:"nickname"`
|
|
Avatar string `json:"avatar"`
|
|
Contact string `json:"contact"`
|
|
IsAdmin constant.UserType `json:"isAdmin"`
|
|
Status constant.Status `json:"status"`
|
|
CreatedAt model.JsonTime `json:"createdAt"`
|
|
UpdatedAt model.JsonTime `json:"updatedAt"`
|
|
}
|
|
|
|
// User
|
|
// @description: 用户信息
|
|
type User struct {
|
|
Id string `json:"id"`
|
|
Account string `json:"account"`
|
|
Password string `json:"-"`
|
|
Nickname string `json:"nickname"`
|
|
Avatar string `json:"avatar"`
|
|
Contact string `json:"contact"`
|
|
IsAdmin constant.UserType `json:"isAdmin"`
|
|
Status constant.Status `json:"status"`
|
|
}
|