wireguard-dashboard/http/vo/user.go

34 lines
974 B
Go
Raw Normal View History

2024-07-05 14:41:35 +08:00
package vo
2024-08-06 14:49:05 +08:00
import (
"wireguard-ui/global/constant"
"wireguard-ui/model"
)
2024-07-05 14:41:35 +08:00
// UserItem
// @description: 用户列表的数据
type UserItem struct {
2024-08-06 14:49:05 +08:00
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"`
2024-07-05 14:41:35 +08:00
}
// 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"`
}