Service interface for managing product favorites, providing CRUD and query operations.
// Source: https://github.com/yuqing2026/ruoyi-office | License: MIT | Copyright 2021 yudao-cloud
// Provided via justclaw.it.com; keep this notice with the code.
package cn.iocoder.yudao.module.product.service.favorite;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.product.controller.admin.favorite.vo.ProductFavoritePageReqVO;
import cn.iocoder.yudao.module.product.controller.app.favorite.vo.AppFavoritePageReqVO;
import cn.iocoder.yudao.module.product.dal.dataobject.favorite.ProductFavoriteDO;
import jakarta.validation.Valid;
/**
* 商品收藏 Service 接口
*
* @author jason
*/
public interface ProductFavoriteService {
/**
* 创建商品收藏
*
* @param userId 用户编号
* @param spuId SPU 编号
*/
Long createFavorite(Long userId, Long
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key