package com.bizzan.bitrade.dao;

import com.bizzan.bitrade.dao.base.BaseDao;
import com.bizzan.bitrade.entity.StakingRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * 质押流水 DAO
 *
 * @author auto
 * @date 2026-05-17
 */
public interface StakingRecordDao extends BaseDao<StakingRecord> {

    /**
     * 按用户查询质押流水，按创建时间倒序
     *
     * @param memberId 用户ID
     * @param pageable 分页参数
     * @return 质押流水分页
     */
    Page<StakingRecord> findByMemberIdOrderByCreateTimeDesc(Long memberId, Pageable pageable);
}
