package com.nantian.cloud.jljc.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

/**
 * 标准法律法规文件上传对象
 * @author stz
 * @since 2020-09-14
 */
@Data
@ApiModel(value = "标准法律法规文件上传对象")
public class TStandardsRegulationsDto {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value="标准名称")
    private String name;

    @ApiModelProperty(value="类型：G 国标 F 法规")
    private String type;

    @ApiModelProperty(value="所属系统：J 节能减排 L 计量 G 公共机构")
    private String tag;

    @ApiModelProperty(value="状态：0 使用 1 试行 2废弃")
    private String state;

    @ApiModelProperty(value="发布时间")
    //@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone = "GMT+8")
    //private Date publishTime;
    private String publishTime;

    @ApiModelProperty(value="执行时间")
    //@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone = "GMT+8")
    //private Date executeTime;
    private String executeTime;

    @ApiModelProperty(value="备注")
    private String remarks;

    @ApiModelProperty(value = "文件id")
    private String file;

    @ApiModelProperty(value="文件流")
    private MultipartFile fileStream;

}
