import { PageQueryParam, PageResult } from "../../base";

/**
 * 赛事下单请求参数
 */
export interface TradeQueryParam extends PageQueryParam {
    admitStatus?: string | null;
    batchName?: string | null;
    direction?: array | string | null;
    Available?: string | null;
    endTime?: string;
    memberId?: string;
    property?: string;
    startTime?: string;
    status?: string;
}

/**
 * 交易明细分页项类型
 */
export type TradePageResult = PageResult<TradeItem[]>;

/**
 * 交易明细列表分页列表项
 */
export interface TradeItem {
    content?: {
        id?: number;
        profit?: number;
        result?: string;
        order?: {
            id?: number;
            createTime?: string;
            clearTime?: null;
            batchName?: string;
            remark?: string;
            memberId?: number;
            username?: string;
            status?: number;
            rewardStatus?: number;
            amount?: number;
            fee?: number;
            profit?: null;
        };
        admitStatus?: number;
        createTime?: string;
        admitTime?: null;
    };
}
