refactor(backend): rename output DTOs to Response naming convention
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
import { UtilisateurProfil } from '../repositories/utilisateur.repository';
|
||||
|
||||
export interface RoleDto {
|
||||
export interface RoleResponse {
|
||||
code: string;
|
||||
libelle: string;
|
||||
}
|
||||
|
||||
export interface CampusDto {
|
||||
export interface CampusResponse {
|
||||
id: number;
|
||||
nom: string;
|
||||
ville: string;
|
||||
}
|
||||
|
||||
export interface UtilisateurDto {
|
||||
export interface UtilisateurResponse {
|
||||
id: number;
|
||||
nom: string;
|
||||
prenom: string;
|
||||
email: string;
|
||||
classe: string | null;
|
||||
role: RoleDto;
|
||||
campus: CampusDto;
|
||||
role: RoleResponse;
|
||||
campus: CampusResponse;
|
||||
}
|
||||
|
||||
export function toUtilisateurDto(utilisateur: UtilisateurProfil): UtilisateurDto {
|
||||
export function toUtilisateurResponse(utilisateur: UtilisateurProfil): UtilisateurResponse {
|
||||
return {
|
||||
id: utilisateur.id,
|
||||
nom: utilisateur.nom,
|
||||
|
||||
Reference in New Issue
Block a user