Skip to content

Commit 139d02d

Browse files
committed
[Chore][jjaeroong]: 스웨거 PLANNING에서 PLAN으로 변경
1 parent a6a2103 commit 139d02d

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

src/main/java/stackpot/stackpot/pot/controller/PotController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class PotController {
3838
- potStatus: RECRUITING / ONGOING / COMPLETED
3939
- potStartDate, potEndDate: yyyy.MM 형식 (예: 2025.08)
4040
- potModeOfOperation: ONLINE / OFFLINE / HYBRID
41-
- Role: FRONTEND / BACKEND / DESIGN / PLANNING
41+
- Role: FRONTEND / BACKEND / DESIGN / PLAN
4242
""")
4343
@PostMapping
4444
public ResponseEntity<ApiResponse<PotResponseDto>> createPot(@RequestBody @Valid PotRequestDto requestDto) {

src/main/java/stackpot/stackpot/pot/dto/PotRecruitmentRequestDto.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package stackpot.stackpot.pot.dto;
22

3+
import io.swagger.v3.oas.annotations.media.Schema;
34
import lombok.Builder;
45
import lombok.Getter;
56
import lombok.Setter;
@@ -10,6 +11,8 @@
1011
@Builder
1112
public class PotRecruitmentRequestDto {
1213
@ValidRole
14+
@Schema(description = "모집 역할", example = "BACKEND")
1315
private String recruitmentRole;
16+
@Schema(description = "역할 별 모집 인원 수", example = "1")
1417
private Integer recruitmentCount;
1518
}

src/main/java/stackpot/stackpot/pot/service/potMember/PotMemberCommandServiceImpl.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ public List<PotMemberAppealResponseDto> addMembersToPot(Long potId, PotMemberReq
7878
}
7979

8080
// 생성자 PotMember는 이미 createPot 단계에서 저장됨 → 새로 만들지 말고 조회
81-
PotMember creatorPM = potMemberRepository
82-
.findByPotIdAndUserId(potId, potCreator.getId());
81+
PotMember creatorPM = potMemberRepository.findByPotIdAndUserId(potId, potCreator.getId());
82+
if (creatorPM == null) {
83+
throw new PotHandler(ErrorStatus.POT_MEMBER_NOT_FOUND);
84+
}
8385

8486
// 승인된 멤버들만 저장
8587
List<PotMember> savedMembers = potMemberRepository.saveAll(newMembers);
@@ -113,7 +115,7 @@ public void updateAppealContent(Long potId, String appealContent) {
113115
}
114116

115117
@Override
116-
@org.springframework.transaction.annotation.Transactional
118+
@Transactional
117119
public void removeMemberFromPot(Long potId) {
118120
User user = authService.getCurrentUser();
119121
Pot pot = potRepository.findById(potId)

0 commit comments

Comments
 (0)