From b874fb16a24c7c6eddd48715af03ae1cffa5cea4 Mon Sep 17 00:00:00 2001
From: AlineRinquin <90188226+AlineRinquin@users.noreply.github.com>
Date: Thu, 20 Jan 2022 09:37:14 +0100
Subject: [PATCH 01/11] commit pour pull
---
.idea/Organizee.iml | 9 ---------
.idea/compiler.xml | 2 ++
pom.xml | 13 +++++++------
3 files changed, 9 insertions(+), 15 deletions(-)
delete mode 100644 .idea/Organizee.iml
diff --git a/.idea/Organizee.iml b/.idea/Organizee.iml
deleted file mode 100644
index d6ebd48..0000000
--- a/.idea/Organizee.iml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index a8c4885..c75fd2a 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -6,11 +6,13 @@
+
diff --git a/pom.xml b/pom.xml
index 32eb628..9b437f5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,12 +2,7 @@
4.0.0
-
- org.springframework.boot
- spring-boot-starter-parent
- 2.6.1
-
-
+
fr.organizee
organizee
0.0.1-SNAPSHOT
@@ -16,6 +11,12 @@
11
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.6.1
+
+
org.springframework.boot
From 6c69774bb1a42b4536be6a075120078267fbe789 Mon Sep 17 00:00:00 2001
From: Hedi
Date: Thu, 20 Jan 2022 09:41:07 +0100
Subject: [PATCH 02/11] debut de tache controller
---
.../controller/EvenementController.java | 37 ++++++
.../organizee/controller/TacheController.java | 85 ++++++++++++++
.../java/fr/organizee/model/Evenement.java | 107 ++++++++++++++++++
.../repository/EvenementRepository.java | 9 ++
.../organizee/repository/TacheRepository.java | 7 +-
5 files changed, 244 insertions(+), 1 deletion(-)
create mode 100644 src/main/java/fr/organizee/controller/EvenementController.java
create mode 100644 src/main/java/fr/organizee/controller/TacheController.java
create mode 100644 src/main/java/fr/organizee/model/Evenement.java
create mode 100644 src/main/java/fr/organizee/repository/EvenementRepository.java
diff --git a/src/main/java/fr/organizee/controller/EvenementController.java b/src/main/java/fr/organizee/controller/EvenementController.java
new file mode 100644
index 0000000..a5c3673
--- /dev/null
+++ b/src/main/java/fr/organizee/controller/EvenementController.java
@@ -0,0 +1,37 @@
+package fr.organizee.controller;
+
+import fr.organizee.model.Evenement;
+import fr.organizee.model.Membre;
+import fr.organizee.model.Team;
+import fr.organizee.repository.EvenementRepository;
+import fr.organizee.repository.TeamRepository;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+import java.util.Optional;
+
+@RestController
+@CrossOrigin("*")
+@RequestMapping("/evenements")
+public class EvenementController {
+
+ @Autowired
+ private EvenementRepository evenementRepo;
+
+ // Recupérer tout les evenements pour une team {id}
+ @GetMapping(value = "/all/{id}")
+ public ResponseEntity> getAll(){
+ List liste = null;
+ try
+ {
+ liste = evenementRepo.findAll();
+ } catch (Exception e) {
+ return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);
+ }
+
+ return ResponseEntity.status(HttpStatus.OK).body(liste);
+ }
+}
diff --git a/src/main/java/fr/organizee/controller/TacheController.java b/src/main/java/fr/organizee/controller/TacheController.java
new file mode 100644
index 0000000..8408ada
--- /dev/null
+++ b/src/main/java/fr/organizee/controller/TacheController.java
@@ -0,0 +1,85 @@
+package fr.organizee.controller;
+
+import fr.organizee.model.Membre;
+import fr.organizee.model.Tache;
+import fr.organizee.repository.MembreRepository;
+import fr.organizee.repository.TacheRepository;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.*;
+
+import javax.persistence.EntityNotFoundException;
+import java.util.List;
+import java.util.Optional;
+
+@RestController
+@CrossOrigin("*")
+@RequestMapping("/taches")
+public class TacheController {
+ @Autowired
+ private TacheRepository tacheRepo;
+
+ @GetMapping(value = "/all")
+ public ResponseEntity> getAll(){
+ List liste = null;
+ try
+ {
+ liste = tacheRepo.findAll();
+ } catch (Exception e) {
+ return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);
+ }
+
+ return ResponseEntity.status(HttpStatus.OK).body(liste);
+ }
+
+ @GetMapping(value = "/{id}")
+ public ResponseEntity> findById(@PathVariable int id){
+ Optional tache = null;
+ try
+ {
+ tache = tacheRepo.findById(id);
+ } catch (Exception e) {
+ return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);
+ }
+
+ return ResponseEntity.status(HttpStatus.OK).body(tache);
+ }
+
+ @DeleteMapping(value = "/delete/{id}")
+ public ResponseEntity> deleteTache(@PathVariable int id){
+ try {
+ tacheRepo.delete(tacheRepo.getById(id));
+ return ResponseEntity.status(HttpStatus.OK).body("Tache effacée !");
+
+ } catch (EntityNotFoundException e) {
+
+ return ResponseEntity.status(HttpStatus.OK).body("Tache introuvable !");
+ }
+ }
+
+ @PostMapping(value="/add", produces="application/json", consumes="application/json")
+ public ResponseEntity> addTache(@RequestBody Tache tache){
+ Tache resultTache = null;
+ try {
+ resultTache = tacheRepo.saveAndFlush(tache);
+ } catch (Exception e) {
+ return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage());
+ }
+
+ return ResponseEntity.status(HttpStatus.CREATED).body(resultTache);
+ }
+
+ @PutMapping("/update/{id}")
+ public ResponseEntity> updateTache(@RequestBody Tache tache, @PathVariable Integer id) throws Exception {
+ Tache resultTache = null;
+ try {
+ resultTache = tacheRepo.save(tache);
+
+ } catch (Exception e) {
+ return ResponseEntity.status(HttpStatus.NOT_FOUND).body(e.getMessage());
+ }
+
+ return ResponseEntity.status(HttpStatus.OK).body(resultTache);
+ }
+}
diff --git a/src/main/java/fr/organizee/model/Evenement.java b/src/main/java/fr/organizee/model/Evenement.java
new file mode 100644
index 0000000..15a355f
--- /dev/null
+++ b/src/main/java/fr/organizee/model/Evenement.java
@@ -0,0 +1,107 @@
+package fr.organizee.model;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+
+import javax.persistence.*;
+import java.time.LocalDateTime;
+
+@Entity
+public class Evenement {
+ @Id
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
+ private int id;
+ private LocalDateTime eventDebut;
+ private LocalDateTime eventFin;
+ private int allDay;
+ private String libelle;
+ @ManyToOne(cascade = CascadeType.MERGE)
+ @JoinColumn(name="MEMBRE_ID")
+ @JsonIgnoreProperties("evenement")
+ private Membre membre;
+ @ManyToOne(cascade = CascadeType.MERGE)
+ @JoinColumn(name="TEAM_ID")
+ @JsonIgnoreProperties("evenement")
+ private Team team;
+
+ public Evenement() {
+ }
+
+ public Evenement(int id, LocalDateTime eventDebut, LocalDateTime eventFin, int allDay, String libelle, Membre membre, Team team) {
+ this.id = id;
+ this.eventDebut = eventDebut;
+ this.eventFin = eventFin;
+ this.allDay = allDay;
+ this.libelle = libelle;
+ this.membre = membre;
+ this.team = team;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public LocalDateTime getEventDebut() {
+ return eventDebut;
+ }
+
+ public void setEventDebut(LocalDateTime eventDebut) {
+ this.eventDebut = eventDebut;
+ }
+
+ public LocalDateTime getEventFin() {
+ return eventFin;
+ }
+
+ public void setEventFin(LocalDateTime eventFin) {
+ this.eventFin = eventFin;
+ }
+
+ public int getAllDay() {
+ return allDay;
+ }
+
+ public void setAllDay(int allDay) {
+ this.allDay = allDay;
+ }
+
+ public String getLibelle() {
+ return libelle;
+ }
+
+ public void setLibelle(String libelle) {
+ this.libelle = libelle;
+ }
+
+ public Membre getMembre() {
+ return membre;
+ }
+
+ public void setMembre(Membre membre) {
+ this.membre = membre;
+ }
+
+ public Team getTeam() {
+ return team;
+ }
+
+ public void setTeam(Team team) {
+ this.team = team;
+ }
+
+ @Override
+ public String toString() {
+ return "Evenement{" +
+ "id=" + id +
+ ", eventDebut=" + eventDebut +
+ ", eventFin=" + eventFin +
+ ", allDay=" + allDay +
+ ", libelle='" + libelle + '\'' +
+ ", membre=" + membre +
+ ", team=" + team +
+ '}';
+ }
+}
diff --git a/src/main/java/fr/organizee/repository/EvenementRepository.java b/src/main/java/fr/organizee/repository/EvenementRepository.java
new file mode 100644
index 0000000..51164c5
--- /dev/null
+++ b/src/main/java/fr/organizee/repository/EvenementRepository.java
@@ -0,0 +1,9 @@
+package fr.organizee.repository;
+
+import fr.organizee.model.Evenement;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface EvenementRepository extends JpaRepository {
+}
diff --git a/src/main/java/fr/organizee/repository/TacheRepository.java b/src/main/java/fr/organizee/repository/TacheRepository.java
index 17c22b8..2e52ef2 100644
--- a/src/main/java/fr/organizee/repository/TacheRepository.java
+++ b/src/main/java/fr/organizee/repository/TacheRepository.java
@@ -1,4 +1,9 @@
package fr.organizee.repository;
-public interface TacheRepository {
+import fr.organizee.model.Tache;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface TacheRepository extends JpaRepository {
}
From c33d1282c7f1cc6fc59fa4da1a3ff41b9834d6ba Mon Sep 17 00:00:00 2001
From: Hedi
Date: Fri, 21 Jan 2022 14:45:37 +0100
Subject: [PATCH 03/11] fix: pb update en cascade, ajout de Tache et Todolist
(class et repository)
---
.idea/compiler.xml | 1 +
.../controller/ContactController.java | 3 -
.../organizee/controller/MenuController.java | 18 +++--
.../organizee/controller/TacheController.java | 22 +++++-
.../organizee/controller/TeamController.java | 3 +-
.../controller/TodoListController.java | 75 +++++++++++++++++++
src/main/java/fr/organizee/model/Contact.java | 2 +-
src/main/java/fr/organizee/model/Membre.java | 2 +-
src/main/java/fr/organizee/model/Menu.java | 25 ++++++-
src/main/java/fr/organizee/model/Tache.java | 2 +-
src/main/java/fr/organizee/model/Team.java | 8 +-
.../java/fr/organizee/model/TodoList.java | 24 +++++-
.../organizee/repository/TacheRepository.java | 8 ++
.../repository/TodoListRepository.java | 7 ++
14 files changed, 172 insertions(+), 28 deletions(-)
create mode 100644 src/main/java/fr/organizee/controller/TodoListController.java
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index c75fd2a..a500b21 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -7,6 +7,7 @@
+
diff --git a/src/main/java/fr/organizee/controller/ContactController.java b/src/main/java/fr/organizee/controller/ContactController.java
index 5186d12..ef79042 100644
--- a/src/main/java/fr/organizee/controller/ContactController.java
+++ b/src/main/java/fr/organizee/controller/ContactController.java
@@ -1,10 +1,7 @@
package fr.organizee.controller;
import fr.organizee.model.Contact;
-import fr.organizee.model.Membre;
-import fr.organizee.model.Team;
import fr.organizee.repository.ContactRepository;
-import fr.organizee.repository.TeamRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
diff --git a/src/main/java/fr/organizee/controller/MenuController.java b/src/main/java/fr/organizee/controller/MenuController.java
index f4e4ec8..b7db085 100644
--- a/src/main/java/fr/organizee/controller/MenuController.java
+++ b/src/main/java/fr/organizee/controller/MenuController.java
@@ -1,6 +1,5 @@
package fr.organizee.controller;
-import fr.organizee.model.Contact;
import fr.organizee.model.Menu;
import fr.organizee.repository.MenuRepository;
import org.springframework.beans.factory.annotation.Autowired;
@@ -21,8 +20,9 @@ public class MenuController {
@Autowired
private MenuRepository menuRepository;
+ //Récupère les infos d'un menu par son ID
@GetMapping(value = "/{id}")
- @PreAuthorize("hasRole('ROLE_PARENT') or hasRole('ROLE_ENFANT')")
+ //@PreAuthorize("hasRole('ROLE_PARENT') or hasRole('ROLE_ENFANT')")
public ResponseEntity> findById(@PathVariable int id){
Optional
\ No newline at end of file
diff --git a/src/main/java/fr/organizee/model/Contact.java b/src/main/java/fr/organizee/model/Contact.java
index 826b2db..25b2d2d 100644
--- a/src/main/java/fr/organizee/model/Contact.java
+++ b/src/main/java/fr/organizee/model/Contact.java
@@ -11,6 +11,7 @@ public class Contact {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
+ private String couleur;
private String nom;
private String prenom;
private String telephone;
@@ -18,14 +19,15 @@ public class Contact {
private String adresse;
private LocalDate dateNaissance;
@ManyToOne
- @JoinColumn(name="TEAM_ID")
- @JsonIgnoreProperties({"contact","membre"})
+ @JoinColumn(name = "TEAM_ID")
+ @JsonIgnoreProperties({"contact", "membre"})
private Team team;
public Contact() {
}
- public Contact(String nom, String prenom, String telephone, String email, String adresse, LocalDate dateNaissance, Team team) {
+ public Contact(String couleur, String nom, String prenom, String telephone, String email, String adresse, LocalDate dateNaissance, Team team) {
+ this.couleur = couleur;
this.nom = nom;
this.prenom = prenom;
this.telephone = telephone;
@@ -43,6 +45,14 @@ public class Contact {
this.id = id;
}
+ public String getCouleur() {
+ return couleur;
+ }
+
+ public void setCouleur(String couleur) {
+ this.couleur = couleur;
+ }
+
public String getNom() {
return nom;
}
@@ -94,6 +104,7 @@ public class Contact {
public Team getTeam() {
return team;
}
+
public void setTeam(Team team) {
this.team = team;
}
@@ -102,6 +113,7 @@ public class Contact {
public String toString() {
return "Contact{" +
"id=" + id +
+ ", couleur='" + couleur + '\'' +
", nom='" + nom + '\'' +
", prenom='" + prenom + '\'' +
", telephone='" + telephone + '\'' +
From eb7b7777ec8b3a755b31784f947825923a4f8589 Mon Sep 17 00:00:00 2001
From: HarmandI
Date: Thu, 17 Feb 2022 11:38:46 +0100
Subject: [PATCH 09/11] update tache
---
src/main/java/fr/organizee/controller/TacheController.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/main/java/fr/organizee/controller/TacheController.java b/src/main/java/fr/organizee/controller/TacheController.java
index 82ce274..58e5ccc 100644
--- a/src/main/java/fr/organizee/controller/TacheController.java
+++ b/src/main/java/fr/organizee/controller/TacheController.java
@@ -77,11 +77,14 @@ public class TacheController {
return ResponseEntity.status(HttpStatus.CREATED).body(resultTache);
}
- //Met a jour les informations d'une date avec son ID
+ //Met a jour les informations d'une tache avec son ID
@PutMapping("/update/{id}")
public ResponseEntity> updateTache(@RequestBody Tache tache, @PathVariable Integer id) throws Exception {
Tache resultTache = null;
try {
+ TodoList todolist=new TodoList();
+ todolist.setId(tacheRepo.findById(tache.getId()).get().getTodolist().getId());
+ tache.setTodolist(todolist);
resultTache = tacheRepo.save(tache);
} catch (Exception e) {
From 9c72f95494b2d845fc6f0d5076a9ce9941e4d1b9 Mon Sep 17 00:00:00 2001
From: Blandine Bajard <83599148+BlandineBajard@users.noreply.github.com>
Date: Thu, 17 Feb 2022 11:42:52 +0100
Subject: [PATCH 10/11] addMenu
---
.../organizee/controller/MenuController.java | 8 ++++++--
src/main/java/fr/organizee/model/Menu.java | 19 +++++++++----------
.../organizee/repository/MenuRepository.java | 1 +
3 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/src/main/java/fr/organizee/controller/MenuController.java b/src/main/java/fr/organizee/controller/MenuController.java
index b7db085..0ea98e3 100644
--- a/src/main/java/fr/organizee/controller/MenuController.java
+++ b/src/main/java/fr/organizee/controller/MenuController.java
@@ -1,6 +1,7 @@
package fr.organizee.controller;
import fr.organizee.model.Menu;
+import fr.organizee.model.Team;
import fr.organizee.repository.MenuRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
@@ -49,11 +50,14 @@ public class MenuController {
}
//Ajoute un nouveau menu
- @PostMapping(value="/add")
+ @PostMapping(value="/add/{team_id}", produces="application/json", consumes= "application/json")
//@PreAuthorize("hasRole('ROLE_PARENT') or hasRole('ROLE_ENFANT')")
- public ResponseEntity> addMenu(@RequestBody Menu menu){
+ public ResponseEntity> addMenu(@RequestBody Menu menu, @PathVariable Integer team_id){
Menu resultMenu = null;
try {
+ Team team=new Team();
+ team.setId(team_id);
+ menu.setTeam(team);
resultMenu = menuRepository.saveAndFlush(menu);
} catch (Exception e) {
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage());
diff --git a/src/main/java/fr/organizee/model/Menu.java b/src/main/java/fr/organizee/model/Menu.java
index dcc5cb0..22a1ab1 100644
--- a/src/main/java/fr/organizee/model/Menu.java
+++ b/src/main/java/fr/organizee/model/Menu.java
@@ -12,7 +12,7 @@ public class Menu {
private int id;
private String libelle;
private LocalDate dateMenu;
- private int validationProposition;
+ // private int validationProposition;
@ManyToOne
@JoinColumn(name="TEAM_ID")
@JsonIgnoreProperties({"menu","membre"})
@@ -21,10 +21,10 @@ public class Menu {
public Menu() {
}
- public Menu(String libelle, LocalDate dateMenu, int validationProposition, Team team) {
+ public Menu(String libelle, LocalDate dateMenu, Team team) {
this.libelle = libelle;
this.dateMenu = dateMenu;
- this.validationProposition=validationProposition;
+ //this.validationProposition=validationProposition;
this.team = team;
}
@@ -52,13 +52,13 @@ public class Menu {
this.dateMenu = dateMenu;
}
- public int getValidationProposition() {
- return validationProposition;
- }
+ // public int getValidationProposition() {
+ // return validationProposition;
+ //}
- public void setValidationProposition(int validationProposition) {
- this.validationProposition = validationProposition;
- }
+ //public void setValidationProposition(int validationProposition) {
+ // this.validationProposition = validationProposition;
+ // }
public Team getTeam() {
return team;
@@ -74,7 +74,6 @@ public class Menu {
"id=" + id +
", libelle='" + libelle + '\'' +
", dateMenu=" + dateMenu +
- ", validationProposition=" + validationProposition +
", team=" + team +
'}';
}
diff --git a/src/main/java/fr/organizee/repository/MenuRepository.java b/src/main/java/fr/organizee/repository/MenuRepository.java
index 1f22d7d..7c5d0cb 100644
--- a/src/main/java/fr/organizee/repository/MenuRepository.java
+++ b/src/main/java/fr/organizee/repository/MenuRepository.java
@@ -14,4 +14,5 @@ public interface MenuRepository extends JpaRepository {
@Query(value = "select * from menu where team_id = :team_id", nativeQuery = true)
List FindMenusByTeam(@Param("team_id") int team_id);
+
}
From 34722797eea8cb3de5cdcf4c531302f9fdbc171a Mon Sep 17 00:00:00 2001
From: AlineRinquin
Date: Thu, 17 Feb 2022 14:40:45 +0100
Subject: [PATCH 11/11] re push pull du projet avec les modfs
---
.../fr/organizee/{ => dto}/controller/ContactController.java | 2 +-
.../fr/organizee/{ => dto}/controller/EvenementController.java | 2 +-
.../java/fr/organizee/{ => dto}/controller/MailController.java | 2 +-
.../fr/organizee/{ => dto}/controller/MembreController.java | 2 +-
.../java/fr/organizee/{ => dto}/controller/MenuController.java | 2 +-
.../java/fr/organizee/{ => dto}/controller/TacheController.java | 2 +-
.../java/fr/organizee/{ => dto}/controller/TeamController.java | 2 +-
.../fr/organizee/{ => dto}/controller/TodoListController.java | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
rename src/main/java/fr/organizee/{ => dto}/controller/ContactController.java (98%)
rename src/main/java/fr/organizee/{ => dto}/controller/EvenementController.java (98%)
rename src/main/java/fr/organizee/{ => dto}/controller/MailController.java (97%)
rename src/main/java/fr/organizee/{ => dto}/controller/MembreController.java (99%)
rename src/main/java/fr/organizee/{ => dto}/controller/MenuController.java (98%)
rename src/main/java/fr/organizee/{ => dto}/controller/TacheController.java (99%)
rename src/main/java/fr/organizee/{ => dto}/controller/TeamController.java (98%)
rename src/main/java/fr/organizee/{ => dto}/controller/TodoListController.java (98%)
diff --git a/src/main/java/fr/organizee/controller/ContactController.java b/src/main/java/fr/organizee/dto/controller/ContactController.java
similarity index 98%
rename from src/main/java/fr/organizee/controller/ContactController.java
rename to src/main/java/fr/organizee/dto/controller/ContactController.java
index e93e926..e9eeacc 100644
--- a/src/main/java/fr/organizee/controller/ContactController.java
+++ b/src/main/java/fr/organizee/dto/controller/ContactController.java
@@ -1,4 +1,4 @@
-package fr.organizee.controller;
+package fr.organizee.dto.controller;
import fr.organizee.model.Contact;
import fr.organizee.repository.ContactRepository;
diff --git a/src/main/java/fr/organizee/controller/EvenementController.java b/src/main/java/fr/organizee/dto/controller/EvenementController.java
similarity index 98%
rename from src/main/java/fr/organizee/controller/EvenementController.java
rename to src/main/java/fr/organizee/dto/controller/EvenementController.java
index f6a32a8..c1a3582 100644
--- a/src/main/java/fr/organizee/controller/EvenementController.java
+++ b/src/main/java/fr/organizee/dto/controller/EvenementController.java
@@ -1,4 +1,4 @@
-package fr.organizee.controller;
+package fr.organizee.dto.controller;
import fr.organizee.model.Evenement;
import fr.organizee.model.Menu;
diff --git a/src/main/java/fr/organizee/controller/MailController.java b/src/main/java/fr/organizee/dto/controller/MailController.java
similarity index 97%
rename from src/main/java/fr/organizee/controller/MailController.java
rename to src/main/java/fr/organizee/dto/controller/MailController.java
index 3543668..e89b43f 100644
--- a/src/main/java/fr/organizee/controller/MailController.java
+++ b/src/main/java/fr/organizee/dto/controller/MailController.java
@@ -1,4 +1,4 @@
-package fr.organizee.controller;
+package fr.organizee.dto.controller;
import fr.organizee.model.Mail;
import fr.organizee.service.SendMailService;
diff --git a/src/main/java/fr/organizee/controller/MembreController.java b/src/main/java/fr/organizee/dto/controller/MembreController.java
similarity index 99%
rename from src/main/java/fr/organizee/controller/MembreController.java
rename to src/main/java/fr/organizee/dto/controller/MembreController.java
index 93df3d8..5db618c 100644
--- a/src/main/java/fr/organizee/controller/MembreController.java
+++ b/src/main/java/fr/organizee/dto/controller/MembreController.java
@@ -1,4 +1,4 @@
-package fr.organizee.controller;
+package fr.organizee.dto.controller;
import fr.organizee.dto.JsonWebToken;
import fr.organizee.dto.MembreDto;
diff --git a/src/main/java/fr/organizee/controller/MenuController.java b/src/main/java/fr/organizee/dto/controller/MenuController.java
similarity index 98%
rename from src/main/java/fr/organizee/controller/MenuController.java
rename to src/main/java/fr/organizee/dto/controller/MenuController.java
index 0ea98e3..c0b5c3b 100644
--- a/src/main/java/fr/organizee/controller/MenuController.java
+++ b/src/main/java/fr/organizee/dto/controller/MenuController.java
@@ -1,4 +1,4 @@
-package fr.organizee.controller;
+package fr.organizee.dto.controller;
import fr.organizee.model.Menu;
import fr.organizee.model.Team;
diff --git a/src/main/java/fr/organizee/controller/TacheController.java b/src/main/java/fr/organizee/dto/controller/TacheController.java
similarity index 99%
rename from src/main/java/fr/organizee/controller/TacheController.java
rename to src/main/java/fr/organizee/dto/controller/TacheController.java
index 58e5ccc..224dd14 100644
--- a/src/main/java/fr/organizee/controller/TacheController.java
+++ b/src/main/java/fr/organizee/dto/controller/TacheController.java
@@ -1,4 +1,4 @@
-package fr.organizee.controller;
+package fr.organizee.dto.controller;
import fr.organizee.model.Tache;
import fr.organizee.model.TodoList;
diff --git a/src/main/java/fr/organizee/controller/TeamController.java b/src/main/java/fr/organizee/dto/controller/TeamController.java
similarity index 98%
rename from src/main/java/fr/organizee/controller/TeamController.java
rename to src/main/java/fr/organizee/dto/controller/TeamController.java
index 1d96ae5..67f7907 100644
--- a/src/main/java/fr/organizee/controller/TeamController.java
+++ b/src/main/java/fr/organizee/dto/controller/TeamController.java
@@ -1,4 +1,4 @@
-package fr.organizee.controller;
+package fr.organizee.dto.controller;
import fr.organizee.model.Team;
import fr.organizee.repository.TeamRepository;
diff --git a/src/main/java/fr/organizee/controller/TodoListController.java b/src/main/java/fr/organizee/dto/controller/TodoListController.java
similarity index 98%
rename from src/main/java/fr/organizee/controller/TodoListController.java
rename to src/main/java/fr/organizee/dto/controller/TodoListController.java
index 747eff9..f166cf3 100644
--- a/src/main/java/fr/organizee/controller/TodoListController.java
+++ b/src/main/java/fr/organizee/dto/controller/TodoListController.java
@@ -1,4 +1,4 @@
-package fr.organizee.controller;
+package fr.organizee.dto.controller;
import fr.organizee.model.TodoList;
import fr.organizee.repository.TodoListRepository;