index.ts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { httpRequest } from '../../../services/http/index'
  2. import { HttpRequest } from '../../../services/http/interface'
  3. import service from '../../../services/index'
  4. /* 查询汇率信息 */
  5. export function queryRates(params: HttpRequest<{req: GuangZuan.RatesReq, rsp: GuangZuan.Rates[]}>) {
  6. return httpRequest(service.config.goCommonSearchUrl+'/Common/QueryRates', 'GET', params)
  7. }
  8. /* 通知公告系统消息查询 */
  9. export function queryNotice(params: HttpRequest<{req: GuangZuan.NoticeReq, rsp: GuangZuan.Notice[]}>) {
  10. return httpRequest(service.config.goCommonSearchUrl+'/Common/QueryNotice', 'GET', params)
  11. }
  12. /* 查询轮播图配置信息 */
  13. export function queryImageConfigs(params: HttpRequest<{req: GuangZuan.ImageConfigsReq, rsp: GuangZuan.ImageConfigs[]}>) {
  14. return httpRequest(service.config.goCommonSearchUrl+'/Common/QueryImageConfigs', 'GET', params)
  15. }
  16. /* 查询发票信息 */
  17. export function queryWrUserReceiptInfo(params: HttpRequest<{req: GuangZuan.WrUserReceiptInfoReq, rsp: GuangZuan.WrUserReceiptInfo[]}>) {
  18. return httpRequest(service.config.goCommonSearchUrl+'/WrTrade2/QueryWrUserReceiptInfo', 'GET', params)
  19. }
  20. /* 查询收货地址信息 */
  21. export function queryUserReceiveInfo(params: HttpRequest<{req: GuangZuan.QueryUserReceiveInfoReq, rsp: GuangZuan.UserReceiveInfo[]}>) {
  22. return httpRequest(service.config.goCommonSearchUrl+'/Qhj/QueryUserReceiveInfo', 'GET', params)
  23. }
  24. /* 查询区域信息 */
  25. export function queryGetDivisions(params: HttpRequest<{req: GuangZuan.GetDivisionsReq, rsp: GuangZuan.GetDivisions[]}>) {
  26. return httpRequest(service.config.goCommonSearchUrl+'/Common/GetDivisions', 'GET', params)
  27. }
  28. /* 总线业务 */
  29. export function sendMsgToMQ(params: HttpRequest<{req: GuangZuan.SendMsgToMQReq, rsp: GuangZuan.SendMsgToMQRsp}>) {
  30. console.log(params.data)
  31. return httpRequest(service.config.goAccess+'/MQ/SendMsgToMQ', 'POST', params)
  32. }
  33. /* 获取所有枚举信息 */
  34. export function getAllEnums(params: HttpRequest<{req: GuangZuan.AllEnumsReq, rsp: GuangZuan.AllEnums[]}>) {
  35. return httpRequest(service.config.goCommonSearchUrl+'/Common/GetAllEnums', 'GET', params)
  36. }