feat: add Logs
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user