package com.skr.mdm.bean.so.content;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.skr.mdm.bean.util.DateConvertUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author nfq
 * @date 2020/11/6 16:30
 */
@Data
@ApiModel(value = "文档下发对象")
public class ContentDocumentSO {

    private Integer id;

    @ApiModelProperty("文件名")
    private String fileName;

    @ApiModelProperty("文件大小")
    private String fileSize;

    @ApiModelProperty("文件地址")
    private String fileUrl;

    @ApiModelProperty("定时删除 (0: 无 1:阅后 2:指定时间)")
    private Integer reviewDelete;

    @ApiModelProperty("阅读后删除")
    private String reviewDeleteTime;

    @ApiModelProperty("有效期")
    private Date validTime;

    @ApiModelProperty("水印")
    private String waterMark;

    @ApiModelProperty("是否允许共享 0:不允许 1:允许 ")
    private Integer allowShare;

    @JsonSerialize(using = DateConvertUtil.class)
    private Date sendTime;

}