xiaoyong931011
2022-06-23 7804b65c502ac9b2bb93f6f64dff53e2a1322f79
src/main/java/cc/mrbird/febs/mall/controller/AdminMallOrderController.java
@@ -360,4 +360,31 @@
        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);
    }
}