Showing
4 changed files
with
267 additions
and
1 deletions
| 1 | + | ||
| 2 | +/** | ||
| 3 | + * @Description: 信息集合 | ||
| 4 | + * @Author: | ||
| 5 | + * @Email: liyubing@wondertek.com.cn | ||
| 6 | + * @CreateDate: | ||
| 7 | + * @UpdateRemark: 更新说明 | ||
| 8 | + * @Version: 1.0 | ||
| 9 | + */ | ||
| 10 | +export interface AdvertsBean{ | ||
| 11 | + | ||
| 12 | + /** | ||
| 13 | + * 广告id | ||
| 14 | + */ | ||
| 15 | + id:string | ||
| 16 | + | ||
| 17 | + /** | ||
| 18 | + * 广告relId | ||
| 19 | + */ | ||
| 20 | + relId:string | ||
| 21 | + | ||
| 22 | + /** | ||
| 23 | + * 广告素材名称 | ||
| 24 | + */ | ||
| 25 | + matTitle:string | ||
| 26 | + | ||
| 27 | + /** | ||
| 28 | + * 投放开始时间yyyy-MM-dd HH:mm:ss | ||
| 29 | + */ | ||
| 30 | + startTime:string | ||
| 31 | + | ||
| 32 | + /** | ||
| 33 | + * 投放结束时间yyyy-MM-dd HH:mm:ss | ||
| 34 | + */ | ||
| 35 | + endTime:string | ||
| 36 | + | ||
| 37 | + /** | ||
| 38 | + * 展现时段,多组数据:9:00:00-10:00:00|17:00:00-18:00:00 | ||
| 39 | + */ | ||
| 40 | + displayTime:string | ||
| 41 | + | ||
| 42 | + /** | ||
| 43 | + * 展现优先级,数值越小,等级越高 | ||
| 44 | + */ | ||
| 45 | + displayLevel:string | ||
| 46 | + | ||
| 47 | + /** | ||
| 48 | + * 链接跳转类型,0:无连接;1:内链(站内内容);2:外链 | ||
| 49 | + */ | ||
| 50 | + linkType:number; | ||
| 51 | + | ||
| 52 | + /** | ||
| 53 | + * 外链广告外链地址,link_type=2生效 | ||
| 54 | + */ | ||
| 55 | + linkUrl:string | ||
| 56 | + | ||
| 57 | + /** | ||
| 58 | + * 内链内容id 仅link_type=1生效 | ||
| 59 | + */ | ||
| 60 | + contentId:string | ||
| 61 | + | ||
| 62 | + /** | ||
| 63 | + * 对象类型 0:不跳转 1:视频,2:直播,5:专题,6:链接,8:图文,9:组图,10:H5新闻,11:频道 | ||
| 64 | + */ | ||
| 65 | + objectType:string | ||
| 66 | + /** | ||
| 67 | + * 内容标题 | ||
| 68 | + */ | ||
| 69 | + contentTitle:string | ||
| 70 | + | ||
| 71 | + /** | ||
| 72 | + * 专题页面id | ||
| 73 | + */ | ||
| 74 | + topicPageId:string | ||
| 75 | + | ||
| 76 | + /** | ||
| 77 | + * 挂角封面图 | ||
| 78 | + */ | ||
| 79 | + displayUrl:string | ||
| 80 | + | ||
| 81 | + /** | ||
| 82 | + * 页面id | ||
| 83 | + */ | ||
| 84 | + pageId:string | ||
| 85 | + | ||
| 86 | + /** | ||
| 87 | + * 跳转id | ||
| 88 | + */ | ||
| 89 | + objectId:string | ||
| 90 | + | ||
| 91 | + /** | ||
| 92 | + * 对象分类 ;频道(1:一级频道,2:二级频道),专题(1:普通专题,2:主题专题,3:作者专题) | ||
| 93 | + */ | ||
| 94 | + objectLevel:string | ||
| 95 | + | ||
| 96 | + /** | ||
| 97 | + * 底部导航栏 id(用于频道跳转) | ||
| 98 | + */ | ||
| 99 | + bottomNavId:string | ||
| 100 | + | ||
| 101 | +} |
| 1 | +/** | ||
| 2 | + * @Description: 挂角广告数据 | ||
| 3 | + * @Author: | ||
| 4 | + * @Email: liyubing@wondertek.com.cn | ||
| 5 | + * @CreateDate: | ||
| 6 | + * @UpdateRemark: 更新说明 | ||
| 7 | + * @Version: 1.0 | ||
| 8 | + */ | ||
| 9 | +import { AdvertsBean } from './AdvertsBean'; | ||
| 10 | +import { CompAdvMatInfoBean, CompAdvSlotInfoBean } from './CompAdvInfoBean'; | ||
| 11 | + | ||
| 12 | +export interface AdvRuleBean { | ||
| 13 | + | ||
| 14 | + /** | ||
| 15 | + * 广告投放位编码 | ||
| 16 | + */ | ||
| 17 | + pos: string; | ||
| 18 | + | ||
| 19 | + /** | ||
| 20 | + * 广告展示顺序,0:随机展示;1列表循环 | ||
| 21 | + */ | ||
| 22 | + displayMode:number | ||
| 23 | + | ||
| 24 | + /** | ||
| 25 | + * 每间隔刷新n次展示广告 | ||
| 26 | + */ | ||
| 27 | + refreshFrequency:number | ||
| 28 | + | ||
| 29 | + /** | ||
| 30 | + * 广告信息集合 | ||
| 31 | + */ | ||
| 32 | + advert:AdvertsBean; | ||
| 33 | + | ||
| 34 | +} | ||
| 35 | + | ||
| 36 | +/** | ||
| 37 | + * 广告组件数据 | ||
| 38 | + */ | ||
| 39 | +export interface CompAdvBean{ | ||
| 40 | + | ||
| 41 | + /** | ||
| 42 | + * 广告订单id | ||
| 43 | + */ | ||
| 44 | + id:string; | ||
| 45 | + | ||
| 46 | + /** | ||
| 47 | + * 投放开始时间 | ||
| 48 | + */ | ||
| 49 | + startTime:number; | ||
| 50 | + | ||
| 51 | + /** | ||
| 52 | + * 投放结束时间 | ||
| 53 | + */ | ||
| 54 | + endTime:number; | ||
| 55 | + | ||
| 56 | + /** | ||
| 57 | + * 信息流广告素材 | ||
| 58 | + */ | ||
| 59 | + matInfo:CompAdvMatInfoBean | ||
| 60 | + | ||
| 61 | + /** | ||
| 62 | + * 信息流广告位 | ||
| 63 | + */ | ||
| 64 | + slotInfo:CompAdvSlotInfoBean | ||
| 65 | + | ||
| 66 | + | ||
| 67 | +} |
| 1 | +/** | ||
| 2 | + * @Description: 组件广告信息 | ||
| 3 | + * @Author: | ||
| 4 | + * @Email: liyubing@wondertek.com.cn | ||
| 5 | + * @CreateDate: | ||
| 6 | + * @UpdateRemark: 更新说明 | ||
| 7 | + * @Version: 1.0 | ||
| 8 | + */ | ||
| 9 | + | ||
| 10 | +/* | ||
| 11 | + 信息流广告素材解析累 | ||
| 12 | + */ | ||
| 13 | +export interface CompAdvMatInfoBean { | ||
| 14 | + | ||
| 15 | + /** | ||
| 16 | + * 广告标题 | ||
| 17 | + */ | ||
| 18 | + advTitle: string | ||
| 19 | + /** | ||
| 20 | + * 3:信息流广告 | ||
| 21 | + */ | ||
| 22 | + advType: string | ||
| 23 | + /** | ||
| 24 | + * 信息流广告类型(4:轮播图 5:三图广告 6:小图广告 7:长通栏广告 8:大图广告 9:视频广告 10:展会广告 11:冠名广告 12:顶部长通栏广告) | ||
| 25 | + */ | ||
| 26 | + advSubType: string | ||
| 27 | + /** | ||
| 28 | + * 素材图片信息;adv_subtype=4,5,6,7,8,9,12 时使用 | ||
| 29 | + */ | ||
| 30 | + matImageUrl: string[] | ||
| 31 | + /** | ||
| 32 | + * 视频广告地址(adv_subtype=9) | ||
| 33 | + */ | ||
| 34 | + matVideoUrl: string | ||
| 35 | + /** | ||
| 36 | + * 扩展信息:advSubType=10,11时使用,字段示例见接口备注。 | ||
| 37 | + */ | ||
| 38 | + extraData: string | ||
| 39 | + /** | ||
| 40 | + * 链接类型: 0:无链接;1:内链(文章);2:外链 | ||
| 41 | + */ | ||
| 42 | + linkType: string | ||
| 43 | + /** | ||
| 44 | + * 链接跳转类型 :0-没链接,不用打开,1-端内打开,2-端外打开 | ||
| 45 | + */ | ||
| 46 | + openType: string | ||
| 47 | + /** | ||
| 48 | + * 广告跳转链接 | ||
| 49 | + */ | ||
| 50 | + linkUrl: string | ||
| 51 | + /** | ||
| 52 | + * 素材类型(0:图片 1:视频) | ||
| 53 | + */ | ||
| 54 | + matType: string | ||
| 55 | + /** | ||
| 56 | + * 开屏样式(1:全屏样式 0:底部固定Logo) | ||
| 57 | + */ | ||
| 58 | + startStyle: string | ||
| 59 | +} | ||
| 60 | + | ||
| 61 | +/** | ||
| 62 | + * 信息流广告位 | ||
| 63 | + */ | ||
| 64 | +export interface CompAdvSlotInfoBean { | ||
| 65 | + | ||
| 66 | + | ||
| 67 | + /** | ||
| 68 | + * 组件id | ||
| 69 | + */ | ||
| 70 | + compId: string; | ||
| 71 | + | ||
| 72 | + /** | ||
| 73 | + * 广告位位置 从1开始 | ||
| 74 | + */ | ||
| 75 | + position: number; | ||
| 76 | + | ||
| 77 | + /** | ||
| 78 | + * 频道id | ||
| 79 | + */ | ||
| 80 | + channelId: string; | ||
| 81 | + | ||
| 82 | +} |
| 1 | /** | 1 | /** |
| 2 | * page接口返回的Page数据DTO | 2 | * page接口返回的Page数据DTO |
| 3 | */ | 3 | */ |
| 4 | +import { AdvRuleBean, CompAdvBean } from '../adv/AdvsRuleBean'; | ||
| 5 | + | ||
| 4 | export interface PageInfoDTO { | 6 | export interface PageInfoDTO { |
| 5 | pageId: string; // 页面id | 7 | pageId: string; // 页面id |
| 6 | id: number; // 楼层id | 8 | id: number; // 楼层id |
| 7 | name: string; // 名称 | 9 | name: string; // 名称 |
| 8 | - hasAdInfo: number; | ||
| 9 | hasPopUp: number; | 10 | hasPopUp: number; |
| 10 | baselineShow: number; | 11 | baselineShow: number; |
| 11 | groups: GroupInfoDTO[]; | 12 | groups: GroupInfoDTO[]; |
| 12 | channelInfo: ChannelInfoDTO; | 13 | channelInfo: ChannelInfoDTO; |
| 14 | + | ||
| 15 | + /** | ||
| 16 | + * 1-有过广告配置,0-没有广告配置 | ||
| 17 | + */ | ||
| 18 | + hasAdInfo: number; | ||
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * 挂角广告数据 | ||
| 22 | + */ | ||
| 23 | + cornersAdv:AdvRuleBean | ||
| 24 | + /** | ||
| 25 | + * 广告中心-挂角广告信息 | ||
| 26 | + */ | ||
| 27 | + cornersAdv2:CompAdvBean[] | ||
| 28 | + | ||
| 13 | } | 29 | } |
| 14 | 30 | ||
| 15 | export interface ChannelInfoDTO { | 31 | export interface ChannelInfoDTO { |
-
Please register or login to post a comment