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.

22 lines
509 B

package model
import (
"pure/global"
"pure/model/request"
)
type PlatformAuth struct {
global.MG_MODEL
UserID string `json:"user_id" gorm:"type:varchar(60);comment:用户ID"`
request.Platform
Status string `json:"status" gorm:"size:1;comment:认证状态 0:未认证 1:已认证 2:认证失败"` //认证状态 0:未认证 1:已认证 2:认证失败
}
type PlatformAuthSimple struct {
PlatformAuth
User UserSimple `json:"user"`
}
func (PlatformAuth) TableName() string {
return "platform_auth"
}