package com.ruoyi.ems.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.huashe.common.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 能源对象上报日志表 adm_ems_obj_event_log
 *
 * @author ruoyi
 * @date 2025-02-27
 */
@Data
public class EmsObjEventLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    private Long id;

    /**
     * 对象代码
     */
    private String objCode;

    private String objName;

    /**
     * 对象模型
     */
    private String modelCode;

    /**
     * 模型名称
     */
    private String modelName;

    /**
     * 事件标识
     */
    private String eventKey;

    private String eventName;

    /**
     * 响应时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date eventTime;

    /**
     * 响应内容
     */
    private String eventDetail;

    private transient List<String> modelCodes;
}
