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.
18 lines
619 B
18 lines
619 B
6 months ago
|
package model
|
||
|
|
||
|
import "shop-api/global"
|
||
|
|
||
|
type Account struct {
|
||
|
global.MG_MODEL
|
||
|
UserID string `gorm:"size:50;index" json:"userID"` // 用户id
|
||
|
AccountName string `gorm:"size:50" json:"accountName"` // 户名
|
||
|
IDCard string `gorm:"size:30" json:"idCard"` // 身份证
|
||
|
Phone string `gorm:"size:20" json:"phone"` // 手机号
|
||
|
PayPalName string `gorm:"size:50" json:"payPalName"` // paypal账号
|
||
|
Platform string `gorm:"size:50" json:"platform"` // 平台 saller(买家端) / customer(客户端) / influencer(网红端)
|
||
|
}
|
||
|
|
||
|
func (Account) TableName() string {
|
||
|
return "account"
|
||
|
}
|