You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
963 B
28 lines
963 B
9 months ago
|
package model
|
||
|
|
||
|
import (
|
||
|
"pure-admin/global"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type CustomerUser struct {
|
||
|
global.MG_MODEL
|
||
|
UUID string `gorm:"unique;size:64" json:"uuid"` //用户uuid编码
|
||
|
NickName string `gorm:"size:20" json:"nickName"` //昵称
|
||
|
Phone string `gorm:"size:20" json:"phone"` //电话
|
||
|
Avatar string `gorm:"size:255" json:"avatar"` //头像
|
||
|
IDForbidden bool `json:"id_forbidden"` //是否禁用
|
||
|
ForbiddenTime *time.Time `json:"forbidden_time"` //禁用时间
|
||
|
ForbiddenReason string `json:"forbidden_reason"` //禁用原因
|
||
|
ForbiddenOperation string `json:"forbidden_operation"` //禁用操作人
|
||
|
}
|
||
|
|
||
|
type CustomerLogin struct {
|
||
|
Phone string `gorm:"size:20" json:"phone"` //电话
|
||
|
Code string `json:"code"` //验证码
|
||
|
}
|
||
|
|
||
|
func (CustomerUser) TableName() string {
|
||
|
return "customer_user"
|
||
|
}
|