增加充值审计日志
This commit is contained in:
@@ -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 }),
|
||||
};
|
||||
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user