package com.hdkj.lt.core.log.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

/**
 * @Description:
 * @Author: LiuAini
 * @Date: 2025/7/18 10:11
 * @Version: v1.0
 */
@Getter
@Setter
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@TableName("fhzg_log_info")
public class FhzgLogInfoEntity {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty(value = "异常发生时间")
    private LocalDateTime errorTime;

    @ApiModelProperty(value = "事件类型：1.图模、2.成图、3.计划、4.故障、5.调优")
    private String eventType;

    @ApiModelProperty(value = "事件编号")
    private String eventId;

    @ApiModelProperty(value = "环节")
    private String stage;

    @ApiModelProperty(value = "相关编号")
    private String relatedId;

    @ApiModelProperty(value = "相关编号分类")
    private String relatedCategory;

    @ApiModelProperty(value = "来源系统")
    private String sourceSystem;

    @ApiModelProperty(value = "来源系统异常id")
    private String sourceSystemErrorId;

    @ApiModelProperty(value = "操作步骤")
    private String operationStep;

    @ApiModelProperty(value = "严重程度")
    private String errorLevel;

    @ApiModelProperty(value = "错误分类")
    private String errorCategory;

    @ApiModelProperty(value = "详细内容")
    private String details;

    @ApiModelProperty(value = "扩展信息")
    private String additionalInfo;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long creator;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "修改人")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long updater;

}
