aa
This commit is contained in:
@@ -944,28 +944,20 @@ func (c *StoreSkuController) GetVendorStoreSkus() {
|
||||
// @Title 得到商家商品信息
|
||||
// @Description 得到商家商品信息,如下条件之间是与的关系。对于没有认领的商品,按城市限制。但对于已经认领的商品就不限制了,因为已经在平台上可售,可以操作(改价等等)
|
||||
// @Param token header string false "认证token"
|
||||
// @Param storeIDs query string false "门店ID"
|
||||
// @Param storeID query int true "门店ID"
|
||||
// @Param isFocus query bool true "是否已关注(认领)"
|
||||
// @Param keyword query string false "查询关键字(可以为空,为空表示不限制)"
|
||||
// @Param name query string false "商品名称(不要求完全一致)"
|
||||
// @Param categoryID query int false "商品所属类别ID"
|
||||
// @Param fromStatus query int false "查询起始状态(0:不可售,1:可售)"
|
||||
// @Param toStatus query int false "查询结束状态(0:不可售,1:可售)"
|
||||
// @Param status query int false "查询起始状态(0:不可售,1:可售,-1 全部)"
|
||||
// @Param offset query int false "门店列表起始序号(以0开始,缺省为0)"
|
||||
// @Param pageSize query int false "门店列表页大小(缺省为50,-1表示全部)"
|
||||
// @Param isBySku query bool false "是否按SKU分拆"
|
||||
// @Param isAct query bool false "是否活动商品(包括正常活动与补贴)"
|
||||
// @Param actVendorID query int false "要得到哪个平台的活动信息(缺省不限制,非零最小值)"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetStoresSkusForStore [get]
|
||||
func (c *StoreSkuController) GetStoresSkusForStore() {
|
||||
// c.callGetStoresSkus(func(params *tStoreSkuGetStoresSkusParams) (retVal interface{}, errCode string, err error) {
|
||||
// var storeIDs, skuIDs []int
|
||||
// var upcs []string
|
||||
// if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs, params.SkuIDs, &skuIDs, params.Upcs, &upcs); err == nil {
|
||||
// retVal, err = cms.GetStoresSkus(params.Ctx, storeIDs, skuIDs, upcs, params.IsFocus, params.IsHighPrice, params.PriceType, params.Keyword, params.IsBySku, params.IsAct, params.MapData, params.Offset, params.PageSize)
|
||||
// }
|
||||
// return retVal, "", err
|
||||
// })
|
||||
c.callGetStoresSkusForStore(func(params *tStoreSkuGetStoresSkusForStoreParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = cms.GetStoresSkusForStore(params.Ctx, params.StoreID, params.IsFocus, params.IsAct, params.Keyword, params.CategoryID, params.Status, params.Offset, params.PageSize)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user