index.ts 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. return httpRequest(service.config.goAccess+'/MQ/SendMsgToMQ', 'POST', params)
  31. }
  32. /* 获取所有枚举信息 */
  33. export function getAllEnums(params: HttpRequest<{req: GuangZuan.AllEnumsReq, rsp: GuangZuan.AllEnums[]}>) {
  34. return httpRequest(service.config.goCommonSearchUrl+'/Common/GetAllEnums', 'GET', params)
  35. }
  36. /* 获取数据库错误信息 */
  37. export function queryErrorInfos(params: HttpRequest<{req: GuangZuan.ErrorReq, rsp: GuangZuan.Error[]}>) {
  38. return httpRequest(service.config.goCommonSearchUrl+'/Common/QueryErrorInfos', 'GET', params)
  39. }
  40. /* 获取会员风采表 */
  41. export function getGZMemberInfo(params: HttpRequest<{req: GuangZuan.GzCertAddressParamReq, rsp: GuangZuan.GZMemberInfo[]}>) {
  42. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/GetGZMemberInfo', 'GET', params)
  43. }
  44. /* 获取保税商品表 */
  45. export function getGZBSCGoods(params: HttpRequest<{req: GuangZuan.GzCertAddressParamReq, rsp: GuangZuan.GZBSCGoods[]}>) {
  46. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/GetGZBSCGoods', 'GET', params)
  47. }