记得上下班打卡 | git大法好,push需谨慎

Commit f975c066 authored by zhengfuxin's avatar zhengfuxin

精选商品列表

parent e41a958b
...@@ -9,6 +9,7 @@ import io.swagger.annotations.ApiOperation; ...@@ -9,6 +9,7 @@ import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.text.ParseException; import java.text.ParseException;
...@@ -51,6 +52,12 @@ public class GoblinFrontController { ...@@ -51,6 +52,12 @@ public class GoblinFrontController {
return ResponseDto.success( goblinFrontService.getSeckilll()); return ResponseDto.success( goblinFrontService.getSeckilll());
} }
@GetMapping("getSelectGoods")
@ApiOperation("获得精选商品列表")
public ResponseDto getSelectGoods(@RequestParam(name = "pageSize", required = true) int pageSize, @RequestParam(name = "pageNumber", required = true)int pageNumber) throws ParseException {
return ResponseDto.success( goblinFrontService.getSelectGoods(pageNumber,pageSize));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment