package com.njcn.gather.aireport.reportapproval.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class ReportApprovalLogVO {
    @ApiModelProperty("日志ID")
    private String id;
    @ApiModelProperty("报告类型")
    private String reportType;
    @ApiModelProperty("报告ID")
    private String reportId;
    @ApiModelProperty("报告名称")
    private String reportName;
    @ApiModelProperty("审批结果")
    private String approvalResult;
    @ApiModelProperty("审批原因")
    private String approvalReason;
    @ApiModelProperty("审批前状态")
    private String beforeState;
    @ApiModelProperty("审批后状态")
    private String afterState;
    @ApiModelProperty("审批人")
    private String approverName;
    @ApiModelProperty("审批时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime approvalTime;
}
