rk
7 小时以前 580f4d3c2ca9eee53eee95a4de2f6610b790780a
server/dmmall_web/src/main/java/com/doumee/api/web/CommentApi.java
@@ -1,5 +1,6 @@
package com.doumee.api.web;
import com.doumee.config.annotation.LoginRequired;
import com.doumee.core.annotation.pr.PreventRepeat;
import com.doumee.core.model.ApiResponse;
import com.doumee.core.model.PageData;
@@ -8,6 +9,7 @@
import com.doumee.dao.web.dto.CommentDTO;
import com.doumee.dao.web.dto.activity.ActivityCommentDTO;
import com.doumee.dao.web.dto.activity.ActivityReplyCommentDTO;
import com.doumee.dao.web.request.CommentApplyRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
@@ -26,12 +28,11 @@
public class CommentApi extends ApiController{
    @PreventRepeat
    @ApiOperation("新建")
    @PostMapping("/create")
    @RequiresPermissions("business:comment:create")
    public ApiResponse create(@RequestBody Comment comment) {
        return ApiResponse.success(commentService.create(comment,getMemberId()));
    @LoginRequired
    @ApiOperation("发布评论")
    @PostMapping("/apply")
    public ApiResponse<Comment> apply(@RequestBody CommentApplyRequest comment) {
        return ApiResponse.success(commentService.apply(comment,getMemberId()));
    }
@@ -41,7 +42,6 @@
     * @param pageWrap 分页对象
     * @return PageData<Comment>
     */
    @PreventRepeat
    @ApiOperation("分页活动探店评论查询")
    @PostMapping("/findActivityCommentDTOPage")
    public ApiResponse<PageData<ActivityCommentDTO>> findActivityCommentDTOPage(@RequestBody PageWrap<CommentDTO> pageWrap){
@@ -54,7 +54,7 @@
     * @param pageWrap 分页对象
     * @return PageData<Comment>
     */
    @PreventRepeat
    @LoginRequired
    @ApiOperation("分页活动探店评论回复查询")
    @PostMapping("/findActivityReplyCommentDTOPage")
    public ApiResponse<PageData<ActivityReplyCommentDTO>> findActivityReplyCommentDTOPage(@RequestBody PageWrap<CommentDTO> pageWrap){