新增审核表

This commit is contained in:
苏尹岚
2020-05-28 10:58:47 +08:00
parent 303da7f0ef
commit 06dcfcf88f
2 changed files with 27 additions and 0 deletions

View File

@@ -192,3 +192,29 @@ func (*StoreOpRequest) TableIndex() [][]string {
[]string{"StoreID", "Status", "Type"},
}
}
type StoreSkuAudit struct {
ModelIDCULD // DeletedAt用于表示请求操作结束而并不一定是删除
Type int8 `json:"type"` //1为改价
StoreID int `orm:"column(store_id)" json:"storeID"`
NameID int `orm:"column(name_id)" json:"nameID"` // 这个根据type不同可能是SKUNAME ID或SKU ID
Status int8 `json:"status"`
UserID string `orm:"size(48);column(user_id)" json:"userID"`
OriginUnitPrice int `json:"originPrice"` // 表示原价
UnitPrice int `json:"unitPrice"`
Remark string `orm:"size(255)" json:"remark"`
}
func (*StoreSkuAudit) TableUnique() [][]string {
return [][]string{
[]string{"StoreID", "Type", "NameID", "DeletedAt"},
}
}
func (*StoreSkuAudit) TableIndex() [][]string {
return [][]string{
[]string{"DeletedAt"},
[]string{"StoreID", "Status", "Type"},
}
}

View File

@@ -32,6 +32,7 @@ func Init() {
orm.RegisterModel(&model.Store{}, &model.StoreSub{}, &model.StoreMap{}, &model.StoreCourierMap{})
orm.RegisterModel(&model.SkuVendorCategory{}, &model.StoreSkuCategoryMap{}, &model.SkuName{}, &model.Sku{}, &model.SkuNamePlaceBind{}, &model.StoreSkuBind{})
orm.RegisterModel(&model.StoreSkuBindHistory{})
orm.RegisterModel(&model.StoreSkuAudit{})
orm.RegisterModel(&model.SkuCategory{})
orm.RegisterModel(&model.ThingMap{})