index.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. /// Token校验
  12. export function tokenCheck(params: HttpRequest<{req: GuangZuan.TokenCheckReq, rsp: GuangZuan.TokenCheckRsp}>) {
  13. return httpRequest(service.config.goAccess+'/Account/TokenCheck', 'GET', params)
  14. }
  15. /**
  16. * 账户登录后信息查询
  17. *
  18. */
  19. export function loginQuery(params: HttpRequest<{req: GuangZuan.LoginQueryReq, rsp: GuangZuan.LoginQuery}>) {
  20. return httpRequest(service.config.goCommonSearchUrl+'/User/LoginQuery', 'GET', params)
  21. }
  22. /**
  23. * 获取资金账户信息
  24. *
  25. */
  26. export function getTaAccounts(params: HttpRequest<{req: GuangZuan.TaAccountReq, rsp: GuangZuan.TaAccount[]}>) {
  27. return httpRequest(service.config.goCommonSearchUrl+'/TaAccount/GetTaAccounts', 'GET', params)
  28. }
  29. /**
  30. * 查询开户行
  31. *
  32. */
  33. export function queryBankInfo(params: HttpRequest<{req: GuangZuan.GzCertAddressConfigReq, rsp: GuangZuan.BankInfo[]}>) {
  34. return httpRequest(service.config.goCommonSearchUrl+'/Qhj/QueryBankInfo', 'GET', params)
  35. }
  36. /**
  37. * 查询托管银行
  38. *
  39. */
  40. export function queryCusBankSignBank(params: HttpRequest<{req: GuangZuan.GzCertAddressConfigReq, rsp: GuangZuan.CusBankInfo[]}>) {
  41. return httpRequest(service.config.goCommonSearchUrl+'/Qhj/QueryCusBankSignBank', 'GET', params)
  42. }
  43. /**
  44. * 查询提现账户设置
  45. *
  46. */
  47. export function queryQhjUserCollectConfig(params: HttpRequest<{req: GuangZuan.QueryUserReceiveInfoReq, rsp: GuangZuan.UserCollectConfig[]}>) {
  48. return httpRequest(service.config.goCommonSearchUrl+'/Qhj/QueryUserCollectConfig', 'GET', params)
  49. }
  50. /**
  51. * 查询签约银行信息(提现账户管理)
  52. *
  53. */
  54. export function queryBankAccountSign(params: HttpRequest<{req: GuangZuan.QueryUserReceiveInfoReq, rsp: GuangZuan.BankAccountSign[]}>) {
  55. return httpRequest(service.config.goCommonSearchUrl+'/Qhj/QueryBankAccountSign', 'GET', params)
  56. }
  57. /**
  58. * 获取登录ID
  59. *
  60. */
  61. export function getLoginID(params: HttpRequest<{req: GuangZuan.GetLoginIDReq, rsp: GuangZuan.GetLoginIDRsp}>) {
  62. return httpRequest(service.config.goCommonSearchUrl+'/User/GetLoginID', 'GET', params)
  63. }