|
@@ -22,6 +22,8 @@ type MerchantPayInfo struct {
|
|
|
BankAddress string `gorm:"column:bank_address;type:varchar(50)" json:"bank_address"` // 网点
|
|
|
AccountName string `gorm:"column:account_name;type:varchar(50)" json:"account_name"` // 姓名
|
|
|
MerchantType int `gorm:"column:merchant_type;type:int(11)" json:"merchant_type"`
|
|
|
+ EntryInfo string `gorm:"column:entry_info;type:varchar(255)" json:"entry_info"` // 入账信息
|
|
|
+
|
|
|
}
|
|
|
|
|
|
func (m *MerchantPayInfo) TableName() string {
|
|
@@ -67,6 +69,7 @@ func (m *MerchantPayInfo) UpdateMerchantPayInfo() error {
|
|
|
"bank_address": m.BankAddress,
|
|
|
"account_name": m.AccountName,
|
|
|
"merchant_type": m.MerchantType,
|
|
|
+ "entry_info": m.EntryInfo,
|
|
|
"updated_at": time.Now()}).Error; err != nil {
|
|
|
return err
|
|
|
}
|