index.ts 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import { httpRequest } from '@/services/http'
  2. import { HttpParams } from '@/services/http/interface'
  3. import { tradeServerRequest } from '@/services/socket/trade'
  4. import { TradeParams } from '@/services/socket/trade/interface'
  5. /**
  6. * 账户资金信息请求
  7. */
  8. export function accountFundInfoReq(params: TradeParams<Partial<Proto.AccountFundInfoReq>, Proto.AccountFundInfoRsp>) {
  9. return tradeServerRequest('AccountFundInfoReq', 'AccountFundInfoRsp', params);
  10. }
  11. /**
  12. * 银行签约
  13. */
  14. export function t2bBankSign(params: TradeParams<Partial<Proto.t2bBankSignReq>, Proto.t2bBankSignRsp>) {
  15. return tradeServerRequest('t2bBankSignReq', 't2bBankSignRsp', params);
  16. }
  17. /**
  18. * 银行解约
  19. */
  20. export function t2bBankCancelSign(params: TradeParams<Proto.t2bBankCancelSignReq, Proto.t2bBankCancelSignRsp>) {
  21. return tradeServerRequest('t2bBankCancelSignReq', 't2bBankCancelSignRsp', params);
  22. }
  23. /**
  24. * 出金申请
  25. */
  26. export function t2bBankWithdraw(params: TradeParams<Partial<Proto.t2bBankWithdrawReq>, Proto.t2bBankWithdrawRsp>) {
  27. return tradeServerRequest('t2bBankWithdrawReq', 't2bBankWithdrawRsp', params);
  28. }
  29. /**
  30. * 入金申请
  31. */
  32. export function t2bBankDeposit(params: TradeParams<Partial<Proto.t2bBankDepositReq>, Proto.t2bBankDepositRsp>) {
  33. return tradeServerRequest('t2bBankDepositReq', 't2bBankDepositRsp', params);
  34. }
  35. /**
  36. * 查询托管银行
  37. */
  38. export function queryCusBankSignBank(params: HttpParams<{ rsp: Model.CusBankSignBankRsp[] }>) {
  39. return httpRequest('/Qhj/QueryCusBankSignBank', 'get', params);
  40. }
  41. /**
  42. * 查询开户行
  43. */
  44. export function queryBankInfo(params: HttpParams<{ rsp: Model.BankInfoRsp[] }>) {
  45. return httpRequest('/Qhj/QueryBankInfo', 'get', params);
  46. }
  47. /**
  48. * 查询签约银行信息(提现账户管理)
  49. */
  50. export function queryBankAccountSign(params: HttpParams<{ req: Model.BankAccountSignReq, rsp: Model.BankAccountSignRsp[] }>) {
  51. return httpRequest('/Qhj/QueryBankAccountSign', 'get', params);
  52. }
  53. /**
  54. * 查询充值提现
  55. */
  56. export function queryAccountInOutApply(params: HttpParams<{ req: Model.AccountInOutApplyReq, rsp: Model.AccountOutInApplyRsp[] }>) {
  57. return httpRequest('/Qhj/QueryAccountInOutApply', 'get', params);
  58. }
  59. /**
  60. * 资金流水查询(历史)
  61. */
  62. export function queryHisAmountLog(params: HttpParams<{ req: Model.HisAmountLogReq, rsp: Model.HisAmountLogRsp[] }>) {
  63. return httpRequest('/TaAccount/QueryHisAmountLog', 'get', params);
  64. }