package beilv.cardpurchaserecord.mapper;

import beilv.cardpurchaserecord.domain.CardPurchaseRecord;

import java.util.List;

/**
 * 购卡记录Mapper接口
 *
 * @author ruoyi
 * @date 2025-01-02
 */
public interface CardPurchaseRecordMapper {
    /**
     * 查询购卡记录
     *
     * @param id 购卡记录主键
     * @return 购卡记录
     */
    public CardPurchaseRecord selectCardPurchaseRecordById(Long id);

    /**
     * 查询购卡记录列表
     *
     * @param cardPurchaseRecord 购卡记录
     * @return 购卡记录集合
     */
    public List<CardPurchaseRecord> selectCardPurchaseRecordList(CardPurchaseRecord cardPurchaseRecord);

    /**
     * 新增购卡记录
     *
     * @param cardPurchaseRecord 购卡记录
     * @return 结果
     */
    public int insertCardPurchaseRecord(CardPurchaseRecord cardPurchaseRecord);

    /**
     * 修改购卡记录
     *
     * @param cardPurchaseRecord 购卡记录
     * @return 结果
     */
    public int updateCardPurchaseRecord(CardPurchaseRecord cardPurchaseRecord);

    /**
     * 删除购卡记录
     *
     * @param id 购卡记录主键
     * @return 结果
     */
    public int deleteCardPurchaseRecordById(Long id);

    /**
     * 批量删除购卡记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCardPurchaseRecordByIds(String[] ids);
}
