feat:人脸机器实时增量更新
This commit is contained in:
1 parent
8cfbbd768e
commit
3770173604
29 files changed
+1584
-359
No files matched your search
@@ -75,6 +75,22 @@ abstract class UserApi {
|
||||
.toList();
|
||||
}
|
||||
|
||||
/// 按固定主键上界游标读取本部门及子部门的 V3 人脸权威快照。
|
||||
static Future<ServiceFaceSyncSnapshot> getFaceSyncSnapshot(
|
||||
Map<String, dynamic> requestBody,
|
||||
) async {
|
||||
final res = await HttpManage().dio.post(
|
||||
"/admin/user-face/ad/v3/sync-snapshot",
|
||||
data: requestBody,
|
||||
);
|
||||
if (res.data is! Map) {
|
||||
throw const FormatException('服务端未返回有效的人脸快照');
|
||||
}
|
||||
return ServiceFaceSyncSnapshot.fromJson(
|
||||
Map<String, dynamic>.from(res.data as Map),
|
||||
);
|
||||
}
|
||||
|
||||
/// 获取租户列表
|
||||
static Future<List<ServiceTenant>?> getTenantList() async {
|
||||
final res = await HttpManage().dio.get("/admin/tenant/list");
|
||||
|
||||
Reference in new issue
Block a user