|
|
@ -1,8 +1,10 @@
|
|
|
|
package com.itmk.web.goods_comment.controller;
|
|
|
|
package com.itmk.web.goods_comment.controller;
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
import com.itmk.utils.ResultUtils;
|
|
|
|
import com.itmk.utils.ResultUtils;
|
|
|
|
import com.itmk.utils.ResultVo;
|
|
|
|
import com.itmk.utils.ResultVo;
|
|
|
|
|
|
|
|
import com.itmk.web.goods_comment.entity.CommentParm;
|
|
|
|
import com.itmk.web.goods_comment.entity.GoodsComment;
|
|
|
|
import com.itmk.web.goods_comment.entity.GoodsComment;
|
|
|
|
import com.itmk.web.goods_comment.service.GoodsCommentService;
|
|
|
|
import com.itmk.web.goods_comment.service.GoodsCommentService;
|
|
|
|
import com.itmk.web.order_detail.entity.UserOrderDetail;
|
|
|
|
import com.itmk.web.order_detail.entity.UserOrderDetail;
|
|
|
@ -55,4 +57,17 @@ public class GoodsCommentController {
|
|
|
|
List<GoodsComment> list = goodsCommentService.commentList(goodsId);
|
|
|
|
List<GoodsComment> list = goodsCommentService.commentList(goodsId);
|
|
|
|
return ResultUtils.success("查询成功",list);
|
|
|
|
return ResultUtils.success("查询成功",list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//pc列表查询
|
|
|
|
|
|
|
|
@GetMapping("/pcCommentList")
|
|
|
|
|
|
|
|
public ResultVo pcCommentList(CommentParm parm){
|
|
|
|
|
|
|
|
IPage<GoodsComment> list = goodsCommentService.getList(parm);
|
|
|
|
|
|
|
|
return ResultUtils.success("查询成功",list);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//删除
|
|
|
|
|
|
|
|
@DeleteMapping("/{commentId}")
|
|
|
|
|
|
|
|
public ResultVo delete(@PathVariable("commentId") Long commentId){
|
|
|
|
|
|
|
|
goodsCommentService.removeById(commentId);
|
|
|
|
|
|
|
|
return ResultUtils.success("删除成功!");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|