From 7b1f056e0189c4f9f131cbec1a595c4813f965ed Mon Sep 17 00:00:00 2001 From: googoo9918 <102513932+googoo9918@users.noreply.github.com> Date: Tue, 4 Jun 2024 19:02:41 +0900 Subject: [PATCH 1/6] Update README.md --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9b77674..411e151 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,14 @@ # 큐터디 -![image](https://github.com/googoo9918/TIL/assets/102513932/b86bc53f-3182-41b0-b975-264cdb8a64dd) -![Qtudy_image](https://github.com/googoo9918/TIL/assets/102513932/87e0447f-3430-4a94-8f07-19fe536c1527) ![KakaoTalk_20240521_211608567](https://github.com/googoo9918/TIL/assets/102513932/4e44a605-5df8-4480-aa0d-e16be990fb3c) +![KakaoTalk_20240602_141838902](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/3c1068a4-071c-4e8e-80ac-c7bd7718f7fb) +![KakaoTalk_20240602_141838902_01](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/ee8cf8cf-5e42-408f-8d73-2958c4fb967f) +![KakaoTalk_20240602_141838902_02](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/31774b3a-e467-4767-93c4-1c727a496c4b) +![KakaoTalk_20240602_141838902_03](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/ba505ecb-75f9-493f-bb07-2c83ac63c904) +![KakaoTalk_20240602_141838902_04](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/7fd36efc-7989-4e78-a29a-43f1085e0caf) +![KakaoTalk_20240602_141838902_05](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/b6753dda-f3c3-4713-84a4-dac04f38033c) +![KakaoTalk_20240602_141838902_07](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/bb6c2985-9547-43cf-91e0-e3e22fffbba1) + + **"큐터디"는 강력한 학습 도구 서비스입니다** - 배포링크 : [큐터디](https://www.qtudy.com) @@ -76,5 +83,4 @@ ### Software Architecture - ![소프트웨어 아키텍쳐 drawio](https://github.com/googoo9918/TIL/assets/102513932/6c6eb670-226f-4ec0-9550-c990b8c8292d) ### API 명세 -- [API 명세서1](https://documenter.getpostman.com/view/23682054/2s9YeD8t2S) -- [API 명세서2](https://documenter.getpostman.com/view/31108336/2s9YeEaroJ) +- [API 명세](https://api.qtudy.com/swagger-ui/index.html) From 123ce701ac662d9bd38124c756ea8d9ac42230f7 Mon Sep 17 00:00:00 2001 From: googoo9918 <102513932+googoo9918@users.noreply.github.com> Date: Tue, 4 Jun 2024 23:26:49 +0900 Subject: [PATCH 2/6] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 411e151..96e8813 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # 큐터디 ![KakaoTalk_20240521_211608567](https://github.com/googoo9918/TIL/assets/102513932/4e44a605-5df8-4480-aa0d-e16be990fb3c) -![KakaoTalk_20240602_141838902](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/3c1068a4-071c-4e8e-80ac-c7bd7718f7fb) -![KakaoTalk_20240602_141838902_01](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/ee8cf8cf-5e42-408f-8d73-2958c4fb967f) -![KakaoTalk_20240602_141838902_02](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/31774b3a-e467-4767-93c4-1c727a496c4b) -![KakaoTalk_20240602_141838902_03](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/ba505ecb-75f9-493f-bb07-2c83ac63c904) -![KakaoTalk_20240602_141838902_04](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/7fd36efc-7989-4e78-a29a-43f1085e0caf) -![KakaoTalk_20240602_141838902_05](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/b6753dda-f3c3-4713-84a4-dac04f38033c) -![KakaoTalk_20240602_141838902_07](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/bb6c2985-9547-43cf-91e0-e3e22fffbba1) +![KakaoTalk_20240604_212902262](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/c65eb1f1-4c16-4d64-8806-66ea2c2b53ef) +![KakaoTalk_20240604_212902262_01](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/209a7e74-7f27-4239-91b4-c8f6dda58558) +![KakaoTalk_20240604_212902262_02](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/c7f4e20b-eb0e-49d1-8f5a-4f24641c9898) +![KakaoTalk_20240604_212902262_03](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/d1fe6d08-6a6e-48bd-b0b8-b96bda0143db) +![KakaoTalk_20240604_212902262_04](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/e150be69-f40c-4ad9-b30c-757d818e5937) +![KakaoTalk_20240604_212902262_05](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/31460b8b-a42a-48f7-9914-b30ccdc9b3a1) +![KakaoTalk_20240604_212902262_06](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/97186d96-fa64-4f30-8721-874d6ba56fc0) **"큐터디"는 강력한 학습 도구 서비스입니다** From 5d1493f12ff3d7afaaed4208d4e5eaec1ff45f43 Mon Sep 17 00:00:00 2001 From: googoo9918 <102513932+googoo9918@users.noreply.github.com> Date: Tue, 4 Jun 2024 23:27:52 +0900 Subject: [PATCH 3/6] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 96e8813..6340932 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ ![KakaoTalk_20240604_212902262_03](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/d1fe6d08-6a6e-48bd-b0b8-b96bda0143db) ![KakaoTalk_20240604_212902262_04](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/e150be69-f40c-4ad9-b30c-757d818e5937) ![KakaoTalk_20240604_212902262_05](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/31460b8b-a42a-48f7-9914-b30ccdc9b3a1) -![KakaoTalk_20240604_212902262_06](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/97186d96-fa64-4f30-8721-874d6ba56fc0) +![KakaoTalk_20240604_212902262_06](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/362be302-461a-450e-97af-291481289a41) +![KakaoTalk_20240604_212902262_07](https://github.com/capstone-five-ai/Qtudy-BE/assets/102513932/0db18fae-24d7-444a-858f-a4d43c2a1e36) **"큐터디"는 강력한 학습 도구 서비스입니다** From 5d713fb0674e2f4ec2c20401bfcb41b5055bb97e Mon Sep 17 00:00:00 2001 From: tioon <59834576+tioon@users.noreply.github.com> Date: Mon, 1 Jul 2024 12:39:55 +0900 Subject: [PATCH 4/6] =?UTF-8?q?Feat:=20Spring=20Actuator=20=EC=9D=98?= =?UTF-8?q?=EC=A1=B4=EC=84=B1=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index 90dbf9e..22df6a4 100644 --- a/build.gradle +++ b/build.gradle @@ -49,6 +49,9 @@ dependencies { implementation 'org.mapstruct:mapstruct:1.5.3.Final' annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.3.Final' + // Spring Boot Actuator + implementation 'org.springframework.boot:spring-boot-starter-actuator' + // GPT 스크립트 테스트 편의성을 위해 추가 testAnnotationProcessor 'org.projectlombok:lombok' testImplementation 'com.theokanning.openai-gpt3-java:service:0.18.2' From 076f526239bbf1ae95a6e0e58a7adeffc4946a1e Mon Sep 17 00:00:00 2001 From: yujamint Date: Thu, 11 Jul 2024 01:28:05 +0900 Subject: [PATCH 5/6] =?UTF-8?q?fix:=20=EC=B9=B4=ED=85=8C=EA=B3=A0=EB=A6=AC?= =?UTF-8?q?=20=EB=AC=B8=EC=A0=9C=20=EC=BA=90=EC=8B=9C=20=EC=A0=9C=EA=B1=B0?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../categorizedproblem/service/CategorizedProblemService.java | 4 ++-- .../categorizedsummary/service/CategorizedSummaryService.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/app/domain/categorizedproblem/service/CategorizedProblemService.java b/src/main/java/com/app/domain/categorizedproblem/service/CategorizedProblemService.java index a205b51..dc53f67 100644 --- a/src/main/java/com/app/domain/categorizedproblem/service/CategorizedProblemService.java +++ b/src/main/java/com/app/domain/categorizedproblem/service/CategorizedProblemService.java @@ -230,7 +230,7 @@ public MemberSavedSummaryDto.pdfResponse createCategorizedProblemsPdf(Long categ } - @CacheEvict(value = "categorizedProblem", key = "#categoryId") + @CacheEvict(value = "categorizedProblem", key = "#categorizedProblem.category.categoryId") public CategorizedProblem updateCategorizedProblem(Long categorizedProblemId, MemberSavedProblemDto.Patch problemPatchDto) { CategorizedProblem categorizedProblem = findVerifiedCategorizedProblemByCategorizedProblemId(categorizedProblemId); problemService.updateProblem( @@ -247,7 +247,7 @@ public Page findCategorizedProblemsByCategoryId(Long categor return categorizedProblemRepository.findByCategoryCategoryId(categoryId, pageRequest); } - @CacheEvict(value = "categorizedProblem", key = "#categoryId") + @CacheEvict(value = "categorizedProblem", key = "#categorizedProblem.category.categoryId") public void deleteCategorizedProblem(Long categorizedProblemID){ CategorizedProblem categorizedProblem = findVerifiedCategorizedProblemByCategorizedProblemId(categorizedProblemID); categorizedProblemRepository.deleteById(categorizedProblemID); diff --git a/src/main/java/com/app/domain/categorizedsummary/service/CategorizedSummaryService.java b/src/main/java/com/app/domain/categorizedsummary/service/CategorizedSummaryService.java index 54e068c..bcab358 100644 --- a/src/main/java/com/app/domain/categorizedsummary/service/CategorizedSummaryService.java +++ b/src/main/java/com/app/domain/categorizedsummary/service/CategorizedSummaryService.java @@ -76,7 +76,7 @@ public SummaryDto.pdfResponse createSummaryPdf(Long categorizedSummaryId) throws return summaryService.createSummaryPdf(summaryId); } - @CacheEvict(value = "categorizedSummary", key = "#categoryId") + @CacheEvict(value = "categorizedSummary", key = "#categorizedSummary.category.categoryId") public CategorizedSummary updateCategorizedSummary(Long categorizedSummaryId, SummaryDto.Patch summaryPatchDto) { CategorizedSummary categorizedSummary = findVerifiedCategorizedSummaryByCategorizedSummaryId(categorizedSummaryId); summaryService.updateSummary( @@ -87,7 +87,7 @@ public CategorizedSummary updateCategorizedSummary(Long categorizedSummaryId, Su return categorizedSummaryRepository.save(categorizedSummary); } - @CacheEvict(value = "categorizedSummary", key = "#categoryId") + @CacheEvict(value = "categorizedSummary", key = "#categorizedSummary.category.categoryId") public void deleteCategorizedSummary(Long categorizedSummaryId) { CategorizedSummary categorizedSummary = findVerifiedCategorizedSummaryByCategorizedSummaryId(categorizedSummaryId); From a62b41ebc8b4d71c698ae66c3a100580e7b5a7ca Mon Sep 17 00:00:00 2001 From: yujamint Date: Thu, 11 Jul 2024 01:31:46 +0900 Subject: [PATCH 6/6] =?UTF-8?q?fix:=20=EC=B9=B4=ED=85=8C=EA=B3=A0=EB=A6=AC?= =?UTF-8?q?=20=EB=AC=B8=EC=A0=9C=20=EC=BA=90=EC=8B=9C=20=EC=9E=84=EC=8B=9C?= =?UTF-8?q?=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/CategorizedProblemService.java | 6 +----- .../service/CategorizedSummaryService.java | 5 +---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/app/domain/categorizedproblem/service/CategorizedProblemService.java b/src/main/java/com/app/domain/categorizedproblem/service/CategorizedProblemService.java index dc53f67..efae30a 100644 --- a/src/main/java/com/app/domain/categorizedproblem/service/CategorizedProblemService.java +++ b/src/main/java/com/app/domain/categorizedproblem/service/CategorizedProblemService.java @@ -46,7 +46,6 @@ public class CategorizedProblemService { private final ProblemService problemService; - @CacheEvict(value = "categorizedProblem", key = "#categoryId") public CategorizedProblem createCategorizedProblem(Long categoryId, Long problemId) { checkForDuplicateCategorizedProblem(categoryId, problemId); @@ -229,8 +228,6 @@ public MemberSavedSummaryDto.pdfResponse createCategorizedProblemsPdf(Long categ } } - - @CacheEvict(value = "categorizedProblem", key = "#categorizedProblem.category.categoryId") public CategorizedProblem updateCategorizedProblem(Long categorizedProblemId, MemberSavedProblemDto.Patch problemPatchDto) { CategorizedProblem categorizedProblem = findVerifiedCategorizedProblemByCategorizedProblemId(categorizedProblemId); problemService.updateProblem( @@ -241,13 +238,12 @@ public CategorizedProblem updateCategorizedProblem(Long categorizedProblemId, Me } @Transactional(readOnly = true) - @Cacheable(value = "categorizedProblem", key = "#categoryId") +// @Cacheable(value = "categorizedProblem", key = "#categoryId") public Page findCategorizedProblemsByCategoryId(Long categoryId, int page, int size) { PageRequest pageRequest = PageRequest.of(page, size); return categorizedProblemRepository.findByCategoryCategoryId(categoryId, pageRequest); } - @CacheEvict(value = "categorizedProblem", key = "#categorizedProblem.category.categoryId") public void deleteCategorizedProblem(Long categorizedProblemID){ CategorizedProblem categorizedProblem = findVerifiedCategorizedProblemByCategorizedProblemId(categorizedProblemID); categorizedProblemRepository.deleteById(categorizedProblemID); diff --git a/src/main/java/com/app/domain/categorizedsummary/service/CategorizedSummaryService.java b/src/main/java/com/app/domain/categorizedsummary/service/CategorizedSummaryService.java index bcab358..d2f49f7 100644 --- a/src/main/java/com/app/domain/categorizedsummary/service/CategorizedSummaryService.java +++ b/src/main/java/com/app/domain/categorizedsummary/service/CategorizedSummaryService.java @@ -40,7 +40,6 @@ public class CategorizedSummaryService { private final SummaryRepository summaryRepository; - @CacheEvict(value = "categorizedSummary", key = "#categoryId") public CategorizedSummary createCategorizedSummary(Long categoryId, Long summaryId) { checkForDuplicateCategorizedProblem(categoryId, summaryId); @@ -76,7 +75,6 @@ public SummaryDto.pdfResponse createSummaryPdf(Long categorizedSummaryId) throws return summaryService.createSummaryPdf(summaryId); } - @CacheEvict(value = "categorizedSummary", key = "#categorizedSummary.category.categoryId") public CategorizedSummary updateCategorizedSummary(Long categorizedSummaryId, SummaryDto.Patch summaryPatchDto) { CategorizedSummary categorizedSummary = findVerifiedCategorizedSummaryByCategorizedSummaryId(categorizedSummaryId); summaryService.updateSummary( @@ -87,7 +85,6 @@ public CategorizedSummary updateCategorizedSummary(Long categorizedSummaryId, Su return categorizedSummaryRepository.save(categorizedSummary); } - @CacheEvict(value = "categorizedSummary", key = "#categorizedSummary.category.categoryId") public void deleteCategorizedSummary(Long categorizedSummaryId) { CategorizedSummary categorizedSummary = findVerifiedCategorizedSummaryByCategorizedSummaryId(categorizedSummaryId); @@ -110,7 +107,7 @@ public CategorizedSummary findVerifiedCategorizedSummaryByCategorizedSummaryId(L } @Transactional(readOnly = true) - @Cacheable(value = "categorizedSummary", key = "#categoryId") +// @Cacheable(value = "categorizedSummary", key = "#categoryId") public Page findCategorziedSummarysByCategoryId(Long categoryId, int page, int size) { PageRequest pageRequest = PageRequest.of(page, size); return categorizedSummaryRepository.findByCategoryCategoryId(categoryId, pageRequest);