package com.yunniu.farming.webadmin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunniu.farming.webadmin.model.GroupBuyProduct;
import com.yunniu.farming.webadmin.model.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zyf
 * @date 2023/5/15
 * @apiNote
 */
@Mapper
public interface GroupBuyProductDao extends BaseMapper<GroupBuyProduct> {
    int insertBath(@Param("products") List<GroupBuyProduct> products, @Param("id") Long id);

    List<Product> getProductList(Long id);

    List<GroupBuyProduct> getList(Long id);
}
