feat: add Logs

This commit is contained in:
2026-09-20 16:17:33 +07:00
parent 4a25557cfe
commit a01cd6f1bf
12 changed files with 353 additions and 73 deletions
+43
View File
@@ -155,3 +155,46 @@ export interface UserRoleDetail {
export interface TaskCounts {
[status: string]: number
}
export interface ActionLog {
id: string
actorUserId: string
actorUsername: string
action: string
entityType: string
entityId: string | null
entityName: string | null
ipAddress: string | null
userAgent: string | null
createdAt: string
}
export interface LoginLog {
id: string
username: string
userId: string | null
success: boolean
failureReason: string | null
ipAddress: string | null
userAgent: string | null
createdAt: string
}
export interface ActionLogFilters {
from?: string
to?: string
actor?: string
action?: string
entityType?: string
page?: number
pageSize?: number
}
export interface LoginLogFilters {
from?: string
to?: string
username?: string
success?: boolean
page?: number
pageSize?: number
}