package com.pcloud.book.applet.dto;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pcloud.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("小程序资讯")
public class AppletNewsVO extends BaseDto {

    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("资讯")
    private String newsName;
    @ApiModelProperty("来源")
    private String source;
    @ApiModelProperty("栏目id")
    private Long newsClassifyId;
    @ApiModelProperty("专业标签ID")
    private Long proLabelId;
    @ApiModelProperty("深度标签ID")
    private Long depLabelId;
    @ApiModelProperty("目的标签ID")
    private Long purLabelId;
    @ApiModelProperty("专业标签")
    private String proLabelName;
    @ApiModelProperty("深度标签")
    private String depLabelName;
    @ApiModelProperty("目的标签")
    private String purLabelName;
    @ApiModelProperty("文章版式（1多图文2单图文3纯图片4纯文本)")
    private Integer type;
    @ApiModelProperty("内容摘要")
    private String digest;
    @ApiModelProperty("预览图片1")
    private String pic1;
    @ApiModelProperty("预览图片2")
    private String pic2;
    @ApiModelProperty("预览图片3")
    private String pic3;
    @ApiModelProperty("文章内容")
    private String content;
    @ApiModelProperty("是否展示")
    private Boolean showState;
    @ApiModelProperty("分类名称")
    private String newsClassify;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    protected Date createTime;

    @ApiModelProperty("第一级类型标识")
    private Long firstClassify;
    @ApiModelProperty("第二级类型标识")
    private Long secondClassify;
    @ApiModelProperty("第三级类型标识")
    private Long thirdClassify;

    @ApiModelProperty("第三级类型标识名称")
    private String thirdClassifyName;

    @ApiModelProperty("年级标签id")
    private Long gradeLabelId;
    @ApiModelProperty("科目标签id")
    private Long subjectLabelId;
    @ApiModelProperty("权益分类id")
    private Long rightsClassifyId;

    private String  firstClassifyContent;

    private String secondClassifyContent;

    private String gradeLabelIdContent;

    private String subjectLabelIdContent;

    @ApiModelProperty("权益分类")
    private String rightsClassifyContent;
    @ApiModelProperty("跳转类型（1原文编辑2直接跳转）")
    private Integer jumpType;
    @ApiModelProperty("跳转地址")
    private String jumpUrl;

    @ApiModelProperty("选取的服务")
    List<AppletNewsServeDTO> appletNewsServeList;

    @ApiModelProperty("选取的服务")
    List<AppletThirdResourcesDTO> thirdResourcesRelations;

}
