index.ts 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import { httpRequest } from '../../../services/http/index'
  2. import { HttpRequest } from '../../../services/http/interface'
  3. import service from '../../../services/index'
  4. /**
  5. * 用户登录
  6. *
  7. */
  8. export function login(params: HttpRequest<{req: GuangZuan.LoginReq, rsp: GuangZuan.LoginRsp}>) {
  9. return httpRequest(service.config.goAccess+'/Account/Login', 'POST', params)
  10. }
  11. /**
  12. * 账户登录后信息查询
  13. *
  14. */
  15. export function loginQuery(params: HttpRequest<{req: GuangZuan.LoginQueryReq, rsp: GuangZuan.LoginQuery}>) {
  16. return httpRequest(service.config.goCommonSearchUrl+'/User/LoginQuery', 'GET', params)
  17. }
  18. /**
  19. * 获取资金账户信息
  20. *
  21. */
  22. export function getTaAccounts(params: HttpRequest<{req: GuangZuan.TaAccountReq, rsp: GuangZuan.TaAccount[]}>) {
  23. return httpRequest(service.config.goCommonSearchUrl+'/TaAccount/GetTaAccounts', 'GET', params)
  24. }
  25. /**
  26. * 查询开户行
  27. *
  28. */
  29. export function queryBankInfo(params: HttpRequest<{req: GuangZuan.GzCertAddressConfigReq, rsp: GuangZuan.BankInfo[]}>) {
  30. return httpRequest(service.config.goCommonSearchUrl+'/Qhj/QueryBankInfo', 'GET', params)
  31. }
  32. /**
  33. * 查询托管银行
  34. *
  35. */
  36. export function queryCusBankSignBank(params: HttpRequest<{req: GuangZuan.GzCertAddressConfigReq, rsp: GuangZuan.CusBankInfo[]}>) {
  37. return httpRequest(service.config.goCommonSearchUrl+'/Qhj/QueryCusBankSignBank', 'GET', params)
  38. }
  39. /**
  40. * 查询提现账户设置
  41. *
  42. */
  43. export function queryQhjUserCollectConfig(params: HttpRequest<{req: GuangZuan.QueryUserReceiveInfoReq, rsp: GuangZuan.UserCollectConfig[]}>) {
  44. return httpRequest(service.config.goCommonSearchUrl+'/Qhj/QueryUserCollectConfig', 'GET', params)
  45. }
  46. /**
  47. * 查询签约银行信息(提现账户管理)
  48. *
  49. */
  50. export function queryBankAccountSign(params: HttpRequest<{req: GuangZuan.QueryUserReceiveInfoReq, rsp: GuangZuan.BankAccountSign[]}>) {
  51. return httpRequest(service.config.goCommonSearchUrl+'/Qhj/QueryBankAccountSign', 'GET', params)
  52. }