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