feat:同步人脸优化
This commit is contained in:
1 parent
3f99e73c44
commit
6f0e3ea37e
8 files changed
+552
-47
No files matched your search
@@ -344,6 +344,7 @@ class ServiceFaceQualityReportResult {
|
||||
required this.updatedSampleIds,
|
||||
required this.ignoredStaleSampleIds,
|
||||
required this.alreadyAbsentSampleIds,
|
||||
this.ignoredNotApprovedSampleIds = const [],
|
||||
});
|
||||
|
||||
/// 本次成功写入服务端的样本编号。
|
||||
@@ -355,6 +356,10 @@ class ServiceFaceQualityReportResult {
|
||||
/// 请求时服务端已经不存在的样本编号。
|
||||
final List<String> alreadyAbsentSampleIds;
|
||||
|
||||
/// 未审核通过或服务端编号异常而逐条拒收的样本编号;不计入已确认,
|
||||
/// 终端保留待下次重试,样本审核通过后即可正常写入。
|
||||
final List<String> ignoredNotApprovedSampleIds;
|
||||
|
||||
/// 从统一网络层返回的 JSON 创建上报确认结果。
|
||||
factory ServiceFaceQualityReportResult.fromJson(Map<String, dynamic> json) =>
|
||||
_$ServiceFaceQualityReportResultFromJson(json);
|
||||
|
||||
@@ -189,6 +189,11 @@ ServiceFaceQualityReportResult _$ServiceFaceQualityReportResultFromJson(
|
||||
alreadyAbsentSampleIds: (json['alreadyAbsentSampleIds'] as List<dynamic>)
|
||||
.map((e) => e as String)
|
||||
.toList(),
|
||||
ignoredNotApprovedSampleIds:
|
||||
(json['ignoredNotApprovedSampleIds'] as List<dynamic>?)
|
||||
?.map((e) => e as String)
|
||||
.toList() ??
|
||||
const [],
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$ServiceFaceQualityReportResultToJson(
|
||||
@@ -197,6 +202,7 @@ Map<String, dynamic> _$ServiceFaceQualityReportResultToJson(
|
||||
'updatedSampleIds': instance.updatedSampleIds,
|
||||
'ignoredStaleSampleIds': instance.ignoredStaleSampleIds,
|
||||
'alreadyAbsentSampleIds': instance.alreadyAbsentSampleIds,
|
||||
'ignoredNotApprovedSampleIds': instance.ignoredNotApprovedSampleIds,
|
||||
};
|
||||
|
||||
ServiceTenant _$ServiceTenantFromJson(Map<String, dynamic> json) =>
|
||||
|
||||
Reference in new issue
Block a user