Commit cf47874a by “Kongxiangkun”

增加积分商城相关代码

parent fce9933f
...@@ -138,14 +138,7 @@ public class PointProductController { ...@@ -138,14 +138,7 @@ public class PointProductController {
@ApiOperation(value = "积分商品、分页列表", notes = "积分商品、分页列表", response = PointProductVo.class) @ApiOperation(value = "积分商品、分页列表", notes = "积分商品、分页列表", response = PointProductVo.class)
@GetMapping("/list") @GetMapping("/list")
//public Response<Page<PointProductVo>> productList(@RequestBody PointSearchParamVO searchParamVO){ public Response<Page<PointProductVo>> productList(@RequestBody PointSearchParamVO searchParamVO){
public Response<Page<PointProductVo>> productList(@RequestParam(value = "pageNo", required = false) int pageNo,
@RequestParam(value = "pageSize", required = false) int pageSize,
@RequestParam(value = "name", required = false) String name){
PointSearchParamVO searchParamVO = new PointSearchParamVO();
searchParamVO.setName(name);
searchParamVO.setPageNo(pageNo);
searchParamVO.setPageSize(pageSize);
try { try {
return Response.ok(pointProductFeignClients.productList(searchParamVO)); return Response.ok(pointProductFeignClients.productList(searchParamVO));
} catch (Exception e) { } catch (Exception e) {
......
...@@ -167,14 +167,7 @@ public class PointUserController { ...@@ -167,14 +167,7 @@ public class PointUserController {
@ApiOperation(value = "用户的积分分页列表", notes = "用户的积分分页列表", response = PointProductVo.class) @ApiOperation(value = "用户的积分分页列表", notes = "用户的积分分页列表", response = PointProductVo.class)
@GetMapping("/list") @GetMapping("/list")
//public Response<Page<PointUserPageListVO>> list(@RequestBody PointSearchParamVO searchParamVO){ public Response<Page<PointUserPageListVO>> list(@RequestBody PointSearchParamVO searchParamVO){
public Response<Page<PointUserPageListVO>> list(@RequestParam(value = "pageNo", required = false) int pageNo,
@RequestParam(value = "pageSize", required = false) int pageSize,
@RequestParam(value = "name", required = false) String name){
PointSearchParamVO searchParamVO = new PointSearchParamVO();
searchParamVO.setName(name);
searchParamVO.setPageNo(pageNo);
searchParamVO.setPageSize(pageSize);
try { try {
return Response.ok(pointUserClients.list(searchParamVO)); return Response.ok(pointUserClients.list(searchParamVO));
} catch (Exception e) { } catch (Exception e) {
...@@ -183,7 +176,7 @@ public class PointUserController { ...@@ -183,7 +176,7 @@ public class PointUserController {
} }
} }
@ApiOperation(value = "用户积分兑换", notes = "用户积分兑换", response = PointProductVo.class) @ApiOperation(value = "用户积分兑换", notes = "用户积分兑换")
@PostMapping("/exchange") @PostMapping("/exchange")
public Response<Object> exchange(@RequestBody PointUserExchangeVO pointUserExchangeVO){ public Response<Object> exchange(@RequestBody PointUserExchangeVO pointUserExchangeVO){
if(pointUserExchangeVO.getPoint() <= 0) { if(pointUserExchangeVO.getPoint() <= 0) {
......
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