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 });