feat:拉取人脸v1、v2版本
This commit is contained in:
1 parent
b916d6ca85
commit
561e55b59f
3 files changed
+17
-3
No files matched your search
@@ -57,6 +57,20 @@ abstract class UserApi {
|
||||
.toList();
|
||||
}
|
||||
|
||||
/// 获取人脸v2
|
||||
static Future<List<ServiceAsyncFace>?> getFaceListV2(
|
||||
dynamic formData,
|
||||
) async {
|
||||
final res = await HttpManage().dio.get(
|
||||
"/admin/user-face/ad/v2/find-face",
|
||||
queryParameters: formData,
|
||||
);
|
||||
if (res.data == null) return null;
|
||||
return res.data
|
||||
?.map<ServiceAsyncFace>((e) => ServiceAsyncFace.fromJson(e))
|
||||
.toList();
|
||||
}
|
||||
|
||||
/// 获取租户列表
|
||||
static Future<List<ServiceTenant>?> getTenantList() async {
|
||||
final res = await HttpManage().dio.get("/admin/tenant/list");
|
||||
|
||||
Reference in new issue
Block a user