You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.3 KiB
71 lines
1.3 KiB
/** |
|
* Copyright (C) 2018-2022 |
|
* All rights reserved, Designed By www.yixiang.co |
|
|
|
*/ |
|
package co.yixiang.logging.domain; |
|
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDomain; |
|
import com.baomidou.mybatisplus.annotation.TableField; |
|
import com.baomidou.mybatisplus.annotation.TableId; |
|
import com.baomidou.mybatisplus.annotation.TableName; |
|
import lombok.Data; |
|
import lombok.EqualsAndHashCode; |
|
import lombok.NoArgsConstructor; |
|
|
|
/** |
|
* @author hupeng |
|
* @date 2018-11-24 |
|
*/ |
|
@Data |
|
@EqualsAndHashCode(callSuper = true) |
|
@TableName("log") |
|
@NoArgsConstructor |
|
public class Log extends BaseDomain { |
|
|
|
@TableId |
|
private Long id; |
|
|
|
/** 操作用户 */ |
|
private String username; |
|
|
|
@TableField(exist = false) |
|
private String nickname; |
|
|
|
/** 描述 */ |
|
private String description; |
|
|
|
/** 方法名 */ |
|
private String method; |
|
|
|
private Long uid; |
|
|
|
private Integer type; |
|
|
|
/** 参数 */ |
|
private String params; |
|
|
|
/** 日志类型 */ |
|
private String logType; |
|
|
|
/** 请求ip */ |
|
private String requestIp; |
|
|
|
/** 地址 */ |
|
private String address; |
|
|
|
/** 浏览器 */ |
|
private String browser; |
|
|
|
/** 请求耗时 */ |
|
private Long time; |
|
|
|
/** 异常详细 */ |
|
private byte[] exceptionDetail; |
|
|
|
|
|
public Log(String logType, Long time) { |
|
this.logType = logType; |
|
this.time = time; |
|
} |
|
}
|
|
|