| | |
| | | import cn.lili.modules.goods.entity.dto.GoodsSearchParams; |
| | | import cn.lili.modules.goods.entity.enums.GoodsAuthEnum; |
| | | import cn.lili.modules.goods.entity.enums.GoodsStatusEnum; |
| | | import cn.lili.modules.goods.entity.vos.GoodsSkuVO; |
| | | import cn.lili.modules.goods.entity.vos.GoodsVO; |
| | | import cn.lili.modules.goods.service.GoodsService; |
| | | import cn.lili.modules.goods.service.GoodsSkuService; |
| | |
| | | @Autowired |
| | | private COSUtil cosUtil; |
| | | |
| | | @ApiOperation(value = "获得skuId") |
| | | @GetMapping("/getFirstSkuId/{id}") |
| | | public ResultMessage<String> getFirstSkuId(@PathVariable String id) { |
| | | List<GoodsSkuVO> goodsListByGoodsId = goodsSkuService.getGoodsListByGoodsId(id); |
| | | System.out.println(goodsListByGoodsId); |
| | | return ResultUtil.data(goodsListByGoodsId.get(0).getId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页获取") |
| | | @GetMapping(value = "/list") |
| | | public ResultMessage<IPage<Goods>> getByPage(GoodsSearchParams goodsSearchParams) { |