feat: Implement camera management page and device location updates, including API, typings, and routing.

This commit is contained in:
2026-01-26 11:18:36 +07:00
parent 17d246d5ef
commit 1f35516e44
10 changed files with 741 additions and 21 deletions

View File

@@ -53,6 +53,14 @@ export async function apiSearchThings(
}
}
export async function apiUpdateThing(value: MasterModel.Thing) {
if (!value.id) throw new Error('Thing id is required');
return request<MasterModel.Thing>(`${API_SHARE_THING}/${value.id}`, {
method: 'PUT',
data: value,
});
}
export async function apiGetThingPolicyByUser(
params: Partial<MasterModel.SearchPaginationBody>,
userId: string,

View File

@@ -30,6 +30,8 @@ declare namespace MasterModel {
state_updated_time?: number;
type?: string;
updated_time?: number;
lat?: string;
lng?: string;
}
interface ThingsResponse<