Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
framework-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bd67fb12
authored
Jul 01, 2024
by
henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志公共服务
1 parent
df245dbd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
188 additions
and
0 deletions
arch-base/src/main/java/org/arch/modules/base/pojo/SysEventLog.java
arch-base/src/main/java/org/arch/modules/base/pojo/SysEventLog.java
0 → 100644
View file @
bd67fb1
package
org
.
arch
.
modules
.
base
.
pojo
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.experimental.Accessors
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.Date
;
/**
* 系统操作日志(SysEventLog)实体类
*
* @author makejava
* @since 2024-01-25 09:50:17
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors
(
chain
=
true
)
@TableName
(
"sys_event_log"
)
@ApiModel
(
value
=
"sysEventLog对象"
,
description
=
"系统日志对象"
)
public
class
SysEventLog
{
/**
* 主键ID
*/
@ApiModelProperty
(
value
=
"主键ID"
)
// @TableId(value = "log_id", type = IdType.AUTO)
private
String
logId
;
/**
* 用户iscID
*/
@ApiModelProperty
(
value
=
"用户iscID"
)
private
String
userId
;
/**
* 用户名
*/
@ApiModelProperty
(
value
=
"用户名"
)
private
String
username
;
/**
* ip地址
*/
@ApiModelProperty
(
value
=
"ip地址"
)
private
String
ipAddr
;
/**
* 创建时间
*/
@ApiModelProperty
(
value
=
"创建时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
createTime
;
/**
* 事件类型
*/
@ApiModelProperty
(
value
=
"事件类型 0 其他 1 新增 2 修改 3 删除 4 查询 5 授权 6 导出 7 导入 8 登录 9退出"
)
private
String
eventType
;
@ApiModelProperty
(
value
=
"模块名称"
)
@TableField
(
exist
=
false
)
private
String
moduleName
;
/**
* 事件内容
*/
@ApiModelProperty
(
value
=
"事件内容 1 日志统计 2 日志数据"
)
private
String
eventContent
;
/**
* 日志类型
*/
@ApiModelProperty
(
value
=
"日志类型 0 系统日志 1 业务日志"
)
private
String
logType
;
/**
* 日志级别
*/
@ApiModelProperty
(
value
=
"日志级别 0 低 1 中 2 高"
)
private
String
logLev
;
/**
* 是否为异常 0 否 1 是
*/
@ApiModelProperty
(
value
=
"是否为异常 0 否 1 是"
)
private
Integer
isWarn
;
/**
* 是否成功 0 失败 1 成功
*/
@ApiModelProperty
(
value
=
"是否成功 0 失败 1 成功"
)
private
String
result
;
/**
* 账号
*/
@ApiModelProperty
(
value
=
"账号"
)
private
String
userCode
;
/**
* 菜单ID
*/
@ApiModelProperty
(
value
=
"菜单ID"
)
private
String
menuId
;
/**
* 菜单全路径
*/
@ApiModelProperty
(
value
=
"菜单全路径"
)
private
String
menuUri
;
/**
* 是否已读
*/
@ApiModelProperty
(
value
=
"是否已读"
)
private
Integer
isRead
;
/**
* 请求时间
*/
@ApiModelProperty
(
value
=
"请求时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
requestTime
;
/**
* 请求参数
*/
@ApiModelProperty
(
value
=
"请求参数"
)
private
String
requestParams
;
@ApiModelProperty
(
value
=
"请求路径"
)
@TableField
(
exist
=
false
)
private
String
operUrl
;
@ApiModelProperty
(
value
=
"错误信息"
)
@TableField
(
exist
=
false
)
private
String
errorMsg
;
@ApiModelProperty
(
value
=
"请求方式"
)
@TableField
(
exist
=
false
)
private
String
requestMethod
;
@ApiModelProperty
(
value
=
"响应结果"
)
@TableField
(
exist
=
false
)
private
String
jsonResult
;
@ApiModelProperty
(
value
=
"接口方法"
)
@TableField
(
exist
=
false
)
private
String
method
;
@ApiModelProperty
(
value
=
"接口响应时间"
)
private
Long
costTime
;
@ApiModelProperty
(
value
=
"查询条件时间"
)
@TableField
(
exist
=
false
)
private
String
time
;
public
static
final
String
LOG_ID
=
"log_id"
;
public
static
final
String
USER_ID
=
"user_id"
;
public
static
final
String
USER_NAME
=
"username"
;
public
static
final
String
IP_ADDR
=
"ip_addr"
;
public
static
final
String
CREATE_TIME
=
"create_time"
;
public
static
final
String
ENENT_TYPE
=
"event_type"
;
public
static
final
String
EVENT_CONTENT
=
"event_content"
;
public
static
final
String
LOG_TYPE
=
"log_type"
;
public
static
final
String
LOG_LEV
=
"log_lev"
;
public
static
final
String
IS_WARN
=
"is_warn"
;
public
static
final
String
RESULT
=
"result"
;
public
static
final
String
USER_CODE
=
"user_code"
;
public
static
final
String
MENU_ID
=
"menu_id"
;
public
static
final
String
MENU_URI
=
"menu_uri"
;
public
static
final
String
IS_READ
=
"is_read"
;
public
static
final
String
REQUEST_TIME
=
"request_time"
;
public
static
final
String
REQUEST_PARAMS
=
"request_params"
;
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment