Add system log api

This commit is contained in:
2023-10-23 16:08:43 +08:00
parent f927851cb0
commit 634e2f6a67
17 changed files with 240 additions and 68 deletions

View File

@@ -0,0 +1,21 @@
package top.fatweb.api.vo
import io.swagger.v3.oas.annotations.media.Schema
@Schema(description = "分页返回参数")
data class PageVo<T>(
@Schema(description = "总数量", example = "100")
val total: Long,
@Schema(description = "总页码", example = "10")
val pages: Long,
@Schema(description = "分页大小", example = "10")
val size: Long,
@Schema(description = "当前页码", example = "2")
val current: Long,
@Schema(description = "数据")
val records: List<T>
)

View File

@@ -0,0 +1,51 @@
package top.fatweb.api.vo.system
import io.swagger.v3.oas.annotations.media.Schema
import java.time.LocalDateTime
@Schema(description = "获取系统日志返回参数")
class SysLogGetVo(
val id: Long?,
@Schema(description = "日志类型")
val logType: String?,
@Schema(description = "操作用户 ID")
val operateUserId: Long?,
@Schema(description = "操作时间")
val operateTime: LocalDateTime?,
@Schema(description = "请求 Uri")
val requestUri: String?,
@Schema(description = "请求方式")
val requestMethod: String?,
@Schema(description = "请求参数")
val requestParams: String?,
@Schema(description = "请求 IP")
val requestIp: String?,
@Schema(description = "请求服务器地址")
val requestServerAddress: String?,
@Schema(description = "是否异常")
val isException: Int?,
@Schema(description = "异常信息")
val exceptionInfo: String?,
@Schema(description = "开始时间")
val startTime: LocalDateTime?,
@Schema(description = "结束时间")
val endTime: LocalDateTime?,
@Schema(description = "执行时间")
val executeTime: Long?,
@Schema(description = "用户代理")
val userAgent: String?
)