mirror of
https://github.com/KevinMidboe/immich.git
synced 2026-02-10 18:29:22 +00:00
feat: facial recognition (#2180)
This commit is contained in:
1
server/libs/domain/src/person/response-dto/index.ts
Normal file
1
server/libs/domain/src/person/response-dto/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './person-response.dto';
|
||||
@@ -0,0 +1,19 @@
|
||||
import { AssetFaceEntity, PersonEntity } from '@app/infra/entities';
|
||||
|
||||
export class PersonResponseDto {
|
||||
id!: string;
|
||||
name!: string;
|
||||
thumbnailPath!: string;
|
||||
}
|
||||
|
||||
export function mapPerson(person: PersonEntity): PersonResponseDto {
|
||||
return {
|
||||
id: person.id,
|
||||
name: person.name,
|
||||
thumbnailPath: person.thumbnailPath,
|
||||
};
|
||||
}
|
||||
|
||||
export function mapFace(face: AssetFaceEntity): PersonResponseDto {
|
||||
return mapPerson(face.person);
|
||||
}
|
||||
Reference in New Issue
Block a user