package com.engine.organization.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author weaver_cl
 * @description: 日志实体类 hr_log
 * @Date 2022/4/27
 * @Version V1.0
 **/

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LoggerContext implements Serializable {

    private static final long serialVersionUID = 15869325700230992L;

    //日志ID
    private long id;

    //操作详细说明
    private String operateDesc;

    //操作人
    private long operatorId;

    //操作人姓名
    private String operatorName;

    // 创建时间(yyyy-MM-dd HH:mm:ss)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    //操作类型增删改查等
    private String operateType;

    //涉及的相关参数-转string存储
    private String paramsStr;

    //客户端Ip
    private String clientIp;

    // 请求方法名
    private String methodName;

    //请求类名称
    private String className;

    //是否删除
    private int deleteType;

    // 操作模块名称
    private String operateModuleName;

    // 操作模块ID
    private Integer operateModule;

    // 日志信息
    private String message;

    // 名称
    private String value;

}
