Files
silk/web/src/dal/log.ts
T

15 lines
327 B
TypeScript

import { get } from '../api/http';
export interface ControlLog {
id: string;
deviceId?: string;
deviceName?: string;
command: string;
operator?: string;
success?: boolean;
createdAt: string;
}
export const listLogs = (params?: any) =>
get<{ items: ControlLog[]; total: number }>('/logs/control', { params });