From 1be5bb95cadea994444b08a6929aaf29861047bf Mon Sep 17 00:00:00 2001 From: kseysh Date: Fri, 31 May 2024 23:10:36 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20-=20#153=20dummy=20api=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=ED=81=B4=EB=9E=98=EC=8A=A4=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sopt/org/hmh/domain/dummy/DummyApp.java | 14 --------- .../hmh/domain/dummy/DummyAppController.java | 21 ------------- .../domain/dummy/DummyAppListResponse.java | 17 ---------- .../org/hmh/domain/dummy/DummyAppSuccess.java | 31 ------------------- 4 files changed, 83 deletions(-) delete mode 100644 src/main/java/sopt/org/hmh/domain/dummy/DummyApp.java delete mode 100644 src/main/java/sopt/org/hmh/domain/dummy/DummyAppController.java delete mode 100644 src/main/java/sopt/org/hmh/domain/dummy/DummyAppListResponse.java delete mode 100644 src/main/java/sopt/org/hmh/domain/dummy/DummyAppSuccess.java diff --git a/src/main/java/sopt/org/hmh/domain/dummy/DummyApp.java b/src/main/java/sopt/org/hmh/domain/dummy/DummyApp.java deleted file mode 100644 index f6ff4f55..00000000 --- a/src/main/java/sopt/org/hmh/domain/dummy/DummyApp.java +++ /dev/null @@ -1,14 +0,0 @@ -package sopt.org.hmh.domain.dummy; - -import lombok.AllArgsConstructor; -import lombok.Getter; - -@Deprecated -@Getter -@AllArgsConstructor -public class DummyApp { - String appName; - String appImageUrl; - Long goalTime; - Long usageTime; -} diff --git a/src/main/java/sopt/org/hmh/domain/dummy/DummyAppController.java b/src/main/java/sopt/org/hmh/domain/dummy/DummyAppController.java deleted file mode 100644 index 6ffeedf8..00000000 --- a/src/main/java/sopt/org/hmh/domain/dummy/DummyAppController.java +++ /dev/null @@ -1,21 +0,0 @@ -package sopt.org.hmh.domain.dummy; - -import lombok.RequiredArgsConstructor; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; -import sopt.org.hmh.global.common.response.BaseResponse; - -@RestController -@RequiredArgsConstructor -@RequestMapping("/api/v1/dummy") -@Deprecated -public class DummyAppController { - @GetMapping("/app") - public ResponseEntity> orderModifyDailyChallenge() { - return ResponseEntity - .status(DummyAppSuccess.GET_DUMMY_SUCCESS.getHttpStatus()) - .body(BaseResponse.success(DummyAppSuccess.GET_DUMMY_SUCCESS, DummyAppListResponse.of())); - } -} diff --git a/src/main/java/sopt/org/hmh/domain/dummy/DummyAppListResponse.java b/src/main/java/sopt/org/hmh/domain/dummy/DummyAppListResponse.java deleted file mode 100644 index 40a92324..00000000 --- a/src/main/java/sopt/org/hmh/domain/dummy/DummyAppListResponse.java +++ /dev/null @@ -1,17 +0,0 @@ -package sopt.org.hmh.domain.dummy; - -import java.util.ArrayList; -import java.util.List; - -@Deprecated -public record DummyAppListResponse( - List apps -) { - public static DummyAppListResponse of() { - List dummyAppList = new ArrayList<>(); - dummyAppList.add(new DummyApp("Netflix","https://github.com/Team-HMH/HMH-Server/assets/69035864/dd068b83-641a-4bff-b4f5-381ea6e04d44",2_400_000L,1_320_000L)); - dummyAppList.add(new DummyApp("Instagram","https://github.com/Team-HMH/HMH-Server/assets/69035864/bd572377-9dd9-47e7-a9f4-9efbbe66cd2e",5_400_000L,2_880_000L)); - dummyAppList.add(new DummyApp("YouTube","https://github.com/Team-HMH/HMH-Server/assets/69035864/8afa60c0-bf1d-4ff0-9b50-4d1558a71f0a",3_300_000L,900_000L)); - return new DummyAppListResponse(dummyAppList); - } -} diff --git a/src/main/java/sopt/org/hmh/domain/dummy/DummyAppSuccess.java b/src/main/java/sopt/org/hmh/domain/dummy/DummyAppSuccess.java deleted file mode 100644 index 49f1a2c4..00000000 --- a/src/main/java/sopt/org/hmh/domain/dummy/DummyAppSuccess.java +++ /dev/null @@ -1,31 +0,0 @@ -package sopt.org.hmh.domain.dummy; - -import lombok.AllArgsConstructor; -import org.springframework.http.HttpStatus; -import sopt.org.hmh.global.common.exception.base.SuccessBase; - -@AllArgsConstructor -@Deprecated -public enum DummyAppSuccess implements SuccessBase { - - GET_DUMMY_SUCCESS(HttpStatus.OK, "더미 데이터 가져오기에 성공하였습니다."), - ; - - private final HttpStatus status; - private final String successMessage; - - @Override - public int getHttpStatusCode() { - return this.status.value(); - } - - @Override - public HttpStatus getHttpStatus() { - return this.status; - } - - @Override - public String getSuccessMessage() { - return this.successMessage; - } -}