PublishCommonBean.java 5.9 KB

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;
    }
}