This commit is contained in:
suyl
2021-06-02 18:28:38 +08:00
parent c219481ad5
commit 34e3dc9910
8 changed files with 95 additions and 39 deletions

View File

@@ -25,9 +25,9 @@ const (
StoreAuditStatusUpdated = 2
StoreAuditStatusAll = -9
StoreMapAuditStatusWait = 1 //待审核
StoreMapAuditStatusPass = 2 //审核通过
StoreMapAuditStatusUnPass = 3 //审核不通过
StoreMapAuditStatusWait = 0 //待审核
StoreMapAuditStatusPass = 1 //审核通过
StoreMapAuditStatusUnPass = -1 //审核不通过
)
const (
@@ -894,3 +894,27 @@ func (v *StoreManageState) TableUnique() [][]string {
[]string{"StoreID", "VendorID"},
}
}
type StoreMapAudit struct {
ModelIDCULD
StoreID int `orm:"column(store_id)" json:"storeID"`
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
VendorOrgCode string `orm:"size(32)" json:"vendorOrgCode"` // 同一平台下不同的商户代码,如果只有一个,可以为空
VendorStoreID string `orm:"column(vendor_store_id);size(48)" json:"vendorStoreID"`
VendorStoreName string `orm:"size(255)" json:"vendorStoreName"` //平台门店名,由京西到平台
VendorAccount string `orm:"size(255)" json:"vendorAccount"` //商户在平台上的账号(授权用
VendorPasswaord string `orm:"size(255)" json:"vendorPasswaord"` //商户在平台上的密码( aes cbc base64后的
AuditStatus int `json:"auditStatus"` //审核状态(授权状态
AuditAt time.Time `json:"auditAt"` //审核时间
AuditOperator string `json:"auditOperator"` //审核人
Comment string `orm:"size(255)" json:"comment"` //备注(审核不通过原因
}
func (v *StoreMapAudit) TableIndex() [][]string {
return [][]string{
[]string{"StoreID", "VendorStoreID"},
}
}