CompDTO.ets 1.45 KB
import { CompAdvMatInfoBean } from '../adv/CompAdvInfoBean';
import { AudioDTO } from '../content/AudioDTO';
import { ContentDTO } from '../content/ContentDTO';
import { BaseDTO } from './BaseDTO';

@Observed
export class CompDTO implements BaseDTO{
  backgroundColor: string='';
  backgroundImgUrl: string='';
  cityCode: string='';
  compStyle: string='';
  compType: string='';

  // dataSourceRequest: any[];
  districtCode: string='';
  extraData?: string;
  hasAdInfo: number=-1;
  id: number=0;
  imgSize: string='';
  innerUrl: string='';
  linkUrl: string='';

  // meddleDataList: any[];
  name: string='';
  objectId: string=''; // 跳转页面id?
  objectTitle: string=''; // comp标题
  // objectType?: string; // 跳转类型,枚举:
  operDataList: ContentDTO[]=[]; // 运营数据列表【正常运营配置的强运营数据,部分推荐场景的配置(自动源兜底数据)】
  // pageId?: any;
  posterSize: string='';
  posterUrl: string='';
  provinceCode: string='';
  sortValue: number=-1;
  subType: string='';
  imageScale: number=-1; // 封面图比例 1-4:3, 2-16:9, 3-3:2
  audioDataList: AudioDTO[]=[];
  titleShowPolicy: string | number='';

  /**
   * 组件内容源类型  (LIVE_HORIZONTAL_CARD\LIVE_RESERVATION\LIVE_LARGE_CARD\LIVE_END\LIVE_MONTHLY_RANKING  )
   */
  dataSourceType: string='';

  /**
   * 信息流广告素材
   */
  matInfo: CompAdvMatInfoBean = {} as CompAdvMatInfoBean

  pageId?: string;
  objectType?: string;
}