|
|
@ -140,6 +140,12 @@ public class UserAdviceController { |
|
|
|
public Result<List<MyAdviceListResultDTO>> myAdviceList(@RequestBody Map<String,Integer> map) { |
|
|
|
int pageSize = map.get("pageSize"); |
|
|
|
int pageNo = map.get("pageNo"); |
|
|
|
if (pageSize == 0){ |
|
|
|
pageSize = 10; |
|
|
|
} |
|
|
|
if (pageNo == 0){ |
|
|
|
pageNo = 1; |
|
|
|
} |
|
|
|
return new Result<List<MyAdviceListResultDTO>>().ok(userAdviceService.myAdviceList(pageSize,pageNo,loginUserUtil.getLoginUserId())); |
|
|
|
} |
|
|
|
} |
|
|
|