package cn.iocoder.yudao.module.shop.mapper;

import cn.iocoder.yudao.module.shop.entity.ShopUserBalanceChanges;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 积分记录Mapper接口
 *
 * @author ruoyi
 * @date 2023-07-09
 */
@Mapper
public interface ShopUserBalanceChangesMapper
{
    /**
     * 查询积分记录
     *
     * @param id 积分记录主键
     * @return 积分记录
     */
    public ShopUserBalanceChanges selectShopUserBalanceChangesById(Long id);

    /**
     * 查询积分记录列表
     *
     * @param shopUserBalanceChanges 积分记录
     * @return 积分记录集合
     */
    public List<ShopUserBalanceChanges> selectShopUserBalanceChangesList(ShopUserBalanceChanges shopUserBalanceChanges);

    /**
     * 新增积分记录
     *
     * @param shopUserBalanceChanges 积分记录
     * @return 结果
     */
    public int insertShopUserBalanceChanges(ShopUserBalanceChanges shopUserBalanceChanges);

    /**
     * 修改积分记录
     *
     * @param shopUserBalanceChanges 积分记录
     * @return 结果
     */
    public int updateShopUserBalanceChanges(ShopUserBalanceChanges shopUserBalanceChanges);

    /**
     * 删除积分记录
     *
     * @param id 积分记录主键
     * @return 结果
     */
    public int deleteShopUserBalanceChangesById(Long id);

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