package com.xy.xyaicpzs.service;

import com.xy.xyaicpzs.domain.entity.VipExchangeRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author XY003
* @description 针对表【vip_exchange_record(会员兑换表)】的数据库操作Service
* @createDate 2025-06-19 11:27:10
*/
public interface VipExchangeRecordService extends IService<VipExchangeRecord> {

    /**
     * 根据用户ID获取所有兑换记录
     * @param userId 用户ID
     * @return 用户的所有兑换记录列表，按兑换时间倒序排列
     */
    List<VipExchangeRecord> getExchangeRecordsByUserId(Long userId);

}
