export interface Comp { compCode: CompCode; compName: string; compType: CompType; compData: CompDataType; } export interface CompData { showTitle: boolean; titleStyle: TitleStyle; titleImage?: string; init: boolean; style?: any; showMore?: boolean; showButton?: boolean; } export type CompType = "BASIC" | "VCARD" | "ORGAN" | "MALL" | "OTHER"; export declare enum TitleStyle { style1 = 0, style2 = 1, style3 = 2, style4 = 3 } export interface ImageComp extends CompData { style: ImageStyle; imageUrls: Array; } export declare enum ImageStyle { swiper = "swiper", flat = "flat", grid = "grid" } export interface AudioComp extends CompData { url: string; autoPlay: boolean; hidden: boolean; external: boolean; } export interface VideoComp extends CompData { imageUrl: string; width: number; height: number; size: number; duration: number; videoUrl: string; external: boolean; } export interface MapComp extends CompData { } export interface SlotComp extends CompData { slotCode: string; } export interface CmsComp extends CompData { siteId: string; channelId: string; channelAlias: string; pageSize: number; } export type CompCode = "text" | "image" | "video" | "audio" | "map" | "slot" | "news" | "product"; export type CompDataType = MapComp | TextComp | ImageComp | VideoComp | AudioComp | SlotComp | CmsComp; export interface TextComp extends CompData { text: string; } export interface PageData { theme: ThemeStyle; edition: Edition; themeIndex: number; } export declare enum ThemeStyle { blue = 0, red = 1, gray = 2, while = 3 } export declare enum Edition { com = 0, gov = 1, edu = 2 } export interface PageModel { pageId?: string; vcardId?: string; pageName?: string; pageCode?: string; pageTemplate?: string; pageImgUrl?: string; pageData?: PageData; pageJson: string; compModels?: Array; } export interface CompModel { compId: string; pageId: string; compCode: CompCode; compName: string; compType: CompType; compData: CompDataType; orderBy: number; } export interface BusiDataModel { } export interface CompEventModel { pageModel: PageModel; compModel: CompModel; busiDataModel: BusiDataModel; } export interface OrganDataModel extends BusiDataModel { latitude: number; longitude: number; address: string; mobilePhone: string; }