package cn.lihongjie.coal.syslog.entity;

import cn.lihongjie.coal.base.entity.OrgBaseEntity;

import jakarta.persistence.Entity;

import lombok.Data;

import org.hibernate.annotations.Comment;

@Entity
@Data
@Comment("操作日志")
public class SysLogEntity extends OrgBaseEntity {

    @Comment("ip")
    private String ip;

    @Comment("模块")
    private String module;

    @Comment("操作")
    private String action;

    @Comment("详细信息")
    private String message;

    @Comment("ip定位")
    private String ipLocation;

    @Comment("userAgent")
    private String userAgent;

    @Comment("耗时")
    private Integer timeCost;

    @Comment("URL")
    private String url;

    @Comment("操作状态 0 成功 1 失败")
    private String optStatus;



    @Comment("错误堆栈")
    private String stacktrace;
}
