-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 로그인 한 사용자 조회 API 구현 * test: 인수 테스트 성공 케이스 작성 * refactor: restdocsConfig 변경 * test: 로그인된 사용자 조회 API mock mvc 테스트 진행 * refactor: 코드 리뷰 반영 * feat: request dto 생성 * test: 인수 테스트 작성 * test: 인수 테스트 수정 * feat: technical tag 이름으로 technical tag 찾는 기능 추가 * feat: supporter 와 technicalTag 로 supporterTechnicalTag 찾는 기능 구현 * refactor: supporter 와 technicalTag 로 supporterTechnicalTag 찾는 기능 제거 * feat: API 구현 * test: restdocs 테스트 구현 * refactor: submodule 변경 * refactor: submodule 수정 * refactor: Location 반환하도록 변경 * refactor: static 으로 된 메서드들 non-static 으로 변경 * feat: 서포터로 SupporterTechnicalTag 제거 기능 구현 * refactor: RunnerTechnicalTag nullable 하게 변경 * refactor: Batch delete 방식으로 데이터 삭제하도록 변경 * refactor: uri 매핑 형식 변경 * test: 공백 제거 * refactor: batch delete 시에 flush & clear * test: 오타 수정
- Loading branch information
Showing
26 changed files
with
741 additions
and
74 deletions.
There are no files selected for viewing
Submodule secret
updated
from b8a386 to c4577e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
backend/baton/src/docs/asciidoc/SupporterProfileUpdateApi.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
ifndef::snippets[] | ||
:snippets: ../../../build/generated-snippets | ||
endif::[] | ||
:doctype: investment | ||
:icons: font | ||
:source-highlighter: highlight.js | ||
:toc: left | ||
:toclevels: 2 | ||
:sectlinks: | ||
:operation-http-request-title: Example Request | ||
:operation-http-response-title: Example Response | ||
|
||
== *서포터 프로필 수정* | ||
|
||
=== *서포터 프로필 수정 API* | ||
|
||
==== *Http Request* | ||
include::{snippets}/../../build/generated-snippets/supporter-profile-update-api-test/update-supporter-profile/http-request.adoc[] | ||
|
||
==== *Http Request Headers* | ||
include::{snippets}/../../build/generated-snippets/supporter-profile-update-api-test/update-supporter-profile/request-headers.adoc[] | ||
|
||
==== *Http Request Body* | ||
include::{snippets}/../../build/generated-snippets/supporter-profile-update-api-test/update-supporter-profile/request-body.adoc[] | ||
|
||
==== *Http Response* | ||
include::{snippets}/../../build/generated-snippets/supporter-profile-update-api-test/update-supporter-profile/http-response.adoc[] | ||
|
||
==== *Http Response Headers* | ||
include::{snippets}/../../build/generated-snippets/supporter-profile-update-api-test/update-supporter-profile/response-headers.adoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 1 addition & 11 deletions
12
backend/baton/src/main/java/touch/baton/domain/common/response/ErrorResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
.../baton/src/main/java/touch/baton/domain/supporter/service/dto/SupporterUpdateRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package touch.baton.domain.supporter.service.dto; | ||
|
||
import touch.baton.domain.common.exception.validator.ValidNotNull; | ||
|
||
import java.util.List; | ||
|
||
import static touch.baton.domain.common.exception.ClientErrorCode.*; | ||
|
||
public record SupporterUpdateRequest(@ValidNotNull(clientErrorCode = NAME_IS_NULL) | ||
String name, | ||
@ValidNotNull(clientErrorCode = COMPANY_IS_NULL) | ||
String company, | ||
String introduction, | ||
@ValidNotNull(clientErrorCode = SUPPORTER_TECHNICAL_TAGS_ARE_NULL) | ||
List<String> technicalTags) { | ||
} |
15 changes: 15 additions & 0 deletions
15
...main/java/touch/baton/domain/technicaltag/repository/SupporterTechnicalTagRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package touch.baton.domain.technicaltag.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Modifying; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.query.Param; | ||
import touch.baton.domain.supporter.Supporter; | ||
import touch.baton.domain.technicaltag.SupporterTechnicalTag; | ||
|
||
public interface SupporterTechnicalTagRepository extends JpaRepository<SupporterTechnicalTag, Long> { | ||
|
||
@Modifying(clearAutomatically = true, flushAutomatically = true) | ||
@Query("DELETE FROM SupporterTechnicalTag st WHERE st.supporter = :supporter") | ||
int deleteBySupporter(@Param("supporter") final Supporter supporter); | ||
} |
5 changes: 5 additions & 0 deletions
5
...aton/src/main/java/touch/baton/domain/technicaltag/repository/TechnicalTagRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
package touch.baton.domain.technicaltag.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import touch.baton.domain.common.vo.TagName; | ||
import touch.baton.domain.technicaltag.TechnicalTag; | ||
|
||
import java.util.Optional; | ||
|
||
public interface TechnicalTagRepository extends JpaRepository<TechnicalTag, Long> { | ||
|
||
Optional<TechnicalTag> findByTagName(final TagName tagName); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.