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.
36 lines
1.1 KiB
36 lines
1.1 KiB
package model
|
|
|
|
import (
|
|
"bkb-seller/global"
|
|
"time"
|
|
)
|
|
|
|
type PlatformAuth struct {
|
|
global.MG_MODEL
|
|
UserID string `json:"user_id" gorm:"type:varchar(60);comment:用户ID"` //用户ID
|
|
Platform
|
|
Status string `json:"status" gorm:"size:1;comment:认证状态 0:未认证 1:已认证 2:认证失败"` //认证状态 0:未认证 1:已认证 2:认证失败
|
|
}
|
|
|
|
type PlatformAuthSimple struct {
|
|
PlatformAuth
|
|
User UserSimple `json:"user"`
|
|
}
|
|
|
|
type Platform struct {
|
|
Platform string `json:"platform"` //平台
|
|
PlatformName string `gorm:"-" json:"platformName"` //平台名称
|
|
Url string `json:"url"` //主页地址
|
|
Image string `json:"image"` //图片
|
|
IsAuth bool `json:"is_auth"` //是否认证 0:未认证 1:已认证 2:认证失败
|
|
AuthMsg string `json:"auth_msg"` //认证信息
|
|
CreatedAt *time.Time `json:"created_at" gorm:"-"` //创建时间
|
|
}
|
|
|
|
func (PlatformAuth) TableName() string {
|
|
return "platform_auth"
|
|
}
|
|
|
|
func (PlatformAuthSimple) TableName() string {
|
|
return "platform_auth"
|
|
}
|
|
|