PublishCommonBean.java
5.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
package com.wd.foundation.bean.request;
import java.util.ArrayList;
import java.util.List;
import com.wd.foundation.bean.base.CommonBean;
import com.wd.foundation.bean.response.VideoParams;
/**
* 移动生产发布bean
*
* @author lvjinhui
*/
public class PublishCommonBean extends CommonBean {
/**
* 1草稿 2发布 必须
*/
public int publishType = 2;
/**
* 发布时间毫秒时间戳
*/
public long publishTime;
/**
* 内容ID,二次编辑时必传
*/
public String id;
/**
* 创作者ID,必须
*/
public String creatorId = "";
/**
* 文章标题,必须
*/
public String title = "";
/**
* 国家
*/
public String countryCode = "";
/**
* 分类,必须
*/
public String classify = "";
/**
* 内容类型,必须,默认传 类别 1:点播(视频),2:直播,3:活动,4:广告,5:专题,6:链接,7:榜单,8:图文,9:组图,10:H5新闻,11:频道,12:组件 13:音频 14:动态图文 15:动态视频
*/
public String contentType = "1";
/**
* 二级分类
*/
public String secondClassify = "";
/**
* 省市区
*/
public String provinceCode = "";
public String cityCode = "";
public String districtCode = "";
/**
* 简介、描述,必须的
*/
public String description = "";
public long originalVideoId;
/**
* 内容富文本
*/
private ContentTxtInputVoBean zhRmhContentTxtInputVo;
/**
* 租户 1-视界 2-英文版 3-中文版
*/
public int tenancy = 3;
/**
* 上传图片
*/
public List<PublishPicBean> zhRmhContentPictureInputVoList = new ArrayList<>();
/**
* 上传的视频
*/
public List<VideoParams> zhRmhContentVideoInputVoList = new ArrayList<>();
/**
* 内容扩展属性,必须
*/
public ContentExt zhRmhContentExtInputVo = new ContentExt();
/**
* 定时发布
*/
public PublishTaskInputVo zhRmhContentPublishTaskInputVo = new PublishTaskInputVo();
/**
* 内容标签
*/
public List<ContentTags> zhRmhRelContentTagInputVoList = new ArrayList<>();
/**
* 来源
*/
public ContentSource zhRmhContentSourceInputVo = new ContentSource();
/**
* 分享内容
*/
public ContentShare zhRmhContentShareInputVo = new ContentShare();
/**
* 内容绑定活动
*/
public CollectResultDto collectResultDto;
/**
* 内容绑定活动(带主题)
*/
public CollectResultSubjectDto collectResultSubjectDto;
/**
* 对应几个设置的开关
*/
public static class ContentExt {
public int joinActivity = 0; // 是否参与了活动 1是 0否
public int openLikes = 1; // 是否开启点赞 1是 0否
public int openComment = 1; // 是否显示评论 1是 0否
public int downloadFlag;// 1开启 0不开启 允许他人保存视频
public int publishType = 1;// 定时发布类型 1:立即发布,2:定时发布
public int tenancy = 3;// 租户1-视界2-英文版3-中文版
public int recommendSelf = 0;// 是否是创作者自荐 1是 0否
public int appStyle = 6;// App样式
// 1:小图卡,2:大图卡,3:无图卡(全标题),4:三图卡,5:头图卡,6:小视频卡,7:作者卡,8:财经快讯卡,9:时间轴卡,10:大专题卡,11.无图卡(标题缩略),12.无图卡(标题缩略)
// -人民号,13.单图卡,14.单图卡-人民号,15.大图卡-人民号,16.三图卡-人民号,17.图集卡,18.图集卡-人民号,19.动态图文卡-人民号,20.动态视频卡-人民号,21-小视频卡-人民号,22-时间链卡,23-问政卡
public long contentId;// 内容ID
}
public static class ContentSource {
public int platformId = 92; // 固定传1
public String sourceId = "42";
public String sourceUserId = "";
public int tenancy = 3;
}
public static class ContentShare {
public String sharePicture = "";
public String shareTitle = "";
public String shareDescription = "";
public int tenancy = 3;
}
/**
* 定时发布
*/
public static class PublishTaskInputVo {
// 定时发布时间
public String schedulePublishTime;
// 类型1上线2下线
public int type = 1;
}
public static class ContentTags {
public String tagId;
public String tagValue;
public int tenancy = 3;
}
public static class CollectResultDto {
public List<String> collectIds;
public String contentName;
public String createUser;
}
/**
* 内容绑定活动(带主题)
*/
public static class CollectResultSubjectDto {
public List<Subject> subjects;
public String contentName;
public String createUser;
}
/**
* 活动主题
*/
public static class Subject {
/**
* 活动id
*/
public String collectId;
/**
* 主题名称
*/
public String subject;
}
/**
* 本地传参使用,二次编辑需要传id
*/
public static class LocalContentExt extends ContentExt {
public long id;// 内容id
// public long contentId;//视频id
}
public ContentTxtInputVoBean getZhRmhContentTxtInputVo() {
return zhRmhContentTxtInputVo;
}
public void setZhRmhContentTxtInputVo(ContentTxtInputVoBean zhRmhContentTxtInputVo) {
this.zhRmhContentTxtInputVo = zhRmhContentTxtInputVo;
}
public ContentShare getZhRmhContentShareInputVo() {
return zhRmhContentShareInputVo;
}
public void setZhRmhContentShareInputVo(ContentShare zhRmhContentShareInputVo) {
this.zhRmhContentShareInputVo = zhRmhContentShareInputVo;
}
}