liujian1_wd

编排底层能力

Showing 45 changed files with 43 additions and 31 deletions
... ... @@ -3,7 +3,7 @@
*/
import { NavButton } from './NavButton';
export class BottomBar {
export interface BottomBar {
backgroundImg?: string;
buttons: NavButton[];
}
\ No newline at end of file
... ...
import { ItemDTO } from './ItemDTO';
export class ButtonDTO extends ItemDTO {
export interface ButtonDTO extends ItemDTO {
label: string; // button类型,即:按钮1/按钮2
title: string; // 标题,如:换一换/更多/更多热播电视剧/更多好剧/更多综艺/更多热点/古装剧场/燃剧场
subTitle: string; // 副标题
... ...
... ... @@ -7,7 +7,7 @@ import { DataSourceRequest } from './DataSourceRequest';
import { ExtraDTO } from './ExtraDTO';
import { OsVersion } from './OsVersion';
export class CompDTO {
export interface CompDTO {
id: string; // 组件id
name: string; // 组件名称
title?: string; // 标题:若无值,则不露出该字段
... ...
... ... @@ -4,7 +4,7 @@
import { ItemDTO } from './ItemDTO';
import { ProgrammeDTO } from './ProgrammeDTO';
export class CompDataDTO extends ItemDTO {
export interface CompDataDTO extends ItemDTO {
id: string; // 组件主键ID
name: string; // 名称
branchMark: boolean; // 是否有分众数据标志位 true表示存在分众信息
... ...
export class CopyRightVo {
export interface CopyRightVo {
terminal: string;
area: string;
beginDate: string;
... ...
export class DisplayName {
export interface DisplayName {
first: string;
second: string[];
}
\ No newline at end of file
... ...
... ... @@ -5,7 +5,7 @@ import { LabelDTO } from './LabelDTO';
import { Tab01DTO } from './Tab01DTO';
import { Tab22DTO } from './Tab22DTO';
export class ExtraDTO extends ItemDTO {
export interface ExtraDTO extends ItemDTO {
menus?: Tab01DTO[];
tabs?: Tab22DTO[];
labels?: LabelDTO[];
... ...
... ... @@ -5,7 +5,7 @@
import { ItemDTO } from './ItemDTO';
import { PairFilter } from './PairFilter';
export class FilterCategoryDTO extends ItemDTO {
export interface FilterCategoryDTO extends ItemDTO {
categoryValue: string; // 类型/地区/年代/排序类型/付费类型/规格
categoryKey: string; // mediaType/mediaArea/mediaYear/rankingType/payType/mediaMovieForm
content: PairFilter[];
... ...
... ... @@ -2,7 +2,7 @@ import { CompDTO } from './CompDTO';
import { ItemDTO } from './ItemDTO';
import { OsVersion } from './OsVersion';
export class GroupDTO extends ItemDTO {
export interface GroupDTO extends ItemDTO {
id: string; // group主键ID
name: string; // 名称
branchMark: boolean;
... ...
... ... @@ -4,7 +4,7 @@
import { CompDataDTO } from './CompDataDTO';
import { ItemDTO } from './ItemDTO';
export class GroupDataDTO extends ItemDTO {
export interface GroupDataDTO extends ItemDTO {
id: string; // Group主键ID
name: string; // 名称
branchMark: boolean;
... ...
... ... @@ -5,7 +5,7 @@
import { Action } from './Action';
import { Pic } from './Pic';
export abstract class ItemDTO {
export interface ItemDTO {
action?: Action; // 事件对象
actionId?: string; // 点击事件id
pics?: Pic // 图片
... ...
... ... @@ -3,7 +3,7 @@
*/
import { ItemDTO } from './ItemDTO';
export class LabelDTO extends ItemDTO {
export interface LabelDTO extends ItemDTO {
icon?: string; // icon图片/小图标
defaultTextColor?: string; // 文本颜色
label: string; // label类型,如:主标题/子标题
... ...
... ... @@ -3,7 +3,7 @@
*/
import { NavigationBean } from './NavigationBean';
export class NavBody {
export interface NavBody {
isConfigData: string;
list: NavigationBean[];
}
\ No newline at end of file
... ...
... ... @@ -3,7 +3,7 @@
*/
import { Action } from './Action';
export class NavButton {
export interface NavButton {
// name: string; // 底导名称
displayText: string; // 展示名称
action: Action; // 跳转事件
... ...
... ... @@ -4,7 +4,7 @@
import { BottomBar } from './BottomBar';
import { TopBar } from './TopBar';
export class NavigationBean {
export interface NavigationBean {
id: string;
name: string;
bottomBar: BottomBar; // 底导数据
... ...
... ... @@ -4,7 +4,7 @@
* ipad版本号: IpadVersion
* Vr版本号: VrVersion
*/
export class OsVersion {
export interface OsVersion {
// 是否展示:-1 不展示、1 全部版本、0 指定版本
isAllVersion?: string;
... ...
... ... @@ -4,7 +4,7 @@ import { ExtraDTO } from './ExtraDTO';
import { GroupDTO } from './GroupDTO';
import { OsVersion } from './OsVersion';
export class PageDTO {
export interface PageDTO {
id: string; // 主键ID
name: string; // 名称
title: string; // 标题
... ...
/**
* 筛选/过滤的键值对
*/
export class PairFilter {
export interface PairFilter {
value: string;
key: string;
}
\ No newline at end of file
... ...
... ... @@ -2,7 +2,7 @@ import { DataSourceRequest } from './DataSourceRequest';
import { ExtraDTO } from './ExtraDTO';
import { ReportingData } from './ReportingData';
export class Params {
export interface Params {
pageID: string;
// 需要展现Fame类型,数据字典为:
... ...
/**
* 解说员信息/节目主持人名称
*/
export class Presenter {
export interface Presenter {
name: string;
}
\ No newline at end of file
... ...
... ... @@ -12,7 +12,7 @@ import { SubTxt } from './SubTxt';
import { Team } from './Team';
import { Tip } from './Tip';
export class ProgrammeDTO extends ItemDTO {
export interface ProgrammeDTO extends ItemDTO {
name?: string; // 节目名称
pID?: string // 节目ID
publishTime?: string; // 发布时间
... ...
export class ReportingData {
export interface ReportingData {
type: string;
detail?: string; // 上报数据,格式为json
}
\ No newline at end of file
... ...
export class Resolution {
export interface Resolution {
mediaWidth: number;
mediaHeight: number;
}
\ No newline at end of file
... ...
... ... @@ -3,7 +3,7 @@
*/
import { Action } from './Action';
export class Searchbar {
export interface Searchbar {
defaultSearchText: string;
voiceAction: Action;
searchAction: Action;
... ...
/**
* 屏蔽策略
*/
export class ShieldStrategy {
export interface ShieldStrategy {
allowBarrage: boolean; // 允许弹幕
allowComment: boolean; // 允许评论
allowRedPacket: boolean; // 允许红包
... ...
/**
* 角标右下角文字规则
*/
export class SubTxt {
export interface SubTxt {
txt: string;
subTxtStyle: string;
}
\ No newline at end of file
... ...
... ... @@ -4,7 +4,7 @@
*/
import { ItemDTO } from './ItemDTO';
export class Tab01DTO extends ItemDTO {
export interface Tab01DTO extends ItemDTO {
icon?: string; // 导航栏icon
title: string; // 导航栏标题
defaultTextColor?: string; // 导航文字默认颜色
... ...
... ... @@ -4,7 +4,7 @@
*/
import { ItemDTO } from './ItemDTO';
export class Tab22DTO extends ItemDTO {
export interface Tab22DTO extends ItemDTO {
tabText: string; // 详情/讨论/(热播榜-特惠-抽周边-有奖征集)/(赛程-热门直播)
tabType: string; // detail/discuss/H5Page/nativePage
selectedColor?: string; // TAB项选中文字颜色
... ...
... ... @@ -2,7 +2,7 @@
* ConfrontTeam/NBATeam.
* 赛事的对战对/对抗团队/队伍(主队/客队)
*/
export class Team {
export interface Team {
teamId?: string; // 球队id
teamName?: string; // 队伍名称
teamLogo?: string; // 队伍icon
... ...
/**
* 角标,枚举类:(code,msg)
*/
export class Tip {
export interface Tip {
code: string;
msg: string;
}
\ No newline at end of file
... ...
... ... @@ -5,7 +5,7 @@ import { Logo } from './Logo';
import { NavButton } from './NavButton';
import { Searchbar } from './Searchbar';
export class TopBar {
export interface TopBar {
id: string;
name: string;
... ...
/**
* Page状态监听
*/
import { ItemBean } from '../bean/ItemBean';
import { ItemDTO } from '../bean/ItemDTO';
import { WDComp } from './WDComp';
import { WDGroup } from './WDGroup';
import { WDPage } from './WDPage';
export interface PageListener {
/**
* Page数据加载完成
... ...
export class WDOverlay {
}
\ No newline at end of file
... ...
... ... @@ -10,6 +10,9 @@ import { BusinessError } from '@ohos.base';
import { CompDTO } from '../bean/CompDTO';
import { CompDataDTO } from '../bean/CompDataDTO';
import { GroupDataDTO } from '../bean/GroupDataDTO';
import { StaticPageRequest } from '../request/StaticPageRequest';
import { StaticGroupRequest } from '../request/StaticGroupRequest';
import { CompRequest } from '../request/CompRequest';
export class LayoutService {
static readonly TAG: string = 'LayoutService';
... ...