- add isFocused cond for GetStoreSkus.

This commit is contained in:
gazebo
2018-09-18 09:32:32 +08:00
parent 86c1b0957f
commit d592b4c29c
2 changed files with 10 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ type StoreSkuController struct {
// @Description 得到商家商品信息,如下条件之间是与的关系
// @Param token header string true "认证token"
// @Param storeID query int true "门店ID"
// @Param isFocused query bool true "是否已关注(认领)"
// @Param keyword query string false "查询关键字(可以为空,为空表示不限制)"
// @Param nameID query int false "SkuName ID"
// @Param skuID query int false "Sku ID"
@@ -31,7 +32,7 @@ type StoreSkuController struct {
// @router /GetStoreSkus [get]
func (c *StoreSkuController) GetStoreSkus() {
c.callGetStoreSkus(func(params *tStoreSkuGetStoreSkusParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetStoreSkus(params.StoreID, params.Keyword, params.MapData, params.Offset, params.PageSize)
retVal, err = cms.GetStoreSkus(params.StoreID, params.IsFocused, params.Keyword, params.MapData, params.Offset, params.PageSize)
return retVal, "", err
})
}