import { FunCode } from '@/constants/funcode'
import { IMessageHead } from './protobuf/proto'

/**
 * 交易服务请求参数
 */
export interface TradeRequestConfig<T extends object = { Header?: IMessageHead }> {
    params: T;
    reqName: keyof typeof FunCode;
    rspName: keyof typeof FunCode;
    marketId?: null | number;
}

/**
 * 交易服务响应结果
 */
export interface TradeResponse {
    RetCode: number;
    RetDesc: string;
    Status?: number;
}