mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 01:20:25 +08:00
39 lines
1.4 KiB
Go
39 lines
1.4 KiB
Go
package models
|
|
|
|
// 用户
|
|
type User struct {
|
|
Id uint32 `field:"id"` // ID
|
|
IsOn uint8 `field:"isOn"` // 是否启用
|
|
Username string `field:"username"` // 用户名
|
|
Password string `field:"password"` // 密码
|
|
Fullname string `field:"fullname"` // 真实姓名
|
|
Mobile string `field:"mobile"` // 手机号
|
|
Tel string `field:"tel"` // 联系电话
|
|
Remark string `field:"remark"` // 备注
|
|
Email string `field:"email"` // 邮箱地址
|
|
AvatarFileId uint64 `field:"avatarFileId"` // 头像文件ID
|
|
CreatedAt uint64 `field:"createdAt"` // 创建时间
|
|
UpdatedAt uint64 `field:"updatedAt"` // 修改时间
|
|
State uint8 `field:"state"` // 状态
|
|
}
|
|
|
|
type UserOperator struct {
|
|
Id interface{} // ID
|
|
IsOn interface{} // 是否启用
|
|
Username interface{} // 用户名
|
|
Password interface{} // 密码
|
|
Fullname interface{} // 真实姓名
|
|
Mobile interface{} // 手机号
|
|
Tel interface{} // 联系电话
|
|
Remark interface{} // 备注
|
|
Email interface{} // 邮箱地址
|
|
AvatarFileId interface{} // 头像文件ID
|
|
CreatedAt interface{} // 创建时间
|
|
UpdatedAt interface{} // 修改时间
|
|
State interface{} // 状态
|
|
}
|
|
|
|
func NewUserOperator() *UserOperator {
|
|
return &UserOperator{}
|
|
}
|