| | |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | /** |
| | | * 评论列表 |
| | | */ |
| | | @GetMapping("commentList") |
| | | public FebsResponse getCommentList(AdminMallGoodsCommentDto adminMallGoodsCommentDto, QueryRequest request) { |
| | | Map<String, Object> data = getDataTable(adminMallOrderService.getCommentListInPage(adminMallGoodsCommentDto, request)); |
| | | return new FebsResponse().success().data(data); |
| | | } |
| | | |
| | | /** |
| | | * 评论列表-显示评论 |
| | | */ |
| | | @GetMapping("showStateSwitchOn/{id}") |
| | | @ControllerEndpoint(operation = "评论列表-显示评论", exceptionMessage = "设置失败") |
| | | public FebsResponse showStateSwitchOn(@NotNull(message = "{required}") @PathVariable Long id) { |
| | | return adminMallOrderService.showStateSwitchOn(id); |
| | | } |
| | | |
| | | /** |
| | | * 评论列表-不显示评论 |
| | | */ |
| | | @GetMapping("showStateSwitchOff/{id}") |
| | | @ControllerEndpoint(operation = "评论列表-显示评论", exceptionMessage = "设置失败") |
| | | public FebsResponse showStateSwitchOff(@NotNull(message = "{required}") @PathVariable Long id) { |
| | | return adminMallOrderService.showStateSwitchOff(id); |
| | | } |
| | | |
| | | } |