package com.ruoyi.system.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.WalletTransaction;

/**
 * 积分流水Mapper接口
 *
 * @author ruoyi
 * @date 2025-05-30
 */
public interface WalletTransactionMapper extends BaseMapper<WalletTransaction>
{
    /**
     * 查询积分流水
     *
     * @param id 积分流水主键
     * @return 积分流水
     */
    public WalletTransaction selectPointsTransactionById(Long id);

    /**
     * 查询积分流水列表
     *
     * @param pointsTransaction 积分流水
     * @return 积分流水集合
     */
    public List<WalletTransaction> selectPointsTransactionList(WalletTransaction pointsTransaction);

    /**
     * 新增积分流水
     *
     * @param pointsTransaction 积分流水
     * @return 结果
     */
    public int insertPointsTransaction(WalletTransaction pointsTransaction);

    /**
     * 修改积分流水
     *
     * @param pointsTransaction 积分流水
     * @return 结果
     */
    public int updatePointsTransaction(WalletTransaction pointsTransaction);

    /**
     * 删除积分流水
     *
     * @param id 积分流水主键
     * @return 结果
     */
    public int deletePointsTransactionById(Long id);

    /**
     * 批量删除积分流水
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePointsTransactionByIds(Long[] ids);
}
