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.
15 lines
530 B
15 lines
530 B
6 months ago
|
package model
|
||
|
|
||
|
type Account struct { // 开通支付商家账户
|
||
|
BaseModel
|
||
|
Name string `gorm:"unique;size:100" json:"name"` // 名称
|
||
|
Appid string `gorm:"unique;size:20" json:"appid"` // appid
|
||
|
Secret string `gorm:"size:32" json:"secret"` // secret
|
||
|
Mchid string `gorm:"unique;size:20" json:"mchid"` // 商家id
|
||
|
Status int `gorm:"type:tinyint(1);default:0" json:"status"` // 状态 0:未认证 1:已认证
|
||
|
}
|
||
|
|
||
|
func (Account) TableName() string {
|
||
|
return "account"
|
||
|
}
|