fix(client): Ajout de la propriété photoUrl dans MembreDTO côté client

- Ajout du champ photoUrl avec @Size(max=255) pour aligner avec le DTO serveur
- Ajout des getters et setters correspondants
- Résout l'erreur PropertyNotFoundException lors de l'affichage des membres
This commit is contained in:
dahoud
2025-11-29 20:14:26 +00:00
parent 200cb2cde6
commit 4075357e47

View File

@@ -59,6 +59,9 @@ public class MembreDTO implements Serializable {
@Size(max = 20, message = "Le type d'identité ne peut pas dépasser 20 caractères") @Size(max = 20, message = "Le type d'identité ne peut pas dépasser 20 caractères")
private String typeIdentite; private String typeIdentite;
@Size(max = 255, message = "L'URL de la photo ne peut pas dépasser 255 caractères")
private String photoUrl;
@NotNull(message = "Le statut est obligatoire") @NotNull(message = "Le statut est obligatoire")
private String statut; private String statut;
@@ -149,6 +152,9 @@ public class MembreDTO implements Serializable {
public String getModifiePar() { return modifiePar; } public String getModifiePar() { return modifiePar; }
public void setModifiePar(String modifiePar) { this.modifiePar = modifiePar; } public void setModifiePar(String modifiePar) { this.modifiePar = modifiePar; }
public String getPhotoUrl() { return photoUrl; }
public void setPhotoUrl(String photoUrl) { this.photoUrl = photoUrl; }
// Propriétés dérivées // Propriétés dérivées
public String getNomComplet() { public String getNomComplet() {
return (prenom != null ? prenom : "") + " " + (nom != null ? nom : ""); return (prenom != null ? prenom : "") + " " + (nom != null ? nom : "");