调整商户注册逻辑
This commit is contained in:
@ -8,21 +8,19 @@ import (
|
||||
|
||||
// User 用户信息
|
||||
type User struct {
|
||||
Id int64 `json:"id" orm:"id,primary"` // 用户ID
|
||||
Username string `json:"username" orm:"username,not null"` // 用户名
|
||||
PasswordHash string `json:"passwordHash" orm:"password_hash,not null"` // 密码哈希
|
||||
Nickname string `json:"nickname" orm:"nickname"` // 昵称
|
||||
Avatar string `json:"avatar" orm:"avatar"` // 头像
|
||||
Phone string `json:"phone" orm:"phone"` // 手机号
|
||||
Email string `json:"email" orm:"email"` // 邮箱
|
||||
Gender int `json:"gender" orm:"gender,default:0"` // 性别:0=未知,1=男,2=女
|
||||
Birthday *gtime.Time `json:"birthday" orm:"birthday"` // 生日
|
||||
Status int `json:"status" orm:"status,default:1"` // 状态:1=正常,2=禁用
|
||||
LastLoginAt *gtime.Time `json:"lastLoginAt" orm:"last_login_at"` // 最后登录时间
|
||||
LastLoginIp string `json:"lastLoginIp" orm:"last_login_ip"` // 最后登录IP
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at"` // 软删除时间戳
|
||||
Id int64 `json:"id" orm:"id,primary"` // 用户ID
|
||||
Username string `json:"username" orm:"username,not null"` // 用户名
|
||||
Nickname string `json:"nickname" orm:"nickname"` // 昵称
|
||||
Avatar string `json:"avatar" orm:"avatar"` // 头像
|
||||
Phone string `json:"phone" orm:"phone"` // 手机号
|
||||
Email string `json:"email" orm:"email"` // 邮箱
|
||||
Gender int `json:"gender" orm:"gender,default:0"` // 性别:0=未知,1=男,2=女
|
||||
Birthday *gtime.Time `json:"birthday" orm:"birthday"` // 生日
|
||||
Status int `json:"status" orm:"status,default:1"` // 状态:1=正常,2=禁用
|
||||
LastLoginAt *gtime.Time `json:"lastLoginAt" orm:"last_login_at"` // 最后登录时间
|
||||
LastLoginIp string `json:"lastLoginIp" orm:"last_login_ip"` // 最后登录IP
|
||||
LastLoginStoreId int `json:"lastLoginStoreId" orm:"last_login_store_id"` // 最后登录门店ID
|
||||
LastLoginStoreName string `json:"lastLoginStoreName" orm:"last_login_store_name"` // 最后登录门店名称
|
||||
}
|
||||
|
||||
// UserCreateIn 创建用户请求
|
||||
@ -96,11 +94,11 @@ type UserBindPhoneOut struct {
|
||||
}
|
||||
|
||||
type UserListIn struct {
|
||||
OperatorId int64
|
||||
Role string
|
||||
Nickname string
|
||||
Page int
|
||||
Size int
|
||||
OperatorId int64
|
||||
OperatorRole string
|
||||
Nickname string
|
||||
Page int
|
||||
Size int
|
||||
}
|
||||
type UserListOut struct {
|
||||
List []User
|
||||
|
||||
Reference in New Issue
Block a user