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.
44 lines
1.7 KiB
44 lines
1.7 KiB
6 months ago
|
package model
|
||
|
|
||
|
import (
|
||
|
"bkb-seller/global"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type InfluencerUserDesc 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"` //电话
|
||
|
Email string `json:"email" form:"email" gorm:"size:255"` //用户邮箱
|
||
|
Avatar string `gorm:"size:255" json:"avatar"` //头像
|
||
|
Platform string `gorm:"size:500" json:"-"` //平台及地址逗号隔开 eg:(ins:https://baidu.com/user/1,qq:12345678)
|
||
|
PlatformStr interface{} `gorm:"-" json:"platform"` //平台及地址
|
||
|
Tags string `gorm:"size:500" json:"tags"` //个人标签
|
||
|
IDForbidden bool `gorm:"-" json:"id_forbidden"` //是否禁用
|
||
|
ForbiddenTime *time.Time `json:"forbidden_time"` //禁用时间
|
||
|
ForbiddenReason string `json:"forbidden_reason"` //禁用原因
|
||
|
ForbiddenOperation string `json:"forbidden_operation"` //禁用操作人
|
||
|
}
|
||
|
|
||
|
type InfluencerUserView struct {
|
||
|
UUID string `json:"uuid"` //用户uuid
|
||
|
NickName string `json:"nick_name"` //昵称
|
||
|
Phone string `json:"phone"` //电话
|
||
|
}
|
||
|
|
||
|
type InfluencerUserClaimView struct {
|
||
|
UUID string `json:"uuid"` //用户uuid
|
||
|
NickName string `json:"nick_name"` //昵称
|
||
|
Phone string `json:"phone"` //电话
|
||
|
ClaimNo string `json:"claim_no"`
|
||
|
}
|
||
|
|
||
|
func (InfluencerUserView) TableName() string {
|
||
|
return "user"
|
||
|
}
|
||
|
|
||
|
func (InfluencerUserDesc) TableName() string {
|
||
|
return "user"
|
||
|
}
|