package com.m2pool.lease.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.m2pool.lease.dto.ShoppingCartInfoDto;
import com.m2pool.lease.entity.LeaseShoppingCartInfo;
import com.m2pool.lease.vo.ProductAndMachineVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 购物车详情表 Mapper 接口
 * </p>
 *
 * @author yyb
 * @since 2025-07-24
 */
@Mapper
public interface LeaseShoppingCartInfoMapper extends BaseMapper<LeaseShoppingCartInfo> {

    /**
     * 查询购物车详情列表
     * @return
     */
    List<ShoppingCartInfoDto> getProductAndMachineIds(@Param("userId") String userId, @Param("version") Integer version);



    /**
     * 批量删除购物车详情数据
     * @param ids
     * @return
     */
    int deleteBatchData(@Param("ids") List<Long> ids);
}
