This commit is contained in:
2025-12-02 13:21:18 +08:00
parent fab8c13cb3
commit ee6dd64f98
192 changed files with 25783 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xyzh</groupId>
<artifactId>apis</artifactId>
<version>1.0.0</version>
</parent>
<groupId>org.xyzh.apis</groupId>
<artifactId>api-log</artifactId>
<version>${urban-lifeline.version}</version>
<packaging>jar</packaging>
<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>
</project>

View File

@@ -0,0 +1,51 @@
package org.xyzh.api.log.dto;
import com.alibaba.fastjson2.JSONObject;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.xyzh.common.dto.BaseDTO;
/**
* @description 系统日志DTO
* @filename TbSysLogDTO.java
* @author yslg
* @copyright yslg
* @since 2025-11-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "系统日志DTO")
public class TbSysLogDTO extends BaseDTO {
private static final long serialVersionUID = 1L;
@Schema(description = "日志ID")
private String logId;
@Schema(description = "日志类型")
private Integer type;
@Schema(description = "日志级别")
private String level;
@Schema(description = "模块")
private String module;
@Schema(description = "IP地址")
private String ipAddress;
@Schema(description = "IP来源")
private String ip_source;
@Schema(description = "浏览器")
private String browser;
@Schema(description = "操作系统")
private String os;
@Schema(description = "日志消息")
private String message;
@Schema(description = "日志数据")
private JSONObject data;
}

View File

@@ -0,0 +1,56 @@
package org.xyzh.api.log.dto;
import java.util.Date;
import com.alibaba.fastjson2.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.xyzh.common.dto.BaseDTO;
/**
* @description 系统登录日志DTO
* @filename TbSysLoginLogDTO.java
* @author yslg
* @copyright yslg
* @since 2025-11-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "系统登录日志DTO")
public class TbSysLoginLogDTO extends BaseDTO {
@Schema(description = "用户ID")
private String userId;
@Schema(description = "用户名")
private String username;
@Schema(description = "IP地址")
private String ipAddress;
@Schema(description = "IP来源")
private String ipSource;
@Schema(description = "浏览器")
private String browser;
@Schema(description = "操作系统")
private String os;
@Schema(description = "密码")
private String password;
@Schema(description = "登录时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date loginTime;
@Schema(description = "状态")
private Integer status;
@Schema(description = "错误次数")
private Integer errorCount;
@Schema(description = "消息")
private String message;
}