ci / ci (22, ubuntu-latest) (push) Canceled after 0s
GitHub Release / release (push) Canceled after 0s
Publish Docker image / build (linux/amd64, ubuntu-latest, amd64) (push) Canceled after 0s
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm, arm64) (push) Canceled after 0s
Publish Docker image / merge (push) Canceled after 0s
- 每用户标签与彩色打标,图库 OR/AND 筛选与批量打标 - 操作日志记录登录、删除、设置与标签操作 - API 标签/打标接口;README 与文档站截图同步
40 lines
849 B
TypeScript
40 lines
849 B
TypeScript
export type LogAction = 'upload' | 'delete' | 'login' | 'edit' | 'settings' | 'tags'
|
|
export type LogSource = 'web' | 'api' | 'admin'
|
|
export type LogStatus = 'success' | 'failure'
|
|
|
|
export interface ActivityLogStorage {
|
|
id: string
|
|
name: string
|
|
type: string
|
|
}
|
|
|
|
export interface ActivityLogItem {
|
|
id: number
|
|
action: LogAction
|
|
key: string
|
|
originalName: string
|
|
size: number
|
|
contentType: string
|
|
source: LogSource
|
|
userId: number | null
|
|
username: string | null
|
|
storage: ActivityLogStorage | null
|
|
ipAddress: string | null
|
|
status: LogStatus
|
|
createdAt: string
|
|
}
|
|
|
|
export interface ActivityLogListResponse {
|
|
items: ActivityLogItem[]
|
|
total: number
|
|
page: number
|
|
pageSize: number
|
|
totalPages: number
|
|
summary: {
|
|
total: number
|
|
upload: number
|
|
delete: number
|
|
}
|
|
users?: Array<{ id: number, username: string }>
|
|
}
|