Skip to content

Commit

Permalink
merge: (#614) available feature에 outingService 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyoil2 authored Apr 25, 2024
2 parents ea5387d + 78dab4a commit c1a2ef8
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ data class AvailableFeaturesResponse(
val noticeService: Boolean,
val pointService: Boolean,
val studyRoomService: Boolean,
val remainService: Boolean
val remainService: Boolean,
val outingService: Boolean
)

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

val studyRoomService: Boolean,

val remainService: Boolean
val remainService: Boolean,

val outingService: Boolean

)
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class QueryAvailableFeaturesUseCase(
noticeService = availableFeatures.noticeService,
pointService = availableFeatures.pointService,
studyRoomService = availableFeatures.studyRoomService,
remainService = availableFeatures.remainService
remainService = availableFeatures.remainService,
outingService = availableFeatures.outingService
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ internal fun createAvailableFeatureStub(
remainService: Boolean = true,
pointService: Boolean = true,
noticeService: Boolean = true,
outingService: Boolean = true
) = AvailableFeature(
schoolId = schoolId,
mealService = mealService,
studyRoomService = studyRoomService,
remainService = remainService,
pointService = pointService,
noticeService = noticeService
noticeService = noticeService,
outingService = outingService
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import team.aliens.dms.persistence.outing.entity.QOutingApplicationJpaEntity.out
import team.aliens.dms.persistence.outing.entity.QOutingCompanionJpaEntity.outingCompanionJpaEntity
import team.aliens.dms.persistence.outing.entity.QOutingTypeJpaEntity.outingTypeJpaEntity
import team.aliens.dms.persistence.outing.mapper.OutingApplicationMapper
import team.aliens.dms.persistence.outing.mapper.OutingCompanionMapper
import team.aliens.dms.persistence.outing.repository.OutingApplicationJpaRepository
import team.aliens.dms.persistence.outing.repository.OutingCompanionJpaRepository
import team.aliens.dms.persistence.outing.repository.vo.QQueryCurrentOutingApplicationVO
Expand Down Expand Up @@ -153,7 +152,8 @@ class OutingApplicationPersistenceAdapter(

override fun deleteOutingApplication(outingApplication: OutingApplication) {
outingCompanionsRepository.deleteAllByOutingApplication(
outingApplicationMapper.toEntity(outingApplication))
outingApplicationMapper.toEntity(outingApplication)
)

outingApplicationRepository.delete(
outingApplicationMapper.toEntity(outingApplication)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class AvailableFeatureJpaEntity(
val studyRoomService: Boolean,

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

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

)
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class AvailableFeatureMapper(
noticeService = entity.noticeService,
pointService = entity.pointService,
studyRoomService = entity.studyRoomService,
remainService = entity.remainService
remainService = entity.remainService,
outingService = entity.outingService
)
}
}
Expand All @@ -35,7 +36,8 @@ class AvailableFeatureMapper(
noticeService = domain.noticeService,
pointService = domain.pointService,
studyRoomService = domain.studyRoomService,
remainService = domain.remainService
remainService = domain.remainService,
outingService = domain.outingService
)
}
}

0 comments on commit c1a2ef8

Please sign in to comment.