yu
Add Dockerfile and code
4bcd925
raw
history blame contribute delete
359 Bytes
import apiClient from './client'
import type { AdminLogsResponse } from '@/types/api'
export const logsApi = {
// 获取日志
list: (params?: { limit?: number; level?: string; search?: string }) =>
apiClient.get<never, AdminLogsResponse>('/admin/log', { params }),
// 清空日志
clear: () =>
apiClient.delete('/admin/log?confirm=yes'),
}