index.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. import httpClient from '@/services/http'
  2. import { CommonFetchOptions } from '@/services/http/types'
  3. /**
  4. * 交易商开户列表信息获取
  5. */
  6. export function queryInvestor(options: CommonFetchOptions<{ request: Model.InvestorReq; response: Model.InvestorRsp; }>) {
  7. return httpClient.commonRequest('/investor/query', 'get', options)
  8. }
  9. /**
  10. * 获取交易商开户详情信息
  11. */
  12. export function queryInvestorDetail(options: CommonFetchOptions<{ request: Model.InvestorDetailReq; response: Model.MemberDetail; }>) {
  13. return httpClient.commonRequest('/investor/querySunDetail', 'get', options)
  14. }
  15. /**
  16. * 交易商开户
  17. */
  18. export function dealSunOrgan(options: CommonFetchOptions<{ request: Partial<Model.MemberDetail>; }>) {
  19. return httpClient.commonRequest('/investor/dealSunOrgan', 'post', options)
  20. }
  21. /**
  22. * 获取交易商列表信息
  23. */
  24. export function queryInvestorList(options: CommonFetchOptions<{ request: Model.InvestorListReq; response: Model.InvestorListRsp; }>) {
  25. return httpClient.commonRequest('/investor/initQuery', 'get', options)
  26. }
  27. /**
  28. * 获取交易商详情信息
  29. */
  30. export function queryInvestorListDetail(options: CommonFetchOptions<{ request: Model.InvestorListDetailReq; response: Model.InvestorListDetailRsp; }>) {
  31. return httpClient.commonRequest('/investor/initQueryDetail', 'get', options)
  32. }
  33. /**
  34. * 交易商管理-->开户管理-->交易商初审/复审
  35. */
  36. export function investorProcess(options: CommonFetchOptions<{ request: Model.InvestorProcessReq; }>) {
  37. return httpClient.commonRequest('/investor/investorProcess', 'get', options)
  38. }
  39. /**
  40. * 交易商管理导出
  41. */
  42. export function investorExport(options: CommonFetchOptions<{ response: string; }> = {}) {
  43. return httpClient.commonRequest('/investor/export', 'get', options)
  44. }
  45. /**
  46. * 交易商管理-->交易商管理-->查询个性化设置
  47. */
  48. export function accountQuery(options: CommonFetchOptions<{ request: Model.AccountQueryReq; response: Model.AccountQueryRsp; }>) {
  49. return httpClient.commonRequest('/investor/accountQuery', 'get', options)
  50. }
  51. /**
  52. * 交易商管理-->交易商管理-->登录账户列表查询-->注销停用
  53. */
  54. export function deleteAccount(options: CommonFetchOptions<{ request: Model.DeleteAccountReq; }>) {
  55. return httpClient.commonRequest('/investor/deleteAccount', 'get', options)
  56. }
  57. /**
  58. * 交易商管理-->交易商管理-->资金账户、资金账户详情(userid不传)
  59. */
  60. export function showAccount(options: CommonFetchOptions<{ request: Model.ShowAccountReq; response: Model.ShowAccountRsp[]; }> = {}) {
  61. return httpClient.commonRequest('/investor/showAccount', 'get', options)
  62. }
  63. /**
  64. * 交易商管理-->交易商变更审核-->查询交易商变更审核列表
  65. */
  66. export function queryModifyPage(options: CommonFetchOptions<{ request: Model.ModifyPageReq; response: Model.ModifyPageRsp[]; }>) {
  67. return httpClient.commonRequest('/investor/queryModifyPage', 'get', options)
  68. }
  69. /**
  70. * 交易商管理-->个性化管理-->交易商分组管理-->获取列表
  71. */
  72. export function queryPersonalized(options: CommonFetchOptions<{ request: Model.PersonalizedReq; response: Model.PersonalizedRsp[]; }>) {
  73. return httpClient.commonRequest('/investor/queryPersonalized', 'get', options)
  74. }
  75. /**
  76. * 交易商管理-->个性化管理-->交易商分组管理-->分组交易商获取列表
  77. */
  78. export function queryPersonalizedDetail(options: CommonFetchOptions<{ request: Model.PersonalizedDetailReq; response: Model.PersonalizedDetailRsp[]; }>) {
  79. return httpClient.commonRequest('/investor/queryPersonalizedDetail', 'get', options)
  80. }
  81. /**
  82. * 交易商管理-->个性化管理-->交易商分组管理-->分组交易商获取列表-->初始化交易商
  83. */
  84. export function queryInvestorForPer(options: CommonFetchOptions<{ request: Model.InvestorForPerReq; response: Model.InvestorForPerRsp; }>) {
  85. return httpClient.commonRequest('/investor/queryInvestorForPer', 'get', options)
  86. }
  87. /**
  88. * 交易商管理-->个性化管理-->交易商分组管理-->获取所选客户信息对应风险率
  89. */
  90. export function getRiskRatioTypeForMarketer(options: CommonFetchOptions<{ request: Model.RiskRatioTypeForMarketerReq; response: Model.RiskRatioTypeForMarketerRsp; }>) {
  91. return httpClient.commonRequest('/investor/getRiskRatioTypeForMarketer', 'get', options)
  92. }
  93. /**
  94. * 交易商管理-->个性化管理-->交易商分组管理-->新增
  95. */
  96. export function addPersonalized(options: CommonFetchOptions<{ request: Model.AddPersonalizedReq; }>) {
  97. return httpClient.commonRequest('/investor/addPersonalized', 'post', options)
  98. }
  99. /**
  100. * 交易商管理-->个性化管理-->交易商分组管理-->删除
  101. */
  102. export function delInvest(options: CommonFetchOptions<{ request: Model.DelInvestReq; }>) {
  103. return httpClient.commonRequest('/investor/delInvest', 'get', options)
  104. }
  105. /**
  106. * 交易商管理-->个性化管理-->交易商分组管理-->分组交易商获取列表-->新增
  107. */
  108. export function addInvestorForPer(options: CommonFetchOptions<{ request: Model.AddInvestorForPerReq; }>) {
  109. return httpClient.commonRequest('/investor/addInvestorForPer', 'post', options)
  110. }
  111. /**
  112. * 交易商管理-->个性化管理-->交易商分组管理-->分组交易商获取列表-->删除
  113. */
  114. export function delInvestorForPer(options: CommonFetchOptions<{ request: Model.DelInvestorForPerReq; }>) {
  115. return httpClient.commonRequest('/investor/delInvestorForPer', 'get', options)
  116. }
  117. /**
  118. * 交易商管理-->个性化管理-->风控个性化-->获取列表
  119. */
  120. export function queryAccountRiskConfig(options: CommonFetchOptions<{ request: Model.AccountRiskConfigReq; response: Model.AccountRiskConfigRsp[]; }>) {
  121. return httpClient.commonRequest('/investor/queryAccountRiskConfig', 'get', options)
  122. }
  123. /**
  124. * 交易商管理-->个性化管理-->风控个性化-->详情
  125. */
  126. export function investorView(options: CommonFetchOptions<{ request: Model.InvestorViewReq; response: Model.InvestorViewRsp; }>) {
  127. return httpClient.commonRequest('/investor/view', 'get', options)
  128. }
  129. /**
  130. * 交易商管理-->个性化管理-->风控个性化-->新增获取交易商资金账户信息
  131. */
  132. export function getTaaccountList(options: CommonFetchOptions<{ request: Model.TaaccountListReq; response: number[]; }>) {
  133. return httpClient.commonRequest('/investor/getTaaccountList', 'get', options)
  134. }
  135. /**
  136. * 交易商管理-->个性化管理-->风控个性化-->新增/修改
  137. */
  138. export function addAccountRiskConfig(options: CommonFetchOptions<{ request: Model.AddAccountRiskConfigReq; }>) {
  139. return httpClient.commonRequest('/investor/addAccountRiskConfig', 'post', options)
  140. }
  141. /**
  142. * 交易商管理-->个性化管理-->风控个性化-->删除
  143. */
  144. export function deleteConfig(options: CommonFetchOptions<{ request: Model.DeleteConfigReq; }>) {
  145. return httpClient.commonRequest('/investor/deleteConfig', 'get', options)
  146. }
  147. /**
  148. * 交易商管理-->个性化管理-->交易商个性化-->获取树结构
  149. */
  150. export function getInvestorTree(options: CommonFetchOptions<{ response: Model.InvestorTreeRsp[]; }>) {
  151. return httpClient.commonRequest('/investor/getTree', 'get', options)
  152. }
  153. /**
  154. * 交易商管理-->个性化管理-->交易商个性化-->新增-->初始化交易商个性化信息
  155. */
  156. export function initInvestorPerson(options: CommonFetchOptions<{ request: Model.InvestorPersonReq; response: Model.InvestorPersonRsp; }>) {
  157. return httpClient.commonRequest('/investor/initInvestorPerson', 'get', options)
  158. }
  159. /**
  160. * 交易商管理-->个性化管理-->交易商个性化-->修改-->初始化保证金类别
  161. */
  162. export function initBZList(options: CommonFetchOptions<{ request: Model.BZListReq; response: Model.BZListRsp[]; }>) {
  163. return httpClient.commonRequest('/investor/initBZList', 'get', options)
  164. }
  165. /**
  166. * 交易商管理-->个性化管理-->交易商个性化-->新增/修改
  167. */
  168. export function traderPersonAdd(options: CommonFetchOptions<{ request: Partial<Model.TraderPersonAddReq>; }>) {
  169. return httpClient.commonRequest('/investor/traderPersonAdd', 'post', options)
  170. }
  171. /**
  172. * 交易商管理-->个性化管理-->交易商个性化-->删除
  173. */
  174. export function deleteTraderConfig(options: CommonFetchOptions<{ request: Partial<Model.DeleteTraderConfigReq>; }>) {
  175. return httpClient.commonRequest('/investor/deleteTraderConfig', 'post', options)
  176. }
  177. /**
  178. * 交易商管理-->个性化管理-->交易商个性化-->详情
  179. */
  180. export function tradeConfigView(options: CommonFetchOptions<{ request: Model.TradeConfigViewReq; response: Model.TradeConfigViewRsp; }>) {
  181. return httpClient.commonRequest('/investor/tradeConfigView', 'get', options)
  182. }
  183. /**
  184. * 交易商管理-->交易商管理-->修改
  185. */
  186. export function investorEdit(options: CommonFetchOptions<{ request: Model.InvestorEditReq; }>) {
  187. return httpClient.commonRequest('/investor/investorEdit', 'post', options)
  188. }
  189. /**
  190. * 交易商管理-->交易商管理-->撤回变更
  191. */
  192. export function investorRebackChange(options: CommonFetchOptions<{ request: Model.InvestorRebackChangeReq; }>) {
  193. return httpClient.commonRequest('/investor/rebackChange', 'get', options)
  194. }
  195. /**
  196. * 交易商管理-->交易商管理-->注销
  197. */
  198. export function investorLogOff(options: CommonFetchOptions<{ request: Model.InvestorLogOffReq; }>) {
  199. return httpClient.commonRequest('/investor/logOff', 'get', options)
  200. }
  201. /**
  202. * 交易商管理-->交易商管理-->恢复
  203. */
  204. export function investorRecover(options: CommonFetchOptions<{ request: Model.InvestorRecoverReq; }>) {
  205. return httpClient.commonRequest('/investor/recover', 'get', options)
  206. }
  207. /**
  208. * 交易商管理-->交易商管理-->资金账户-->修改
  209. */
  210. export function investorAccountEdit(options: CommonFetchOptions<{ request: Model.InvestorAccountEditReq; }>) {
  211. return httpClient.commonRequest('/investor/edit', 'post', options)
  212. }
  213. /**
  214. * 交易商管理-->交易商管理-->登录账户列表查询
  215. */
  216. export function queryInvestorLoginList(options: CommonFetchOptions<{ request: Model.InvestorLoginListReq; response: Model.InvestorLoginListRsp; }>) {
  217. return httpClient.commonRequest('/investor/queryInvestor', 'get', options)
  218. }
  219. /**
  220. * 交易商管理-->交易商管理-->登录账户列表查询-->查看登录流水
  221. */
  222. export function queryLoginLog(options: CommonFetchOptions<{ request: Model.LoginLogReq; response: Model.LoginLogRsp; }>) {
  223. return httpClient.commonRequest('/investor/queryLoginLog', 'get', options)
  224. }
  225. /**
  226. * 交易商管理-->交易商管理-->登录账户列表查询-->查看手机号
  227. */
  228. export function queryUserAuthInfo(options: CommonFetchOptions<{ request: Model.UserAuthInfoReq; response: Model.UserAuthInfoRsp; }>) {
  229. return httpClient.commonRequest('/investor/queryUserAuthInfo', 'get', options)
  230. }
  231. /**
  232. * 交易商管理-->交易商管理-->登录账户列表查询-->账号锁定、解锁
  233. */
  234. export function lockAccount(options: CommonFetchOptions<{ request: Model.LockAccountReq; }>) {
  235. return httpClient.commonRequest('/investor/lockAccount', 'get', options)
  236. }
  237. /**
  238. * 交易商管理-->交易商管理-->登录账户列表查询-->重置密码
  239. */
  240. export function resetPwd(options: CommonFetchOptions<{ request: Model.ResetPwdReq; }>) {
  241. return httpClient.commonRequest('/investor/resetPwd', 'get', options)
  242. }
  243. /**
  244. * 交易商管理-->交易商管理-->登录账户列表查询-->恢复
  245. */
  246. export function restoreAccount(options: CommonFetchOptions<{ request: Model.RestoreAccountReq; }>) {
  247. return httpClient.commonRequest('/investor/restoreAccount', 'get', options)
  248. }
  249. /**
  250. * 交易商管理-->交易商变更审核-->审核
  251. */
  252. export function modifyAudit(options: CommonFetchOptions<{ request: Model.ModifyAuditReq; }>) {
  253. return httpClient.commonRequest('/investor/modifyAudit', 'get', options)
  254. }
  255. /**
  256. * 交易商管理-->个性化管理-->资金账户个性化-->获取树结构
  257. */
  258. export function getAccTradeTree(options: CommonFetchOptions<{ response: Model.AccTradeTreeRsp; }>) {
  259. return httpClient.commonRequest('/investor/getAccTradeTree', 'get', options)
  260. }
  261. /**
  262. * 交易商管理-->个性化管理-->资金账户个性化--> 详情
  263. */
  264. export function accTradeConfigView(options: CommonFetchOptions<{ request: Model.AccTradeConfigViewReq; response: Model.AccTradeConfigViewRsp; }>) {
  265. return httpClient.commonRequest('/investor/accTradeConfigView', 'get', options)
  266. }
  267. /**
  268. * 交易商管理-->个性化管理-->资金账户个性化--> 新增初始化交易商信息
  269. */
  270. export function initAccTrade(options: CommonFetchOptions<{ request: Model.InitAccTradeReq; response: Model.InitAccTradeRsp[]; }>) {
  271. return httpClient.commonRequest('/investor/initAccTrade', 'get', options)
  272. }
  273. /**
  274. * 交易商管理-->个性化管理-->资金账户个性化--> 删除
  275. */
  276. export function accTradeConfigDelete(options: CommonFetchOptions<{ request: Model.AccTradeConfigDeleteReq; }>) {
  277. return httpClient.commonRequest('/investor/accTradeConfigDelete', 'get', options)
  278. }
  279. /**
  280. * 交易商管理-->交易商批量转移-->新增
  281. */
  282. export function investorTransferAdd(options: CommonFetchOptions<{ request: Partial<Model.InvestorTransferAddReq>; }>) {
  283. return httpClient.commonRequest('/investor/organSonTransferAdd', 'post', options)
  284. }
  285. /**
  286. * 交易商管理-->交易商批量转移-->新增初始化
  287. */
  288. export function getUserAccountDetail(options: CommonFetchOptions<{ request: Model.UserAccountDetailReq; response: Model.UserAccountDetailRsp; }>) {
  289. return httpClient.commonRequest('/investor/getUserAccountDetail', 'get', options)
  290. }
  291. /**
  292. * 交易商管理-->交易商销户审核-->获取列表
  293. */
  294. export function investorUserCancelApply(options: CommonFetchOptions<{ request: Model.InvestorUserCancelApplyReq; response: Model.InvestorUserCancelApplyRsp[]; }>) {
  295. return httpClient.commonRequest('/investor/usercancelapply', 'get', options)
  296. }
  297. /**
  298. * 交易商管理-->交易商销户审核-->详情
  299. */
  300. export function investorCancelview(options: CommonFetchOptions<{ request: Model.InvestorCancelviewReq; response: Model.InvestorCancelviewRsp; }>) {
  301. return httpClient.commonRequest('/investor/cancelview', 'get', options)
  302. }
  303. /**
  304. * 交易商管理-->交易商销户审核-->审核
  305. */
  306. export function investorCancelaudit(options: CommonFetchOptions<{ request: Model.InvestorCancelauditReq; }>) {
  307. return httpClient.commonRequest('/investor/cancelaudit', 'get', options)
  308. }