import request from '@/utils/request' export interface ExceptionLog { id?: number username?: string operation?: string method?: string params?: string errorMsg?: string exceptionStack?: string ip?: string createTime?: string } export interface PageResponse { content: T[] totalPages: number totalElements: number currentPage: number size: number } export const exceptionLogApi = { getAll: () => request.get('/logs/exception'), getById: (id: number) => request.get(`/logs/exception/${id}`), getPage: (params: { page?: number size?: number sort?: string order?: string keyword?: string }) => request.get>('/logs/exception/page', { params }), getCount: () => request.get('/logs/exception/count'), create: (data: Partial) => request.post('/logs/exception', data) }