index.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. import http from '@/services/http'
  2. /**
  3. * 查询市场运行信息
  4. */
  5. export function queryMarketRun(params: Ermcp.MarketRunReq) {
  6. return http.commonRequest<Ermcp.MarketRunRsp[]>({
  7. url: '/Market/QueryMarketRun',
  8. params,
  9. })
  10. }
  11. /**
  12. * 首页统计数据
  13. */
  14. export function homeData(params: Ermcp.HomeDataReq) {
  15. return http.commonRequest<Ermcp.HomeDataRsp>({
  16. url: '/Guangzuan/HomeData',
  17. params,
  18. })
  19. }
  20. /**
  21. * 获取服务器时间
  22. */
  23. export function getServerTime() {
  24. return http.commonRequest<string>({
  25. url: '/Common/GetServerTime',
  26. })
  27. }
  28. /**
  29. * 查询交易端列表头信息
  30. */
  31. export function queryTableDefine(params: Ermcp.TableDefineReq) {
  32. return http.commonRequest<Ermcp.TableDefineRsp[]>({
  33. url: '/Common/QueryTableDefine',
  34. params,
  35. })
  36. }
  37. /**
  38. * 查询所有枚举信息
  39. */
  40. export function queryAllEnums(params?: Ermcp.EnumReq) {
  41. return http.commonRequest<Ermcp.EnumRsp[]>({
  42. url: '/Common/GetAllEnums',
  43. params,
  44. })
  45. }
  46. /**
  47. * 获取菜单表数据
  48. */
  49. export function queryNewFuncmenu(params: Ermcp.NewFuncmenuReq) {
  50. return http.commonRequest<Ermcp.NewFuncmenuRsp[]>({
  51. url: '/Common/FindNewFuncmenu',
  52. params,
  53. })
  54. }
  55. /**
  56. * 插入菜单表数据
  57. */
  58. export function insertNewFuncmenu(data: Partial<Ermcp.NewFuncmenuRsp>) {
  59. return http.commonRequest({
  60. method: 'post',
  61. url: '/Common/InsertNewFuncmenu',
  62. data,
  63. })
  64. }
  65. /**
  66. * 更新菜单表数据
  67. */
  68. export function updateNewFuncmenu(data: Partial<Ermcp.NewFuncmenuRsp>) {
  69. return http.commonRequest({
  70. method: 'put',
  71. url: '/Common/UpdateNewFuncmenu',
  72. data,
  73. })
  74. }
  75. /**
  76. * 删除菜单表数据
  77. */
  78. export function deleteNewFuncmenu(data: Partial<Ermcp.NewFuncmenuRsp>) {
  79. return http.commonRequest({
  80. method: 'delete',
  81. url: '/Common/DeleteNewFuncmenu',
  82. data,
  83. })
  84. }
  85. /**
  86. * 查询汇率信息
  87. */
  88. export function queryRates(params?: Ermcp.RatesReq) {
  89. return http.commonRequest<Ermcp.RatesRsp[]>({
  90. url: '/Common/QueryRates',
  91. params,
  92. })
  93. }
  94. /**
  95. * 通知公告系统消息查询
  96. */
  97. export function queryNotice(params: Ermcp.NoticeReq) {
  98. return http.commonRequest<Ermcp.NoticeRsp[]>({
  99. url: '/Common/QueryNotice',
  100. params,
  101. })
  102. }
  103. /**
  104. * 通知公告设置已读
  105. */
  106. export function postNoticeReaded(data: Ermcp.NoticeReadedReq) {
  107. return http.commonRequest({
  108. method: 'post',
  109. url: '/Common/NoticeReaded',
  110. data,
  111. })
  112. }
  113. /**
  114. * 获取数据库错误信息
  115. */
  116. export function queryErrorInfos(params?: Ermcp.ErrorInfosReq) {
  117. return http.commonRequest<Ermcp.ErrorInfosRsp[]>({
  118. url: '/Common/QueryErrorInfos',
  119. params,
  120. })
  121. }
  122. /**
  123. * 钻石价格计算器
  124. */
  125. export function priceCalc(params: Partial<Ermcp.PriceCalcReq>) {
  126. return http.commonRequest<Ermcp.PriceCalcRsp[]>({
  127. url: '/Guangzuan/PriceCalc',
  128. params,
  129. })
  130. }
  131. /**
  132. * Rapaport最新报价表(广钻)
  133. */
  134. export function gzCertAddressConfig() {
  135. return http.commonRequest<Ermcp.GzCertAddressConfigRsp[]>({
  136. url: '/Guangzuan/GzCertAddressConfig',
  137. })
  138. }
  139. /**
  140. * 钻石证书地址参数
  141. */
  142. export function gzCertAddressParam() {
  143. return http.commonRequest<Ermcp.GzCertAddressParamRsp[]>({
  144. url: '/Guangzuan/GzCertAddressParam',
  145. })
  146. }