mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
20 lines
432 B
TypeScript
20 lines
432 B
TypeScript
import { UserEntity } from '@app/infra/entities';
|
|
|
|
export class AdminSignupResponseDto {
|
|
id!: string;
|
|
email!: string;
|
|
firstName!: string;
|
|
lastName!: string;
|
|
createdAt!: Date;
|
|
}
|
|
|
|
export function mapAdminSignupResponse(entity: UserEntity): AdminSignupResponseDto {
|
|
return {
|
|
id: entity.id,
|
|
email: entity.email,
|
|
firstName: entity.firstName,
|
|
lastName: entity.lastName,
|
|
createdAt: entity.createdAt,
|
|
};
|
|
}
|