import { protoMiddleware } from "@/services/socket/protobuf/buildReq"
import { HeadEnum } from "@/services/socket/protobuf/protoHeader"
import { WrBargainBackReq, WrBargainNoAgreeReq } from "./interface"

/**
 * 议价申请审核请求
 */
export const wrBargainNoAgree = (param: WrBargainNoAgreeReq): Promise<any> => {
    return protoMiddleware<WrBargainNoAgreeReq>(param, 'WrBargainNoAgreeReq', 'WrBargainNoAgreeRsp', HeadEnum.tradeMode17)
}
/**
 * 议价申请撤回请求
 */
export const wrBargainBack = (param: WrBargainBackReq): Promise<any> => {
    return protoMiddleware<WrBargainBackReq>(param, 'WrBargainBackReq', 'WrBargainBackRsp', HeadEnum.tradeMode17)
}

