@@ -45,7 +45,6 @@ export namespace AiotDeviceApi {
|
||||
mediaServerId?: string;
|
||||
streamKey?: string;
|
||||
createTime?: string;
|
||||
areaId?: number; // 所属区域ID
|
||||
}
|
||||
|
||||
/** ROI 区域 */
|
||||
@@ -300,15 +299,3 @@ export async function getAlertImageUrl(imagePath: string): Promise<string> {
|
||||
`&access-token=${encodeURIComponent(token)}`
|
||||
);
|
||||
}
|
||||
|
||||
// ==================== 区域列表 ====================
|
||||
|
||||
/** 获取区域列表(从 IoT 平台代理查询) */
|
||||
export async function getAreaList(): Promise<
|
||||
{ id: number; areaName: string; parentId?: number }[]
|
||||
> {
|
||||
const resp = await fetch(`${apiURL}/api/area/list`);
|
||||
const json = await resp.json();
|
||||
if (json.code === 0) return json.data || [];
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user