This commit is contained in:
苏尹岚
2020-08-14 15:35:47 +08:00
parent 2fa2587975
commit 14d85186de
3 changed files with 101 additions and 0 deletions

View File

@@ -896,3 +896,24 @@ func (c *StoreSkuController) StoreSkuPriceAudit() {
}
})
}
// @Title 查看美团力荐或京东置顶商品
// @Description 查看美团力荐或京东置顶商品
// @Param token header string true "认证token"
// @Param vendorIDs formData string true "平台ids"
// @Param storeIDs formData string true "门店IDs"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetSpecialtyStoreSkus [post]
func (c *StoreSkuController) GetSpecialtyStoreSkus() {
c.callGetSpecialtyStoreSkus(func(params *tStoreSkuGetSpecialtyStoreSkusParams) (retVal interface{}, errCode string, err error) {
var (
storeIDs, vendorIDs []int
)
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs, params.VendorIDs, &vendorIDs); err != nil {
return retVal, "", err
}
err = cms.GetSpecialtyStoreSkus(params.Ctx, storeIDs, vendorIDs)
return retVal, "", err
})
}