Skip to content

Commit e1f2238

Browse files
authored
Merge pull request #59 from GAT2025/refactor/#58
[Refactor/#58] 팀 수정 기능 팀 인재상 필드 추가
2 parents 78f9192 + e795e50 commit e1f2238

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/main/kotlin/gat_be/dev/domain/notification/service/FcmSendService.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class FcmSendService {
3434
.putData("deepLink", notification.deepLink)
3535
.putData("notificationId", notification.notificationId.toString())
3636
.putData("pk", notificationEvent.pk.toString())
37+
.putData("type", notification.type.title)
3738
.build()
3839

3940
try {

src/main/kotlin/gat_be/dev/domain/team/dto/request/TeamRequest.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ data class CreateTeamRequest(
4949
val contactInfo: String?,
5050

5151
@field:NotBlank(message = "팀의 인재상은 필수입니다.")
52+
@field:Size(max = 255, message = "인재상은 255자를 초과할 수 없습니다.")
5253
val idealTraits: String
5354
)
5455

@@ -80,7 +81,10 @@ data class UpdateTeamRequest(
8081
val portfolioLink2: String?,
8182

8283
@field:Size(max = 30, message = "팀장의 연락처 정보는 30자를 초과할 수 없습니다.")
83-
val contactInfo: String?
84+
val contactInfo: String?,
85+
86+
@field:Size(max = 255, message = "인재상은 255자를 초과할 수 없습니다.")
87+
val idealTraits: String?
8488
)
8589

8690
data class TeamRecommendRequest(

src/main/kotlin/gat_be/dev/domain/team/entity/Team.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ class Team(
8585
this.projectEndDate = endDate
8686
}
8787

88+
fun updateIdealTraits(idealTraits: String) { this.idealTraits = idealTraits }
89+
8890
fun ensureCanProcessApplication() {
8991
if (status != TeamStatus.RECRUITING) {
9092
throw GeneralException(ErrorStatus.CANNOT_PROCESS_WHEN_NOT_RECRUITING)

src/main/kotlin/gat_be/dev/domain/team/service/TeamService.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class TeamService(
9595
request.title?.let(::updateTitle)
9696
request.description?.let(::updateDescription)
9797
request.applicationDueDate?.let(::updateApplicationDueDate)
98+
request.idealTraits?.let(::updateIdealTraits)
9899
}
99100

100101
if (request.projectStartDate != null && request.projectEndDate != null) {

0 commit comments

Comments
 (0)