- GetStoreAbnormalSkuCount添加syncStatus与isBySku参数

This commit is contained in:
gazebo
2019-06-03 16:19:18 +08:00
parent 0351d719b5
commit c7d472830f
3 changed files with 29 additions and 15 deletions

View File

@@ -96,12 +96,14 @@ func (c *StoreSkuController) GetStoresSkus() {
// @Description 得到异常门店商品数量
// @Param token header string true "认证token"
// @Param storeID query int true "门店ID"
// @Param syncStatus query int true "同步标志掩码"
// @Param isBySku query bool false "是否按SKU分拆"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetStoreAbnoramlSkuCount [get]
func (c *StoreSkuController) GetStoreAbnoramlSkuCount() {
c.callGetStoreAbnoramlSkuCount(func(params *tStoreSkuGetStoreAbnoramlSkuCountParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetStoreAbnoramlSkuCount(params.Ctx, params.StoreID)
// @router /GetStoreAbnormalSkuCount [get]
func (c *StoreSkuController) GetStoreAbnormalSkuCount() {
c.callGetStoreAbnormalSkuCount(func(params *tStoreSkuGetStoreAbnormalSkuCountParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetStoreAbnormalSkuCount(params.Ctx, params.StoreID, params.SyncStatus, params.IsBySku)
return retVal, "", err
})
}