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.

53 lines
1.8 KiB

package request
import (
"pure-admin/model"
"time"
)
type UserSearch struct {
model.User
PageInfo
}
type UserSimpleSearch struct {
Username string `gorm:"size:128" json:"username"`
NickName string `gorm:"size:20" json:"nick_name" form:"nick_name"` //昵称
Type string `json:"type" form:"type" gorm:"size:255"` //customer-普通用户 influencer-网红
Phone string `gorm:"-" json:"phone" form:"phone"` //用户手机号
Email string `gorm:"-" json:"email" form:"email"` //用户邮箱
StartTime string `json:"start_time" form:"start_time"`
EndTime string `json:"end_time" form:"end_time"`
IDForbidden string `json:"id_forbidden" form:"id_forbidden"`
PageInfo
}
type UserSearchByID struct {
UserID string `json:"user_id" form:"user_id"` //用户id
}
type Platform struct {
Platform string `json:"platform"` //平台
Url string `json:"url"` //主页地址
Image string `json:"image"` //图片
IsAuth bool `json:"is_auth"` //是否认证
CreatedAt *time.Time `json:"created_at" gorm:"-"` //创建时间
}
type PlatformAuthSearch struct {
Platform string `json:"platform" form:"platform"` //平台
Status string `json:"status" form:"status"` //认证状态 0:未认证 1:已认证 2:认证失败
UserSimpleSearch
}
type PlatformAuthCheck struct {
ID uint `json:"id"` //认证id
Status string `json:"check_result"` //认证结果 1:认证通过 2:认证失败
AuthMsg string `json:"auth_msg"` //认证信息
}
type UserStatus struct {
UserID string `json:"user_id"` //用户id
IDForbidden bool `json:"id_forbidden"` //是否禁用 0:未禁用 1:已禁用
ForbiddenReason string `json:"forbidden_reason"` //禁用原因
}