|
@@ -1,6 +1,5 @@
|
|
|
package com.yonge.cooleshow.portal.controller;
|
|
|
|
|
|
-import com.yonge.cooleshow.auth.api.client.SysUserFeignService;
|
|
|
import com.yonge.cooleshow.mall.common.api.CommonResult;
|
|
|
import com.yonge.cooleshow.mbg.model.CmsSubject;
|
|
|
import com.yonge.cooleshow.mbg.model.PmsProduct;
|
|
@@ -27,7 +26,7 @@ public class HomeController {
|
|
|
private HomeService homeService;
|
|
|
|
|
|
@ApiOperation("首页内容信息展示")
|
|
|
- @RequestMapping(value = "/content", method = RequestMethod.GET)
|
|
|
+ @GetMapping(value = "/content")
|
|
|
@ResponseBody
|
|
|
public CommonResult<HomeContentResult> content() {
|
|
|
HomeContentResult contentResult = homeService.content();
|
|
@@ -62,7 +61,7 @@ public class HomeController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("分页获取热销推荐商品")
|
|
|
- @RequestMapping(value = "/hotProductList", method = RequestMethod.GET)
|
|
|
+ @GetMapping(value = "/hotProductList")
|
|
|
@ResponseBody
|
|
|
public CommonResult<List<PmsProduct>> hotProductList(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
|
@RequestParam(value = "pageSize", defaultValue = "6") Integer pageSize) {
|