From e01724ace4ac9e37dfda157dbbafcfbbba7af284 Mon Sep 17 00:00:00 2001 From: Amagasu Date: Thu, 5 Jun 2025 14:54:22 +0900 Subject: [PATCH] remove tobuysbuydto --- .../todoapp/controller/ToBuysController.java | 5 ++--- .../com/example/todoapp/dto/ToBuysBuyDTO.java | 20 ------------------- 2 files changed, 2 insertions(+), 23 deletions(-) delete mode 100644 backend/src/main/java/com/example/todoapp/dto/ToBuysBuyDTO.java diff --git a/backend/src/main/java/com/example/todoapp/controller/ToBuysController.java b/backend/src/main/java/com/example/todoapp/controller/ToBuysController.java index 54f643c..96c36e1 100644 --- a/backend/src/main/java/com/example/todoapp/controller/ToBuysController.java +++ b/backend/src/main/java/com/example/todoapp/controller/ToBuysController.java @@ -10,7 +10,6 @@ package com.example.todoapp.controller; import com.example.todoapp.dto.DeleteToBuyRequest; import com.example.todoapp.dto.ToBuyResponse; import com.example.todoapp.dto.ToBuysDTO; -import com.example.todoapp.dto.ToBuysBuyDTO; import com.example.todoapp.model.ToBuys; import com.example.todoapp.model.User; import com.example.todoapp.repository.UserRepository; @@ -142,8 +141,8 @@ public class ToBuysController { @PostMapping("/{id}") public ResponseEntity buyToBuys( Authentication authentication, - @PathVariable("id") ToBuysBuyDTO toBuysbuyDTO) { - toBuysService.buyToBuys(authentication.getName(), toBuysbuyDTO); + @PathVariable("id") ToBuysDTO toBuysDTO) { + toBuysService.buyToBuys(authentication.getName(), toBuysDTO); return ResponseEntity.ok().build(); } diff --git a/backend/src/main/java/com/example/todoapp/dto/ToBuysBuyDTO.java b/backend/src/main/java/com/example/todoapp/dto/ToBuysBuyDTO.java deleted file mode 100644 index 89a0fc1..0000000 --- a/backend/src/main/java/com/example/todoapp/dto/ToBuysBuyDTO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.example.todoapp.dto; - -import java.time.LocalDate; - -import lombok.Data; -/** - * カテゴリDTOクラス - * このクラスはタスクのカテゴリ情報を表します。 - * カテゴリは名前、色、所有ユーザーなどの情報を持ちます。 - * - */ - - @Data - public class ToBuysBuyDTO { - private int stuff_id; - private int price; - private LocalDate exp_date; - private LocalDate last_update; - private LocalDate buy_date; - } \ No newline at end of file