增加充值审计日志

This commit is contained in:
yml2213
2026-08-14 11:52:30 +08:00
parent 7fefe7e9f9
commit 7fe6228901
16 changed files with 675 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
import api from './client';
import type { AuditLogEntry, AuditLogQuery, PaginatedResponse } from './types';
export const auditApi = {
list: (params: AuditLogQuery) =>
api.get<PaginatedResponse<AuditLogEntry>, PaginatedResponse<AuditLogEntry>>('/audit-logs', { params }),
};
+1
View File
@@ -2,6 +2,7 @@ export * from './types';
export { accountCheckApi } from './accountCheck';
export { accountApi } from './accounts';
export { appApi } from './app';
export { auditApi } from './audit';
export { authApi } from './auth';
export { cookieApi } from './cookies';
export { dashboardApi } from './dashboard';
+20
View File
@@ -44,6 +44,26 @@ export interface PaginatedResponse<T> {
page_size: number;
}
export interface AuditLogEntry {
id: number;
user_id: number | null;
username: string;
action: string;
target: string;
detail: string;
success: boolean | null;
created_at: string;
}
export interface AuditLogQuery {
page: number;
page_size: number;
username?: string;
action?: string;
keyword?: string;
success?: boolean;
}
export interface BasicSummary {
total: number;
assigned_count: number;