- add PendingUnitPrice and PendingOpType in GetStoreSkus result, when param isGetOpRequest is true
- fix some API result to lower camel case
This commit is contained in:
@@ -84,19 +84,19 @@ func (*StoreSkuBind) TableUnique() [][]string {
|
||||
type StoreOpRequest struct {
|
||||
ModelIDCULD // DeletedAt用于表示请求操作结束,而并不一定是删除
|
||||
|
||||
Type int8
|
||||
StoreID int `orm:"column(store_id)"`
|
||||
ItemID int `orm:"column(item_id)"` // 这个根据type不同,可能是SKUNAME ID或SKU ID
|
||||
Status int8
|
||||
UserID string `orm:"size(48);column(user_id)"`
|
||||
IntParam1 int
|
||||
IntParam2 int
|
||||
JsonParam string `orm:"size(3000)"`
|
||||
Remark string `orm:"size(255)"`
|
||||
Type int8 `json:"type"`
|
||||
StoreID int `orm:"column(store_id)" json:"storeID"`
|
||||
ItemID int `orm:"column(item_id)" json:"itemID"` // 这个根据type不同,可能是SKUNAME ID或SKU ID
|
||||
Status int8 `json:"status"`
|
||||
UserID string `orm:"size(48);column(user_id)" json:"userID"`
|
||||
IntParam1 int `json:"intParam1"`
|
||||
IntParam2 int `json:"intParam2"`
|
||||
JsonParam string `orm:"size(3000)" json:"jsonParam"`
|
||||
Remark string `orm:"size(255)" json:"remark"`
|
||||
}
|
||||
|
||||
func (*StoreOpRequest) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"StoreID", "Type", "ItemID", "DeletedAt"},
|
||||
[]string{"DeletedAt", "StoreID", "Type", "ItemID"},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user