| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- import Service from '../lib/service'
- import axios from "axios";
- import Config from '../config'
- class NewsService extends Service {
- constructor () {
- super()
- axios.defaults.baseURL = Config.Host80
- }
- //观点分析
- async newsAnalysisList (params = {}) {
- let res = await this.postAll("Host80","/news/analysis/search/list", params);
- return res
- }
- //观点分析
- async newsAnalysisSingle (params = {}) {
- let res = await this.postAll("Host80","/news/analysis/search/single", params);
- return res
- }
- //公告通知
- async newsInformationList (params = {}) {
- let res = await this.postAll("Host80","/web/information/list", params);
- return res
- }
- //公告通知
- async newsInformationSingle (params = {}) {
- let res = await this.postAll("Host80","/web/information/single", params);
- return res
- }
- //通知
- async newsNoticeList (params = {}) {
- let res = await this.postAll("Host80","/web/notice/search/list/record", params);
- return res
- }
- //通知-未读数量
- async newsNoticeRead (params = {}) {
- let res = await this.postAll("Host80","/web/notice/search/read", params);
- return res
- }
- //通知
- async newsNoticeSingle (params = {}) {
- let res = await this.postAll("Host80","/web/notice/search/single/record", params);
- return res
- }
- //新闻时讯
- async newsInformationNewsletterList (params = {}) {
- let res = await this.postAll("Host80","/web/information/newsletter/list", params);
- return res
- }
- //新闻时讯
- async newsInformationNewsletterSingle (params = {}) {
- let res = await this.postAll("Host80","/web/information/single", params);
- return res
- }
- //交易策略
- async handShakeGet (params = {}) {
- let res = await this.postAll("Host80","/hand/shake/get/featured_forex", params);
- return res
- }
- //财经日历
- async handFinancialCalendar (params = {}) {
- let res = await this.postAll("Host80","/hand/shake/get/economic_calendar", params);
- return res
- }
- //视频
- async newsVideoList (params = {}) {
- let res = await this.postAll("Host80","/web/video/list", params);
- return res
- }
- //视频
- async newsVideoSingle (params = {}) {
- let res = await this.postAll("Host80","/web/video/single", params);
- return res
- }
- //webTv
- async newsWebTvSearch (params = {}) {
- let res = await this.postAll("Host80","/news/web/tv/search/list", params);
- return res
- }
- //webTv
- async newsWebTvSearchSingle (params = {}) {
- let res = await this.postAll("Host80","/news/web/tv/search/single", params);
- return res
- }
- //电子书列表
- async newsEbookList (params = {}) {
- let res = await this.postAll("Host80","/web/ebook/list", params);
- return res
- }
- //电子书详情
- async newsEbookSingle (params = {}) {
- let res = await this.postAll("Host80","/web/ebook/single", params);
- return res
- }
- }
- export default new NewsService
|