|
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.ylx.common.core.domain.R;
|
|
import com.ylx.common.core.domain.R;
|
|
|
import com.ylx.massage.domain.dto.MassageAllMerchantsDto;
|
|
import com.ylx.massage.domain.dto.MassageAllMerchantsDto;
|
|
|
import com.ylx.massage.domain.dto.MassageMerchantRecommendDto;
|
|
import com.ylx.massage.domain.dto.MassageMerchantRecommendDto;
|
|
|
|
|
+import com.ylx.massage.domain.dto.MassageProjectRecommendDTO;
|
|
|
import com.ylx.massage.domain.vo.MassageAllMerchantsVo;
|
|
import com.ylx.massage.domain.vo.MassageAllMerchantsVo;
|
|
|
import com.ylx.massage.domain.vo.MassageProjectRecommendVo;
|
|
import com.ylx.massage.domain.vo.MassageProjectRecommendVo;
|
|
|
import com.ylx.massage.domain.vo.MerchantVo;
|
|
import com.ylx.massage.domain.vo.MerchantVo;
|
|
@@ -33,25 +34,25 @@ public class MassageRecommendController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IMassageRecommendService massageRecommendService;
|
|
private IMassageRecommendService massageRecommendService;
|
|
|
|
|
|
|
|
- @ApiOperation(value="首页按摩商户推荐", notes="首页按摩商户推荐")
|
|
|
|
|
|
|
+ @ApiOperation(value = "首页按摩商户推荐", notes = "首页按摩商户推荐")
|
|
|
@PostMapping(value = "/getMerchantRecommend")
|
|
@PostMapping(value = "/getMerchantRecommend")
|
|
|
public R<List<MerchantVo>> getMerchantRecommend(@RequestBody MassageMerchantRecommendDto dto) {
|
|
public R<List<MerchantVo>> getMerchantRecommend(@RequestBody MassageMerchantRecommendDto dto) {
|
|
|
List<MerchantVo> massageRecommendVos = massageRecommendService.getMerchantRecommend(dto);
|
|
List<MerchantVo> massageRecommendVos = massageRecommendService.getMerchantRecommend(dto);
|
|
|
return R.ok(massageRecommendVos);
|
|
return R.ok(massageRecommendVos);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value="首页按摩项目推荐", notes="首页按摩项目推荐")
|
|
|
|
|
- @GetMapping(value = "/getMassageProjectRecommend")
|
|
|
|
|
- public R<Page<MassageProjectRecommendVo>> getMassageProjectRecommend(@RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize,@RequestParam("cityCode") String cityCode) {
|
|
|
|
|
- Page<MassageProjectRecommendVo> page = new Page<>(pageNo, pageSize);
|
|
|
|
|
- return R.ok( massageRecommendService.getMassageProjectRecommend(page,cityCode));
|
|
|
|
|
|
|
+ @ApiOperation(value = "首页按摩项目推荐", notes = "首页按摩项目推荐")
|
|
|
|
|
+ @PostMapping(value = "/getMassageProjectRecommend")
|
|
|
|
|
+ public R<Page<MassageProjectRecommendVo>> getMassageProjectRecommend(@Validated @RequestBody MassageProjectRecommendDTO dto) {
|
|
|
|
|
+ Page<MassageProjectRecommendVo> page = new Page<>(dto.getCurrent(), dto.getSize());
|
|
|
|
|
+ return R.ok(massageRecommendService.getMassageProjectRecommend(page, dto.getCityCode()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value="首页按摩推荐商户点击全部查询按摩所有商户", notes="首页按摩推荐商户点击全部查询按摩所有商户")
|
|
|
|
|
|
|
+ @ApiOperation(value = "首页按摩推荐商户点击全部查询按摩所有商户", notes = "首页按摩推荐商户点击全部查询按摩所有商户")
|
|
|
@PostMapping(value = "/getMassageAllMerchants")
|
|
@PostMapping(value = "/getMassageAllMerchants")
|
|
|
public R<Page<MassageAllMerchantsVo>> getMassageAllMerchants(@Validated @RequestBody MassageAllMerchantsDto dto) {
|
|
public R<Page<MassageAllMerchantsVo>> getMassageAllMerchants(@Validated @RequestBody MassageAllMerchantsDto dto) {
|
|
|
- Page<MassageAllMerchantsVo> page = new Page<>(dto.getPageNo(), dto.getPageSize());
|
|
|
|
|
- return R.ok( massageRecommendService.getMassageAllMerchants(page,dto));
|
|
|
|
|
|
|
+ Page<MassageAllMerchantsVo> page = new Page<>(dto.getCurrent(), dto.getSize());
|
|
|
|
|
+ return R.ok(massageRecommendService.getMassageAllMerchants(page, dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|