mitao
2024-09-21 f44e4d609e7efaed9eac545137970b1e334f8106
ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/forepart/ForepartMemberGoodsCollectionController.java
@@ -23,21 +23,19 @@
 */
@RestController
@RequestMapping("/forepart/member-goods-collection")
@Api(value = "收藏普通商品接口", tags = "收藏普通商品口", description = "收藏普通商品接口")
@Api(value = "用戶端-收藏普通商品接口", tags = "用戶端-收藏普通商品口", description = "用戶端-收藏普通商品接口")
public class ForepartMemberGoodsCollectionController {
    @Resource
    private IMemberGoodsCollectionService iMemberGoodsCollectionService;
    @PostMapping("/saveGoodsCollection")
    @ResponseBody
    @ApiOperation(value = "用户端-商品收藏和取消收藏")
    public R saveAuctionCollection(@RequestBody AuctionCollectionDTO auctionCollectionDTO) {
        iMemberGoodsCollectionService.saveGoodsCollection(auctionCollectionDTO);
        return R.ok();
    }
    @PostMapping("/getGoodsCollectionList")
    @ResponseBody
    @ApiOperation(value = "用户端-商品收藏列表")
    public R<PageDTO<HomeGoodsSkuListVO>> getGoodsCollectionList(@RequestBody AuctionCollectionDTO auctionCollectionDTO) {
        return R.ok(iMemberGoodsCollectionService.getGoodsCollectionList(auctionCollectionDTO));