index.ts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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.OrganDetailRsp[]; }>) {
  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. }