-
Notifications
You must be signed in to change notification settings - Fork 0
✨ Feat: 동호회 가입 신청서 작성 기능 추가 및 신청 조회 API 개선 #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
14 changes: 14 additions & 0 deletions
14
...in/java/com/be/sportizebe/domain/notification/dto/request/JoinClubApplicationRequest.java
This file contains hidden or 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,14 @@ | ||
| package com.be.sportizebe.domain.notification.dto.request; | ||
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import jakarta.validation.constraints.NotBlank; | ||
| import jakarta.validation.constraints.Size; | ||
|
|
||
| @Schema(title = "JoinClubApplicationRequest DTO", description = "가입 신청 요청") | ||
| public record JoinClubApplicationRequest( | ||
| @NotBlank(message = "가입 신청서를 작성해주세요.") | ||
| @Schema(description = "가입 신청서", example = "안녕하세요! 열심히 활동하겠습니다.") | ||
| @Size(max = 200, message = "최대 200자 이하로 작성해주세요.") | ||
| String message | ||
| ) { | ||
| } |
This file contains hidden or 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
25 changes: 25 additions & 0 deletions
25
...va/com/be/sportizebe/domain/notification/dto/response/JoinClubRequestSummaryResponse.java
This file contains hidden or 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,25 @@ | ||
| package com.be.sportizebe.domain.notification.dto.response; | ||
|
|
||
| import com.be.sportizebe.domain.notification.entity.JoinClubRequest; | ||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import lombok.Builder; | ||
|
|
||
| @Builder | ||
| @Schema(title = "JoinClubRequestSummaryResponse DTO", description = "가입 신청 목록 응답 (요약)") | ||
| public record JoinClubRequestSummaryResponse( | ||
| @Schema(description = "가입 신청 ID") Long id, | ||
| @Schema(description = "신청자 ID") Long userId, | ||
| @Schema(description = "신청자 닉네임") String userNickname, | ||
| @Schema(description = "동호회 ID") Long clubId, | ||
| @Schema(description = "동호회 이름") String clubName | ||
| ) { | ||
| public static JoinClubRequestSummaryResponse from(JoinClubRequest request) { | ||
| return JoinClubRequestSummaryResponse.builder() | ||
| .id(request.getId()) | ||
| .userId(request.getUser().getId()) | ||
| .userNickname(request.getUser().getNickname()) | ||
| .clubId(request.getClub().getId()) | ||
| .clubName(request.getClub().getName()) | ||
| .build(); | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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
Submodule resources
updated
from 05d046 to b0b5ac
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
Repository: Sportize/be
Length of output: 39
🏁 Script executed:
Repository: Sportize/be
Length of output: 444
🏁 Script executed:
# Get repository structure overview ls -laRepository: Sportize/be
Length of output: 1171
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
# Check for Flyway or Liquibase configuration in gradle and properties files cat build.gradleRepository: Sportize/be
Length of output: 1969
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
Repository: Sportize/be
Length of output: 399
🏁 Script executed:
# Check the JoinClubRequest entity file to understand the current state cat -n src/main/java/com/be/sportizebe/domain/notification/entity/JoinClubRequest.javaRepository: Sportize/be
Length of output: 1917
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
Repository: Sportize/be
Length of output: 161
🏁 Script executed:
Repository: Sportize/be
Length of output: 444
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
# Check complete src directory structure tree src -L 5 --dirsfirstRepository: Sportize/be
Length of output: 277
🏁 Script executed:
Repository: Sportize/be
Length of output: 690
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
Repository: Sportize/be
Length of output: 6104
🏁 Script executed:
Repository: Sportize/be
Length of output: 37
🏁 Script executed:
# Check the current status of the file in git git show HEAD:src/main/java/com/be/sportizebe/domain/notification/entity/JoinClubRequest.javaRepository: Sportize/be
Length of output: 1518
🏁 Script executed:
# Check if there are any unstaged changes to this file git diff src/main/java/com/be/sportizebe/domain/notification/entity/JoinClubRequest.javaRepository: Sportize/be
Length of output: 37
데이터베이스 마이그레이션 프레임워크 및 스크립트가 누락되었습니다.
코드상
message필드는nullable = false로 정의되어 있으나, 프로젝트에 Flyway나 Liquibase 같은 마이그레이션 도구가 설정되어 있지 않으며 마이그레이션 스크립트도 없습니다.운영 데이터베이스에 기존
join_club_request데이터가 있을 경우, 스키마 변경 시 다음 순서로 진행해야 합니다:message컬럼 추가 → 기존 행 백필(DEFAULT ''등) →NOT NULL제약 적용🤖 Prompt for AI Agents