This commit is contained in:
2026-08-16 09:02:39 +08:00
parent c554152f4f
commit f7f6db8695
105 changed files with 2535 additions and 948 deletions
+4 -1
View File
@@ -18,6 +18,7 @@ var (
type OperationRecord struct {
ID uint
CreatedAt time.Time
UpdatedAt time.Time
IP, Method, Path string
Status int
LatencyMS int64
@@ -30,6 +31,7 @@ type OperationRecord struct {
type LoginLog struct {
ID uint
CreatedAt time.Time
UpdatedAt time.Time
Username, IP string
Status bool
ErrorMessage, Agent string
@@ -41,6 +43,7 @@ type LoginLog struct {
type DataAccessLog struct {
ID uint
CreatedAt time.Time
UpdatedAt time.Time
EventType, TargetTable, Operation string
UserID, AuthorityID uint
Scope int
@@ -79,7 +82,7 @@ func NewLogViewerUsecase(repo LogFileRepo) *LogViewerUsecase {
type ErrorRecord struct {
ID uint
CreatedAt time.Time
CreatedAt, UpdatedAt time.Time
Form, Info, Level, RequestID, TraceID, Solution, Status string
CreatedAtRange []time.Time
}