fix: add identity_uuid to /identities list + /file/:uuid/identities responses

This commit is contained in:
Accusys
2026-05-15 10:14:22 +08:00
parent fdcec82274
commit 37799fff4e
3 changed files with 11 additions and 6 deletions

View File

@@ -180,6 +180,7 @@ pub struct FileIdentitiesResponse {
#[derive(Debug, Serialize)]
pub struct FileIdentityItem {
pub identity_id: i32,
pub identity_uuid: Option<String>,
pub name: String,
pub metadata: serde_json::Value,
pub face_count: Option<i32>,
@@ -211,6 +212,7 @@ async fn get_file_identities(
.into_iter()
.map(|r| FileIdentityItem {
identity_id: r.identity_id,
identity_uuid: r.identity_uuid.map(|u| u.to_string()),
name: r.name,
metadata: r.metadata,
face_count: r.face_count,