index.ts 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. import httpClient from '@/services/http'
  2. import { CommonFetchOptions } from '@/services/http/types'
  3. /**
  4. * 获取机构开户列表信息
  5. */
  6. export function queryWskhUserinfo(options: CommonFetchOptions<{ request: Model.WskhUserinfoReq; response: Model.MemberDetail; }>) {
  7. return httpClient.commonRequest('/wskhUserinfo/query', 'get', options)
  8. }
  9. /**
  10. * 获取机构开户列表详情信息
  11. */
  12. export function queryWskhUserinfoDetail(options: CommonFetchOptions<{ request: Model.WskhUserinfoDetailReq; response: Model.MemberDetail; }>) {
  13. return httpClient.commonRequest('/wskhUserinfo/queryDetail', 'get', options)
  14. }
  15. /**
  16. * 处理开户信息 新增、修改
  17. */
  18. export function wskhUserinfoAdd(options: CommonFetchOptions<{ request: Partial<Model.MemberDetail>; }>) {
  19. return httpClient.commonRequest('/wskhUserinfo/add', 'post', options)
  20. }
  21. /**
  22. * 审核通过
  23. */
  24. export function wskhUserinfoApproved(options: CommonFetchOptions<{ request: Partial<Model.MemberDetail>; }>) {
  25. return httpClient.commonRequest('/wskhUserinfo/approved', 'post', options)
  26. }
  27. /**
  28. * 撤回提交的待审核信息
  29. */
  30. export function wskhUserinfoReBack(options: CommonFetchOptions<{ request: Model.WskhUserinfoReBackReq; }>) {
  31. return httpClient.commonRequest('/wskhUserinfo/reBack', 'get', options)
  32. }
  33. /**
  34. * 删除待提交的开户申请
  35. */
  36. export function wskhUserinfoDelete(options: CommonFetchOptions<{ request: Model.WskhUserinfoDeleteReq; }>) {
  37. return httpClient.commonRequest('/wskhUserinfo/delete', 'get', options)
  38. }
  39. /**
  40. * 获取机构及所有子机构
  41. */
  42. export function getAreaAndAllChilds(options: CommonFetchOptions<{ response: Model.AreaAndAllChildsRsp[]; }>) {
  43. return httpClient.commonRequest('/common/getAreaAndAllChilds', 'get', options)
  44. }
  45. /**
  46. * 会员机构管理-->子机构管理-->新增
  47. */
  48. export function organSonAdd(options: CommonFetchOptions<{ request: Partial<Model.organSonUpdateReq>; }>) {
  49. return httpClient.commonRequest('/organSon/addsonorgan', 'post', options)
  50. }
  51. /**
  52. * 会员机构管理-->子机构管理-->保存
  53. */
  54. export function organSonSave(options: CommonFetchOptions<{ request: Partial<Model.organSonUpdateReq>; }>) {
  55. return httpClient.commonRequest('/organSon/edit', 'post', options)
  56. }
  57. /**
  58. * 会员机构管理-->子机构管理-->修改
  59. */
  60. export function organSonEdit(options: CommonFetchOptions<{ request: Partial<Model.organSonUpdateReq>; }>) {
  61. return httpClient.commonRequest('/organSon/editsonorgan', 'post', options)
  62. }
  63. /**
  64. * 会员机构管理-->子机构管理-->注销
  65. */
  66. export function organSonDelete(options: CommonFetchOptions<{ request: Model.organSonDeleteReq; }>) {
  67. return httpClient.commonRequest('/organSon/delete', 'get', options)
  68. }
  69. /**
  70. * 会员机构管理-->子机构管理-->获取机构列表
  71. */
  72. export function queryOrganSon(options: CommonFetchOptions<{ request: Model.OrganSonReq; response: Model.OrganSonRsp[]; }>) {
  73. return httpClient.commonRequest('/organSon/query', 'get', options)
  74. }
  75. /**
  76. * 会员机构管理-->子机构管理-->撤回
  77. */
  78. export function organSonRebackChange(options: CommonFetchOptions<{ request: Model.organSonRebackChangeReq; }>) {
  79. return httpClient.commonRequest('/organSon/rebackChange', 'get', options)
  80. }
  81. /**
  82. * 会员机构管理-->子机构管理-->恢复
  83. */
  84. export function organSonRecover(options: CommonFetchOptions<{ request: Model.organSonRecoverReq; }>) {
  85. return httpClient.commonRequest('/organSon/recover', 'get', options)
  86. }
  87. /**
  88. * 会员机构管理-->子机构管理-->机构详情
  89. */
  90. export function organSonViewson(options: CommonFetchOptions<{ request: Model.organSonViewsonReq; response: Model.organSonViewsonRsp; }>) {
  91. return httpClient.commonRequest('/organSon/viewson', 'get', options)
  92. }
  93. /**
  94. * 会员机构管理-->机构管理-->机构资料管理-->获取机构资料列表
  95. */
  96. export function queryOrganDetailList(options: CommonFetchOptions<{ request: Model.OrganDetailListReq; response: Model.OrganDetailListRsp[]; }>) {
  97. return httpClient.commonRequest('/organDetail/query', 'get', options)
  98. }
  99. /**
  100. * 会员机构管理-->机构管理-->机构资料管理-->获取机构资料详情信息
  101. */
  102. export function queryOrganDetail(options: CommonFetchOptions<{ request: Model.OrganDetailReq; response: Model.OrganDetailRsp; }>) {
  103. return httpClient.commonRequest('/organDetail/queryDetail', 'get', options)
  104. }
  105. /**
  106. * 会员机构管理-->机构管理-->商品限制设置--> 新增、修改
  107. */
  108. export function addLimit(options: CommonFetchOptions<{ request: Model.AddLimitReq; }>) {
  109. return httpClient.commonRequest('/organDetail/addlimit', 'post', options)
  110. }
  111. /**
  112. * 会员机构管理-->机构管理-->商品限制设置--> 删除
  113. */
  114. export function delLimit(options: CommonFetchOptions<{ request: Model.DelLimitReq; }>) {
  115. return httpClient.commonRequest('/organDetail/dellimit', 'get', options)
  116. }
  117. /**
  118. * 会员机构管理-->机构管理-->商品限制设置-->获取列表
  119. */
  120. export function queryMemberGoodsLimit(options: CommonFetchOptions<{ request: Model.MemberGoodsLimitReq; response: Model.MemberGoodsLimitRsp[]; }>) {
  121. return httpClient.commonRequest('/organDetail/querymembergoodslimit', 'get', options)
  122. }
  123. /**
  124. * 会员机构管理-->机构管理-->风控个性化设置--> 新增
  125. */
  126. export function addAccountRiskConfig(options: CommonFetchOptions<{ request: Model.AddAccountRiskConfigReq; }>) {
  127. return httpClient.commonRequest('/organDetail/addaccountriskconfig', 'post', options)
  128. }
  129. /**
  130. * 会员机构管理-->机构管理-->风控个性化设置-->详情
  131. */
  132. export function accountRiskConfigview(options: CommonFetchOptions<{ request: Model.AccountRiskConfigViewReq; response: Model.AccountRiskConfigViewRsp;}>) {
  133. return httpClient.commonRequest('/organDetail/accountriskconfigview', 'get', options)
  134. }
  135. /**
  136. * 会员机构管理-->机构管理-->风控个性化设置-->获取列表
  137. */
  138. export function queryAccountRiskConfig(options: CommonFetchOptions<{ request: Model.AccountRiskConfigReq; response: Model.AccountRiskConfigRsp[]; }>) {
  139. return httpClient.commonRequest('/organDetail/accountriskconfig', 'get', options)
  140. }
  141. /**
  142. * 会员机构管理-->机构管理-->会员机构查询-->获取列表(营销中心查看经纪会员)
  143. */
  144. export function queryRole(options: CommonFetchOptions<{ request: Model.OrganRoleReq; response: Model.OrganRoleRsp[]; }>) {
  145. return httpClient.commonRequest('/organDetail/queryrole', 'get', options)
  146. }
  147. /**
  148. * 会员机构管理-->机构管理-->机构详情 ( rolename: 2--运营 operate * 3--营销 marketing * 4--仓库 warehouse * 5--三方 tpart * 6--自营 selfsupport * 7--经纪 broker * 8--做市 marketer * 9--产业 industry)
  149. */
  150. export function queryRoleDetail(options: CommonFetchOptions<{ request: Model.OrganRoleDetailReq; response: Model.OrganRoleDetailRsp; }>) {
  151. return httpClient.commonRequest('/organDetail/queryroleDetail', 'get', options)
  152. }
  153. /**
  154. * 会员机构管理-->机构管理-->机构角色删除
  155. */
  156. export function deleteOrganRole(options: CommonFetchOptions<{ request: Model.OrganRoleDeleteReq; }>) {
  157. return httpClient.commonRequest('/organDetail/del', 'get', options)
  158. }
  159. /**
  160. * 会员机构管理-->机构管理-->风控个性化设置--> 删除
  161. */
  162. export function deleteAccountRiskConfig(options: CommonFetchOptions<{ request: Model.DeleteAccountRiskConfigReq; }>) {
  163. return httpClient.commonRequest('/organDetail/delaccountriskconfig', 'get', options)
  164. }