index.ts 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. import httpClient from '@/services/http'
  2. import { CommonFetchOptions } from '@/services/http/types'
  3. import { useUserStore } from '@/stores'
  4. const userStore = useUserStore()
  5. /**
  6. * 通知公告-->发布通知公告
  7. */
  8. export function noticemsgadd(options: CommonFetchOptions<{ request: Partial<Notice.NoticeMsgAddReq>; }>) {
  9. return httpClient.commonRequest('/notice/noticemsgadd', 'post', options)
  10. }
  11. /**
  12. * 通知公告-->发布通知公告-->修改
  13. */
  14. export function noticemsgedit(options: CommonFetchOptions<{ request: Partial<Notice.NoticeMsgAddReq>; }>) {
  15. return httpClient.commonRequest('/notice/noticemsgedit', 'post', options)
  16. }
  17. /**
  18. * 通知公告-->公告通知管理-->获取列表
  19. */
  20. export function query(options: CommonFetchOptions<{ request: Notice.QueryReq; response: Notice.QueryRsp[]; }>) {
  21. return httpClient.commonRequest('/notice/query', 'get', options)
  22. }
  23. /**
  24. * 通知公告-->公告通知管理-->详情
  25. */
  26. export function noticeMsgDetail(options: CommonFetchOptions<{ request: Notice.NoticeMsgDetailReq; response: Notice.NoticeMsgDetailRsp; }>) {
  27. return httpClient.commonRequest('/notice/noticeMsgDetail', 'get', options)
  28. }
  29. /**
  30. * 通知公告-->公告通知管理-->审核
  31. */
  32. export function auditMsg(options: CommonFetchOptions<{ request: Notice.AuditMsgReq; }>) {
  33. return httpClient.commonRequest('/notice/auditMsg', 'get', options)
  34. }
  35. /**
  36. * 通知公告-->公告通知管理-->强制弹出/取消强制弹出
  37. */
  38. export function updateforcedisplay(options: CommonFetchOptions<{ request: Notice.UpdateForceDisplayReq; }>) {
  39. return httpClient.commonRequest('/notice/updateforcedisplay', 'get', options)
  40. }
  41. /**
  42. * 通知公告-->公告通知管理-->删除
  43. */
  44. export function noticeDelete(options: CommonFetchOptions<{ request: Notice.NoticeDeleteReq; }>) {
  45. return httpClient.commonRequest('/notice/delete', 'get', options)
  46. }
  47. /**
  48. * 通知公告-->公告通知管理-->提前失效
  49. */
  50. export function invalid(options: CommonFetchOptions<{ request: Notice.InvalidReq; }>) {
  51. return httpClient.commonRequest('/notice/invalid', 'get', options)
  52. }
  53. /**
  54. * 通知公告-->资讯栏目-->获取列表
  55. */
  56. export function columnquery(options: CommonFetchOptions<{ request: Notice.ColumnQueryReq; response: Notice.ColumnQueryRsp[]; }>) {
  57. return httpClient.commonRequest('/notice/columnquery', 'get', options)
  58. }
  59. /**
  60. * 通知公告-->资讯栏目-->详情
  61. */
  62. export function columnDetail(options: CommonFetchOptions<{ request: Notice.ColumnDetailReq; response: Notice.ColumnDetailRsp; }>) {
  63. return httpClient.commonRequest('/notice/columnDetail', 'get', options)
  64. }
  65. /**
  66. * 通知公告-->资讯栏目-->新增/修改
  67. */
  68. export function dealcolumn(options: CommonFetchOptions<{ request: Partial<Notice.DealColumnReq>; }>) {
  69. return httpClient.commonRequest('/notice/dealcolumn', 'post', options)
  70. }
  71. /**
  72. * 通知公告-->资讯栏目-->删除
  73. */
  74. export function columndelete(options: CommonFetchOptions<{ request: Notice.ColumnDeleteReq; }>) {
  75. return httpClient.commonRequest('/notice/columndelete', 'get', options)
  76. }
  77. /**
  78. * 通知公告-->资讯来源-->新增/修改
  79. */
  80. export function dealcolumnsource(options: CommonFetchOptions<{ request: Notice.DealColumnSourceReq; }>) {
  81. return httpClient.commonRequest('/notice/dealcolumnsource', 'post', options)
  82. }
  83. /**
  84. * 通知公告-->资讯来源-->获取列表
  85. */
  86. export function columnsourcequery(options: CommonFetchOptions<{ request: Notice.ColumnSourceQueryReq; response: Notice.ColumnSourceQueryRsp[]; }>) {
  87. return httpClient.commonRequest('/notice/columnsourcequery', 'get', options)
  88. }
  89. /**
  90. * 通知公告-->资讯来源-->详情
  91. */
  92. export function columnsourceDetail(options: CommonFetchOptions<{ request: Notice.ColumnSourceDetailReq; response: Notice.ColumnSourceDetailRsp; }>) {
  93. return httpClient.commonRequest('/notice/columnsourceDetail', 'get', options)
  94. }
  95. /**
  96. * 通知公告-->资讯来源-->删除
  97. */
  98. export function columnsourcedelete(options: CommonFetchOptions<{ request: Notice.ColumnSourceDeleteReq; }>) {
  99. return httpClient.commonRequest('/notice/columnsourcedelete', 'get', options)
  100. }
  101. /**
  102. * 通知公告-->资讯管理-->获取列表
  103. */
  104. export function informManquery(options: CommonFetchOptions<{ request: Notice.InformManqueryReq; response: Notice.InformManqueryRsp[]; }>) {
  105. return httpClient.commonRequest('/notice/informManquery', 'get', options)
  106. }
  107. /**
  108. * 通知公告-->资讯管理-->初始化类型列表
  109. */
  110. export function informManinit(options: CommonFetchOptions<{ response: Notice.InformManinitRsp; }>) {
  111. return httpClient.commonRequest('/notice/informManinit', 'get', options)
  112. }
  113. /**
  114. * 通知公告-->资讯管理-->新增/修改
  115. */
  116. export function dealinform(options: CommonFetchOptions<{ request: Partial<Notice.DealInformReq>; }>) {
  117. return httpClient.commonRequest('/notice/dealinform', 'post', options)
  118. }
  119. /**
  120. * 通知公告-->资讯管理-->详情
  121. */
  122. export function informDetail(options: CommonFetchOptions<{ request: Notice.InformDetailReq; response: Notice.InformDetailRsp; }>) {
  123. return httpClient.commonRequest('/notice/informDetail', 'get', options)
  124. }
  125. /**
  126. * 通知公告-->资讯管理-->展示/不展示
  127. */
  128. export function isshow(options: CommonFetchOptions<{ response: Notice.IsShowReq; }>) {
  129. return httpClient.commonRequest('/notice/isshow', 'get', options)
  130. }
  131. /**
  132. * 通知公告-->资讯管理-->审核
  133. */
  134. export function auditinform(options: CommonFetchOptions<{ response: Notice.AuditInformReq; }>) {
  135. return httpClient.commonRequest('/notice/auditinform', 'get', options)
  136. }
  137. /**
  138. * 通知公告-->资讯管理-->删除
  139. */
  140. export function deleteinform(options: CommonFetchOptions<{ response: Notice.DeleteInformReq; }>) {
  141. return httpClient.commonRequest('/notice/deleteinform', 'get', options)
  142. }
  143. /**
  144. * 通知公告-->短信查询-->获取列表
  145. */
  146. export function smsquery(options: CommonFetchOptions<{ request: Notice.SmsQueryReq; response: Notice.SmsQueryRsp[]; }>) {
  147. if (options.data) {
  148. options.data.sensitive = userStore.userInfo.sensitive.join(',')
  149. }
  150. return httpClient.commonRequest('/notice/smsquery', 'get', options)
  151. }
  152. /**
  153. * 通知公告-->短信查询-->重新发送
  154. */
  155. export function resend(options: CommonFetchOptions<{ request: Notice.ResendReq; }>) {
  156. return httpClient.commonRequest('/notice/resend', 'get', options)
  157. }