| | |
| | | package cc.mrbird.febs.mall.controller; |
| | | |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.mall.dto.ApiMallGoodsCommentDto; |
| | | import cc.mrbird.febs.mall.dto.MallGoodsQueryDto; |
| | | import cc.mrbird.febs.mall.service.IApiMallGoodsService; |
| | | import cc.mrbird.febs.mall.vo.MallGoodsCommentVo; |
| | | import cc.mrbird.febs.mall.vo.MallGoodsDetailsVo; |
| | | import cc.mrbird.febs.mall.vo.MallGoodsListVo; |
| | | import io.swagger.annotations.Api; |
| | |
| | | return new FebsResponse().success().data(mallGoodsService.findMallGoodsDetailsById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取商品评价", notes = "获取商品评价") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = MallGoodsCommentVo.class) |
| | | }) |
| | | @PostMapping(value = "/commentByGoodsId") |
| | | public FebsResponse commentByGoodsId(@RequestBody ApiMallGoodsCommentDto queryDto) { |
| | | return new FebsResponse().success().data(mallGoodsService.findMallGoodsCommentByGoodsId(queryDto)); |
| | | } |
| | | |
| | | } |