index.ts 1.1 KB

123456789101112131415161718192021222324252627282930
  1. import httpClient from '@/services/http'
  2. import { CommonFetchOptions } from '@/services/http/types'
  3. /**
  4. * 通知公告-->公告通知管理-->获取列表
  5. */
  6. export function query(options: CommonFetchOptions<{ request: Notice.QueryReq; response: Notice.QueryRsp[]; }>) {
  7. return httpClient.commonRequest('/notice/query', 'get', options)
  8. }
  9. /**
  10. * 通知公告-->公告通知管理-->详情
  11. */
  12. export function noticeMsgDetail(options: CommonFetchOptions<{ request: Notice.NoticeMsgDetailReq; response: Notice.NoticeMsgDetailRsp; }>) {
  13. return httpClient.commonRequest('/notice/noticeMsgDetail', 'get', options)
  14. }
  15. /**
  16. * 通知公告-->发布通知公告
  17. */
  18. export function noticemsgadd(options: CommonFetchOptions<{ request: Partial<Notice.NoticeMsgAddReq>; }>) {
  19. return httpClient.commonRequest('/notice/noticemsgadd', 'post', options)
  20. }
  21. /**
  22. * 通知公告-->资讯管理-->获取列表
  23. */
  24. export function informManquery(options: CommonFetchOptions<{ request: Notice.InformManqueryReq; response: Notice.InformManqueryRsp[]; }>) {
  25. return httpClient.commonRequest('/notice/informManquery', 'get', options)
  26. }