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" }