com.github.rexsheng.springboot.faster.system.entity.table.LogTableDef Maven / Gradle / Ivy
The newest version!
package com.github.rexsheng.springboot.faster.system.entity.table;
import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;
// Auto generate by mybatis-flex, do not modify it.
public class LogTableDef extends TableDef {
/**
* 日志表 实体类。
@author sheng
@since 2024-05-04
*/
public static final LogTableDef LOG = new LogTableDef();
/**
* 请求ID
*/
public final QueryColumn ID = new QueryColumn(this, "id");
/**
* 操作人
*/
public final QueryColumn USER = new QueryColumn(this, "user");
/**
* 是否异常(0正常,1异常)
*/
public final QueryColumn ERROR = new QueryColumn(this, "error");
/**
* 模块名称
*/
public final QueryColumn MODULE = new QueryColumn(this, "module");
/**
* 服务器名称
*/
public final QueryColumn SERVER = new QueryColumn(this, "server");
/**
* 结束时间
*/
public final QueryColumn END_TIME = new QueryColumn(this, "end_time");
/**
* 耗时(毫秒)
*/
public final QueryColumn COST_TIME = new QueryColumn(this, "cost_time");
/**
* 异常信息
*/
public final QueryColumn ERROR_MSG = new QueryColumn(this, "error_msg");
/**
* 执行类名
*/
public final QueryColumn CLASS_NAME = new QueryColumn(this, "class_name");
/**
* 请求IP
*/
public final QueryColumn REQUEST_IP = new QueryColumn(this, "request_ip");
/**
* 开始时间
*/
public final QueryColumn START_TIME = new QueryColumn(this, "start_time");
/**
* 客户端名称
*/
public final QueryColumn USER_AGENT = new QueryColumn(this, "user_agent");
/**
* 执行方法名
*/
public final QueryColumn METHOD_NAME = new QueryColumn(this, "method_name");
/**
* 方法注释
*/
public final QueryColumn METHOD_NOTE = new QueryColumn(this, "method_note");
/**
* 请求地址
*/
public final QueryColumn REQUEST_URL = new QueryColumn(this, "request_url");
/**
* 请求参数
*/
public final QueryColumn REQUEST_PARAM = new QueryColumn(this, "request_param");
/**
* 请求头部
*/
public final QueryColumn REQUEST_HEADER = new QueryColumn(this, "request_header");
/**
* 请求方式
*/
public final QueryColumn REQUEST_METHOD = new QueryColumn(this, "request_method");
/**
* 所有字段。
*/
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
/**
* 默认字段,不包含逻辑删除或者 large 等字段。
*/
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, USER, ERROR, MODULE, SERVER, END_TIME, COST_TIME, ERROR_MSG, CLASS_NAME, REQUEST_IP, START_TIME, USER_AGENT, METHOD_NAME, METHOD_NOTE, REQUEST_URL, REQUEST_PARAM, REQUEST_HEADER, REQUEST_METHOD};
public LogTableDef() {
super("", "sys_log");
}
private LogTableDef(String schema, String name, String alisa) {
super(schema, name, alisa);
}
public LogTableDef as(String alias) {
String key = getNameWithSchema() + "." + alias;
return getCache(key, k -> new LogTableDef("", "sys_log", alias));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy