|  |  |  | 
|---|
|  |  |  | 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.ApiMallGoodsDeliveryVo; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.vo.MallGoodsCommentVo; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.vo.MallGoodsDetailsVo; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.vo.MallGoodsListVo; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.vo.*; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | import io.swagger.annotations.ApiResponse; | 
|---|
|  |  |  | 
|---|
|  |  |  | return new FebsResponse().success().data(mallGoodsService.findMallGoodsListInPage(queryDto)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "获取商城商品", notes = "获取商城商品") | 
|---|
|  |  |  | @ApiResponses({ | 
|---|
|  |  |  | @ApiResponse(code = 200, message = "success", response = MallGoodsListVo.class) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @PostMapping(value = "/goodsListNoPage") | 
|---|
|  |  |  | public FebsResponse goodsListNoPage(@RequestBody MallGoodsQueryDto queryDto) { | 
|---|
|  |  |  | return new FebsResponse().success().data(mallGoodsService.findMallGoodsListNoPage(queryDto)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "获取商品详情", notes = "获取商品详情") | 
|---|
|  |  |  | @ApiResponses({ | 
|---|
|  |  |  | @ApiResponse(code = 200, message = "success", response = MallGoodsDetailsVo.class) | 
|---|
|  |  |  | 
|---|
|  |  |  | return new FebsResponse().success().data(mallGoodsService.findMallGoodsCommentByGoodsId(queryDto)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "获取商品评价等级数量", notes = "获取商品评价等级数量") | 
|---|
|  |  |  | @ApiResponses({ | 
|---|
|  |  |  | @ApiResponse(code = 200, message = "success", response = MallGoodsCommentVo.class) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @GetMapping(value = "/commentLevelByGoodsId/{id}") | 
|---|
|  |  |  | public FebsResponse commentLevelByGoodsId(@PathVariable("id") Long id) { | 
|---|
|  |  |  | return new FebsResponse().success().data(mallGoodsService.findMallGoodsCommentLevelByGoodsId(id)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "配送设置", notes = "配送设置") | 
|---|
|  |  |  | @ApiResponses({ | 
|---|
|  |  |  | @ApiResponse(code = 200, message = "success", response = ApiMallGoodsDeliveryVo.class) | 
|---|
|  |  |  | 
|---|
|  |  |  | return new FebsResponse().success().data(mallGoodsService.findDeliverySetting()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "获取运费模板信息", notes = "获取运费模板信息") | 
|---|
|  |  |  | @ApiResponses({ | 
|---|
|  |  |  | @ApiResponse(code = 200, message = "success", response = ApiMallCarriageRuleVo.class) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @GetMapping(value = "/findMallCarriageRuleById/{id}") | 
|---|
|  |  |  | public FebsResponse findMallCarriageRuleById(@PathVariable("id") Long id) { | 
|---|
|  |  |  | return new FebsResponse().success().data(mallGoodsService.findMallCarriageRuleById(id)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|