feat: User services

This commit is contained in:
sauravdhakal12
2026-02-20 15:53:45 +05:45
parent 9561693cb4
commit f6bce78aee
39 changed files with 6509 additions and 66 deletions

1
src/user/dtos/index.ts Normal file
View File

@@ -0,0 +1 @@
export * from './user.dto';

21
src/user/dtos/user.dto.ts Normal file
View File

@@ -0,0 +1,21 @@
import { User } from 'prisma/generated/prisma/client';
export class UserDTO {
readonly id: string;
readonly email: string;
readonly firstName: string;
readonly middleName: string | null;
readonly lastName: string;
readonly role: string;
readonly profilePicture: string | null;
constructor(user: User) {
this.id = user.id;
this.email = user.email;
this.firstName = user.firstName;
this.lastName = user.lastName;
this.middleName = user.middleName;
this.role = user.role;
this.profilePicture = user.profilePicture;
}
}