package com.zioinfo.mall.wishlist.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface WishlistMapper {
    /** 찜한 상품(상품 정보 조인). */
    List<Map<String, Object>> findByOwner(@Param("owner") String owner);
    int add(@Param("owner") String owner, @Param("productId") Long productId);
    int remove(@Param("owner") String owner, @Param("productId") Long productId);
    int exists(@Param("owner") String owner, @Param("productId") Long productId);
}
