aa
This commit is contained in:
@@ -51,6 +51,7 @@ func (c *NetSpiderController) GetAndStoreCitiesShops() {
|
||||
// @Param cityCode query int false "城市代码"
|
||||
// @Param districtCode query int false "行政区代码"
|
||||
// @Param tel query string false "手机号"
|
||||
// @Param brandName query string false "品牌名"
|
||||
// @Param minShopScore query float64 false "门店分值最小值"
|
||||
// @Param minRecentOrderNum query int false "最近单量最小值"
|
||||
// @Param minSkuCount query int false "SKU数量最小值"
|
||||
@@ -83,7 +84,7 @@ func (c *NetSpiderController) QueryPageStores() {
|
||||
offset = 0
|
||||
pageSize = model.UnlimitedPageSize
|
||||
}
|
||||
pagedInfo, err := cms.QueryPageStores2(dao.GetDB(), pageSize, offset, params.Keyword, params.VendorStoreID, params.VendorID,
|
||||
pagedInfo, err := cms.QueryPageStores2(dao.GetDB(), pageSize, offset, params.Keyword, params.VendorStoreID, params.BrandName, params.VendorID,
|
||||
params.CityCode, params.DistrictCode, params.Tel, float32(params.MinShopScore), params.MinRecentOrderNum, params.MinSkuCount,
|
||||
lng1, lat1, lng2, lat2)
|
||||
if err == nil {
|
||||
@@ -190,3 +191,16 @@ func (c *NetSpiderController) QueryPageSkus() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 查询page品牌
|
||||
// @Description 查询page品牌
|
||||
// @Param token header string true "认证token"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetPageBrands [get]
|
||||
func (c *NetSpiderController) GetPageBrands() {
|
||||
c.callGetPageBrands(func(params *tNetspiderGetPageBrandsParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = cms.GetPageBrands(params.Ctx)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user