index.ts 894 B

123456789101112131415161718192021222324252627
  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. }