ContentDTO.ets 2.42 KB
import { FullColumnImgUrlDTO } from '../detail/FullColumnImgUrlDTO';
import { LiveInfoDTO } from '../detail/LiveInfoDTO';
import { VideoInfoDTO } from '../detail/VideoInfoDTO';
import { InteractDataDTO } from './InteractDataDTO';
import { slideShows } from '../morningevening/slideShows';
import { VoiceInfoDTO } from '../detail/VoiceInfoDTO';
import { RmhInfoDTO } from '../detail/RmhInfoDTO';
import { commentInfo } from './commentInfo';

export interface ContentDTO {
  appStyle: string;
  cityCode: string;
  coverSize: string;
  coverType: number;
  coverUrl: string;
  description: string;
  districtCode: string;
  endTime: string;
  hImageUrl: string;
  heatValue: string;
  innerUrl: string;
  landscape: number;
  lengthTime?: object;
  linkUrl: string;
  openLikes: number;
  openComment?: number;
  openUrl: string;
  pageId: string;

  // playUrls: any[];
  programAuth: string;
  programId: string;
  programName: string;
  programSource: number;
  programType: number;
  provinceCode: string;

  // rankingList: any[];
  showTitleEd: string;
  showTitleIng: string;
  showTitleNo: string;

  // sortValue?: any;
  startTime: string;
  subType: string;
  subtitle: string;
  title: string;
  vImageUrl: string;
  screenType: string;
  source: string;
  objectId: string;
  objectType: string;
  channelId: string;
  relId: string;
  relType: string;
  newsTitle: string; //单图卡/2行标题/3行标题
  publishTime: string;
  publishTimestamp: string;
  visitorComment: number;
  fullColumnImgUrls: FullColumnImgUrlDTO[];
  liveInfo: LiveInfoDTO; // 直播新闻信息【BFF聚合】
  videoInfo: VideoInfoDTO; // 视频新闻信息【BFF聚合】,视频非原片+清晰度最高的

  newsSummary: string; //appstyle:2 ,新闻详情

  // 二次请求接口,返回的数据,这里组装到content里;
  interactData: InteractDataDTO;
  hasMore: number,
  slideShows: slideShows[],
  voiceInfo: VoiceInfoDTO,
  tagWord: number,
  isSelect: boolean;
  rmhInfo: RmhInfoDTO; // 人民号信息
  photoNum: number;
  corner: string;
  rmhPlatform: number;
  newTags: string;
  titleShow?: number;
  isSearch?: boolean; // 是否是搜索的结果,区分搜索和主页的数据
  isCollection?: boolean; // 是否是收藏的结果,区分搜索和主页的数据
  commentInfo?: commentInfo
  //底部导航栏 id(用于频道跳转)
  bottomNavId:string;
  // 链接类型: 0:无链接;1:内链(文章);2:外链
  openType:string
}