package com.nbport.zgwl.contractlog.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class ContractLogDto implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ExcelProperty("日志ID")
    private Long id;

    @ExcelProperty("合同ID")
    private Long contractId;

    @ExcelProperty("合同编码")
    private String contractCode;

    @ExcelProperty("合同名称")
    private String contractName;

    @ExcelProperty("合同当前状态")
    private String contractStatus;

    @ExcelProperty("操作类型")
    private String actionType;

    @ExcelProperty("操作名称")
    private String actionName;

    @ExcelProperty("操作结果")
    private String actionStatus;

    @ExcelProperty("操作人")
    private String operatorName;

    @ExcelProperty("操作人手机号")
    private String operatorPhone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ExcelProperty("操作时间")
    private LocalDateTime actionTime;

    @ExcelProperty("操作内容")
    private String actionContent;

    @ExcelProperty("原始报文")
    private String callbackPayload;

    @ExcelProperty("备注")
    private String remark;
}
