index.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /** ================================= 前海金相关接口 ================================**/
  2. import {commonSearch_go} from "@/services/go";
  3. import {
  4. QhjAccountOutInApply,
  5. QhjContract,
  6. QhjCustomer,
  7. QhjReckonPriceLog,
  8. QhjRStrategy,
  9. QhjRSTriggerLog,
  10. QhjTradeGoodsPickup,
  11. QueryAccountInOutApplyReq,
  12. QueryContractReq,
  13. QueryCustomerInfoReq,
  14. QueryReckonPriceLogReq,
  15. QueryRStrategyReq,
  16. QueryRSTriggerLogReq,
  17. QueryTradeGoodsPickupReq
  18. } from "@/services/go/ermcp/qhj/interface";
  19. /**
  20. * -- 铂金宝 - 提货查询
  21. * 查询提货 /Qhj/QueryTradeGoodsPickup
  22. * @constructor
  23. */
  24. export function queryTradeGoodsPickup(req: QueryTradeGoodsPickupReq): Promise<QhjTradeGoodsPickup[]> {
  25. return commonSearch_go('/Qhj/QueryTradeGoodsPickup', req).catch((err) => {
  26. throw new Error(`查询提货: ${err.message}`);
  27. });
  28. }
  29. /**
  30. * -- 铂金宝 - 充值提现审核 - 充值审核/提现审核
  31. * 查询充值提现 /Qhj/QueryAccountInOutApply
  32. * @param req
  33. */
  34. export function queryAccountInOutApply(req: QueryAccountInOutApplyReq): Promise<QhjAccountOutInApply[]> {
  35. return commonSearch_go('/Qhj/QueryAccountInOutApply', req).catch((err) => {
  36. throw new Error(`查询充值提现: ${err.message}`);
  37. });
  38. }
  39. /**
  40. * -- 铂金宝 - 定投价查询
  41. * 查询定投价(结算价) /Qhj/QueryReckonPriceLog
  42. * @param req
  43. */
  44. export function queryReckonPriceLog(req: QueryReckonPriceLogReq): Promise<QhjReckonPriceLog[]> {
  45. return commonSearch_go('/Qhj/QueryReckonPriceLog', req).catch((err) => {
  46. throw new Error(`定投价查询: ${err.message}`);
  47. });
  48. }
  49. /**
  50. * -- 铂金宝 - 定投查询 - 定投流水查询
  51. * 查询定投记录(定投管理/详情/定投记录) /Qhj/QueryRSTriggerLog
  52. * @param req
  53. */
  54. export function queryRSTriggerLog(req: QueryRSTriggerLogReq): Promise<QhjRSTriggerLog[]> {
  55. return commonSearch_go('/Qhj/QueryRSTriggerLog', req).catch((err) => {
  56. throw new Error(`查询定投记录: ${err.message}`);
  57. });
  58. }
  59. /**
  60. * -- 铂金宝 - 定投查询 - 定投计划查询
  61. * 查询定投设置(我的定投/历史定投[状态=已终止]) /Qhj/set feedback off
  62. * @param req
  63. */
  64. export function queryRStrategy(req: QueryRStrategyReq): Promise<QhjRStrategy[]> {
  65. return commonSearch_go('/Qhj/QueryRStrategy', req).catch((err) => {
  66. throw new Error(`查询定投设置: ${err.message}`);
  67. });
  68. }
  69. /**
  70. * -- 铂金宝 - 融资信息
  71. * 查询融资明细(合同) /Qhj/QueryContract
  72. * @param req
  73. */
  74. export function queryContract(req: QueryContractReq): Promise<QhjContract[]> {
  75. return commonSearch_go('/Qhj/QueryContract', req).catch((err) => {
  76. throw new Error(`查询融资明细(合同): ${err.message}`);
  77. });
  78. }
  79. /**
  80. * -- 铂金宝 - 客户资料
  81. * 查询客户资料 /Qhj/QueryCustomerInfo
  82. * @param req
  83. */
  84. export function queryCustomerInfo(req: QueryCustomerInfoReq): Promise<QhjCustomer> {
  85. return commonSearch_go('/Qhj/QueryCustomerInfo', req).catch((err) => {
  86. throw new Error(`查询客户资料: ${err.message}`);
  87. });
  88. }