Skip to content

Commit

Permalink
merge: (#777) volunteer service 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
4mjeo authored Oct 4, 2024
2 parents b82efef + 3973af0 commit 13045c9
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ data class AvailableFeaturesResponse(
val pointService: Boolean,
val studyRoomService: Boolean,
val remainService: Boolean,
val outingService: Boolean
val outingService: Boolean,
val volunteerService: Boolean
)

data class NeisSchoolResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ data class AvailableFeature(

val remainService: Boolean,

val outingService: Boolean
val outingService: Boolean,

val volunteerService: Boolean

)
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class QueryAvailableFeaturesUseCase(
pointService = availableFeatures.pointService,
studyRoomService = availableFeatures.studyRoomService,
remainService = availableFeatures.remainService,
outingService = availableFeatures.outingService
outingService = availableFeatures.outingService,
volunteerService = availableFeatures.volunteerService
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package team.aliens.dms.domain.school.stub

import team.aliens.dms.domain.school.model.AvailableFeature
import team.aliens.dms.domain.school.model.School
import team.aliens.dms.domain.volunteer.exception.VolunteerErrorCode
import java.time.LocalDate
import java.util.UUID

Expand Down Expand Up @@ -32,13 +33,15 @@ internal fun createAvailableFeatureStub(
remainService: Boolean = true,
pointService: Boolean = true,
noticeService: Boolean = true,
outingService: Boolean = true
outingService: Boolean = true,
volunteerService: Boolean = true
) = AvailableFeature(
schoolId = schoolId,
mealService = mealService,
studyRoomService = studyRoomService,
remainService = remainService,
pointService = pointService,
noticeService = noticeService,
outingService = outingService
outingService = outingService,
volunteerService = volunteerService
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table tbl_available_feature add column volunteer_service tinyint(1) not null;
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@ class AvailableFeatureJpaEntity(
@Column(columnDefinition = "TINYINT(1)", nullable = false)
val outingService: Boolean,

@Column(columnDefinition = "TINYINT(1)", nullable = false)
val volunteerService: Boolean

)
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class AvailableFeatureMapper(
pointService = entity.pointService,
studyRoomService = entity.studyRoomService,
remainService = entity.remainService,
outingService = entity.outingService
outingService = entity.outingService,
volunteerService = entity.volunteerService
)
}
}
Expand All @@ -37,7 +38,8 @@ class AvailableFeatureMapper(
pointService = domain.pointService,
studyRoomService = domain.studyRoomService,
remainService = domain.remainService,
outingService = domain.outingService
outingService = domain.outingService,
volunteerService = domain.volunteerService
)
}
}

0 comments on commit 13045c9

Please sign in to comment.