11
This commit is contained in:
1 parent
295b4058be
commit
08bf352984
21 files changed
+1109
-234
No files matched your search
@@ -44,20 +44,16 @@ abstract class UserApi {
|
||||
}
|
||||
|
||||
/// 获取人脸
|
||||
static Future<ServiceListBase<ServiceAsyncFace>> getFaceList(
|
||||
static Future<List<ServiceAsyncFace>?> getFaceList(
|
||||
dynamic formData,
|
||||
) async {
|
||||
final res = await HttpManage().dio.get(
|
||||
"/admin/user-face/ad/find-face",
|
||||
queryParameters: formData,
|
||||
);
|
||||
if (res.data?.data == null) {
|
||||
return res.data;
|
||||
}
|
||||
final typeData = res.data?.data
|
||||
if (res.data == null) return null;
|
||||
return res.data
|
||||
?.map<ServiceAsyncFace>((e) => ServiceAsyncFace.fromJson(e))
|
||||
.toList();
|
||||
res.data?.data = typeData;
|
||||
return res.data;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user