-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Refactor] 멘티 신청 후 멘토가 수락할 때 멘티에게 궁금한 점을 기입하도록 수정한다 (#162)
* feat: 멘티 신청 -> 멘토 수락 시 멘티에게 궁금한 점 필드 추가 * refactor: 멘토가 멘티에게 궁금한 점 관련 필드 스펙 추가
- Loading branch information
Showing
13 changed files
with
114 additions
and
52 deletions.
There are no files selected for viewing
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
17 changes: 15 additions & 2 deletions
17
...ava/com/koddy/server/coffeechat/presentation/request/ApproveAppliedCoffeeChatRequest.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,16 +1,29 @@ | ||
package com.koddy.server.coffeechat.presentation.request; | ||
|
||
import com.koddy.server.coffeechat.application.usecase.command.ApproveAppliedCoffeeChatCommand; | ||
import com.koddy.server.coffeechat.domain.model.Strategy; | ||
import jakarta.validation.constraints.NotBlank; | ||
|
||
public record ApproveAppliedCoffeeChatRequest( | ||
@NotBlank(message = "멘티에게 궁금한 점은 필수입니다.") | ||
String question, | ||
|
||
@NotBlank(message = "멘토링 진행 방식은 필수입니다.") | ||
String chatType, | ||
|
||
@NotBlank(message = "멘토링 진행 방식에 대한 URL이나 메신저 ID는 필수입니다.") | ||
String chatValue | ||
) { | ||
public Strategy.Type toStrategyType() { | ||
return Strategy.Type.from(chatType); | ||
public ApproveAppliedCoffeeChatCommand toCommand( | ||
final long mentorId, | ||
final long coffeeChatId | ||
) { | ||
return new ApproveAppliedCoffeeChatCommand( | ||
mentorId, | ||
coffeeChatId, | ||
question, | ||
Strategy.Type.from(chatType), | ||
chatValue | ||
); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...java/com/koddy/server/coffeechat/presentation/request/RejectAppliedCoffeeChatRequest.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,9 +1,20 @@ | ||
package com.koddy.server.coffeechat.presentation.request; | ||
|
||
import com.koddy.server.coffeechat.application.usecase.command.RejectAppliedCoffeeChatCommand; | ||
import jakarta.validation.constraints.NotBlank; | ||
|
||
public record RejectAppliedCoffeeChatRequest( | ||
@NotBlank(message = "거절 사유는 필수입니다.") | ||
String rejectReason | ||
) { | ||
public RejectAppliedCoffeeChatCommand toCommand( | ||
final long mentorId, | ||
final long coffeeChatId | ||
) { | ||
return new RejectAppliedCoffeeChatCommand( | ||
mentorId, | ||
coffeeChatId, | ||
rejectReason | ||
); | ||
} | ||
} |
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.