生成门店商品备份表优化
This commit is contained in:
@@ -727,3 +727,23 @@ func (c *StoreSkuController) BackUpStoreSkuBind() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 恢复门店商品表
|
||||
// @Description 恢复门店商品表
|
||||
// @Param token header string true "认证token"
|
||||
// @Param snapshotAt formData string true "日期,格式2020-03-06 00:00:00"
|
||||
// @Param storeIDs formData string true "门店列表"
|
||||
// @Param skuIDs formData string true "商品列表"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /ReturnStoreSkuBind [post]
|
||||
func (c *StoreSkuController) ReturnStoreSkuBind() {
|
||||
c.callReturnStoreSkuBind(func(params *tStoreSkuReturnStoreSkuBindParams) (retVal interface{}, errCode string, err error) {
|
||||
var storeIDs, skuIDs []int
|
||||
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs, params.SkuIDs, &skuIDs); err != nil {
|
||||
return retVal, "", err
|
||||
}
|
||||
err = cms.ReturnStoreSkuBind(params.Ctx, params.SnapshotAt, storeIDs, skuIDs)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user