import { IMessageHead } from './protobuf/proto'

/**
 * 交易服务请求参数
 */
export interface TradeRequest<Req, Rsp> {
    data: { Header?: IMessageHead } & Req;
    success?: (res: Rsp) => void;
    fail?: (err: string) => void;
    complete?: () => void;
}

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