news.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { post } from '@/utils/request';
  2. /**
  3. * 新闻公告相关接口集合
  4. * 所有接口均为post请求,host参数已按原逻辑保留
  5. */
  6. export const newsApi = {
  7. /** 观点分析列表 */
  8. newsAnalysisList: (params = {}) => post('/news/analysis/search/list', params, 'Host80'),
  9. /** 观点分析详情 */
  10. newsAnalysisSingle: (params = {}) => post('/news/analysis/search/single', params, 'Host80'),
  11. /** 公告通知列表 */
  12. newsInformationList: (params = {}) => post('/web/information/list', params, 'Host80'),
  13. /** 公告通知详情 */
  14. newsInformationSingle: (params = {}) => post('/web/information/single', params, 'Host80'),
  15. /** 通知列表 */
  16. newsNoticeList: (params = {}) => post('/web/notice/search/list/record', params, 'Host80'),
  17. /** 通知未读数量 */
  18. newsNoticeRead: (params = {}) => post('/web/notice/search/read', params, 'Host80'),
  19. /** 通知详情 */
  20. newsNoticeSingle: (params = {}) => post('/web/notice/search/single/record', params, 'Host80'),
  21. /** 新闻时讯列表 */
  22. newsInformationNewsletterList: (params = {}) => post('/web/information/newsletter/list', params, 'Host80'),
  23. /** 新闻时讯详情 */
  24. newsInformationNewsletterSingle: (params = {}) => post('/web/information/single', params, 'Host80'),
  25. /** 交易策略 */
  26. handShakeGet: (params = {}) => post('/hand/shake/get/featured_forex', params, 'Host80'),
  27. /** 财经日历 */
  28. handFinancialCalendar: (params = {}) => post('/hand/shake/get/economic_calendar', params, 'Host80'),
  29. /** 视频列表 */
  30. newsVideoList: (params = {}) => post('/web/video/list', params, 'Host80'),
  31. /** 视频详情 */
  32. newsVideoSingle: (params = {}) => post('/web/video/single', params, 'Host80'),
  33. /** webTv列表 */
  34. newsWebTvSearch: (params = {}) => post('/news/web/tv/search/list', params, 'Host80'),
  35. /** webTv详情 */
  36. newsWebTvSearchSingle: (params = {}) => post('/news/web/tv/search/single', params, 'Host80'),
  37. /** 电子书列表 */
  38. newsEbookList: (params = {}) => post('/web/ebook/list', params, 'Host80'),
  39. /** 电子书详情 */
  40. newsEbookSingle: (params = {}) => post('/web/ebook/single', params, 'Host80'),
  41. };