mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
19 lines
432 B
TypeScript
19 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,
|
|
};
|
|
}
|