chore: 初始化仓库基线(AGENTS.md、git 规范、敏感文件排除)

This commit is contained in:
weijuesen
2026-08-10 22:30:53 +08:00
commit 84abf4454c
358 changed files with 75993 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { get, post } from './request';
import type { Device, ControlCommand } from '@/types';
export function getDevices(params?: Record<string, unknown>): Promise<Device[]> {
return get<Device[]>('/devices', params);
}
export function getDevice(id: string): Promise<Device> {
return get<Device>(`/devices/${id}`);
}
export function sendControl(command: ControlCommand): Promise<unknown> {
return post<unknown>('/control/send', command as unknown as Record<string, unknown>);
}
export function getControlLogs(params?: Record<string, unknown>): Promise<unknown[]> {
return get<unknown[]>('/control/logs', params);
}