Skip to content

Commit

Permalink
merge: (#785) volunteer content 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
4mjeo authored Oct 9, 2024
2 parents 38fced8 + 7951b72 commit 67e65a7
Show file tree
Hide file tree
Showing 18 changed files with 3 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ interface CheckOutingService {
arrivalTime: LocalTime
)

fun checkOutingApplicationQueryAble() : Boolean
fun checkOutingApplicationQueryAble(): Boolean
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import team.aliens.dms.domain.outing.spi.vo.OutingCompanionDetailsVO
import team.aliens.dms.domain.outing.spi.vo.OutingHistoryVO
import java.time.DayOfWeek
import java.time.LocalDate
import java.time.LocalTime
import java.util.UUID

@Service
Expand All @@ -42,7 +41,7 @@ class GetOutingServiceImpl(

override fun getCurrentOutingApplication(studentId: UUID): CurrentOutingApplicationVO {
return queryOutingApplicationPort.queryCurrentOutingApplicationVO(studentId)
?: throw OutingApplicationNotFoundException
?: throw OutingApplicationNotFoundException
}

override fun getOutingHistoriesByStudentNameAndDate(
Expand All @@ -62,5 +61,4 @@ class GetOutingServiceImpl(
override fun getOutingAvailableTimeById(outingAvailableTimeId: UUID): OutingAvailableTime =
queryOutingAvailableTimePort.queryOutingAvailableTimeById(outingAvailableTimeId)
?: throw OutingAvailableTimeNotFoundException

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import team.aliens.dms.domain.volunteer.model.AvailableGrade

data class CreateVolunteerRequest(
val name: String,
val content: String,
val availableSex: Sex,
val availableGrade: AvailableGrade,
val score: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import java.util.UUID

data class UpdateVolunteerRequest(
val name: String,
val content: String,
val availableSex: Sex,
val availableGrade: AvailableGrade,
val score: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ data class VolunteerApplicationResponse(
data class VolunteerResponse(
val id: UUID,
val name: String,
val content: String,
val score: Int,
val optionalScore: Int,
val currentApplicants: Int,
Expand All @@ -64,7 +63,6 @@ data class VolunteerResponse(
return VolunteerResponse(
id = volunteerWithCurrentApplicantVO.id,
name = volunteerWithCurrentApplicantVO.name,
content = volunteerWithCurrentApplicantVO.content,
score = volunteerWithCurrentApplicantVO.score,
optionalScore = volunteerWithCurrentApplicantVO.optionalScore,
currentApplicants = volunteerWithCurrentApplicantVO.currentApplicants,
Expand Down Expand Up @@ -128,7 +126,6 @@ data class CurrentVolunteerApplicantsResponse(
data class AvailableVolunteerResponse(
val id: UUID,
val name: String,
val content: String,
val score: Int,
val optionalScore: Int,
val currentApplicants: Int,
Expand All @@ -140,7 +137,6 @@ data class AvailableVolunteerResponse(
return AvailableVolunteerResponse(
id = volunteerWithCurrentApplicantVO.id,
name = volunteerWithCurrentApplicantVO.name,
content = volunteerWithCurrentApplicantVO.content,
score = volunteerWithCurrentApplicantVO.score,
optionalScore = volunteerWithCurrentApplicantVO.optionalScore,
currentApplicants = volunteerWithCurrentApplicantVO.currentApplicants,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ data class Volunteer(

val name: String,

val content: String,

val score: Int,

val optionalScore: Int = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import java.util.UUID
open class VolunteerWithCurrentApplicantVO(
val id: UUID,
val name: String,
val content: String,
val score: Int,
val optionalScore: Int,
val currentApplicants: Int,
Expand All @@ -23,7 +22,6 @@ open class VolunteerWithCurrentApplicantVO(
fun toVolunteer() = Volunteer(
id = id,
name = name,
content = content,
score = score,
optionalScore = optionalScore,
maxApplicants = maxApplicants,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class CreateVolunteerUseCase(

val volunteer = Volunteer(
name = createVolunteerRequest.name,
content = createVolunteerRequest.content,
availableSex = createVolunteerRequest.availableSex,
availableGrade = createVolunteerRequest.availableGrade,
score = createVolunteerRequest.score,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class UpdateVolunteerUseCase(
volunteerService.saveVolunteer(
currentVolunteer.copy(
name = updateVolunteerRequest.name,
content = updateVolunteerRequest.content,
availableSex = updateVolunteerRequest.availableSex,
availableGrade = updateVolunteerRequest.availableGrade,
score = updateVolunteerRequest.score,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ 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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table tbl_volunteer drop column content;
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class VolunteerPersistenceAdapter(
QQueryVolunteerWithCurrentApplicantVO(
volunteerJpaEntity.id,
volunteerJpaEntity.name,
volunteerJpaEntity.content,
volunteerJpaEntity.score,
volunteerJpaEntity.optionalScore,
list(volunteerApplicationJpaEntity.id),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ class VolunteerJpaEntity(
@Column(columnDefinition = "VARCHAR(255)", nullable = false)
val name: String,

@Column(columnDefinition = "VARCHAR(255)", nullable = false)
val content: String,

@Column(columnDefinition = "INT", nullable = false)
val score: Int,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class VolunteerMapper(
Volunteer(
id = it.id!!,
name = it.name,
content = it.content,
score = it.score,
optionalScore = it.optionalScore,
maxApplicants = it.maxApplicants,
Expand All @@ -33,7 +32,6 @@ class VolunteerMapper(
return VolunteerJpaEntity(
id = domain.id,
name = domain.name,
content = domain.content,
score = domain.score,
optionalScore = domain.optionalScore,
maxApplicants = domain.maxApplicants,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import java.util.UUID
class QueryVolunteerWithCurrentApplicantVO @QueryProjection constructor(
id: UUID,
name: String,
content: String,
score: Int,
optionalScore: Int,
currentApplicants: List<UUID>,
Expand All @@ -22,7 +21,6 @@ class QueryVolunteerWithCurrentApplicantVO @QueryProjection constructor(
) : VolunteerWithCurrentApplicantVO(
id = id,
name = name,
content = content,
score = score,
optionalScore = optionalScore,
currentApplicants = currentApplicants.size,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ class VolunteerWebAdapter(
createVolunteerUseCase.execute(
CreateVolunteerRequest(
name = createVolunteerWebRequest.name,
content = createVolunteerWebRequest.content,
availableGrade = createVolunteerWebRequest.availableGrade,
availableSex = createVolunteerWebRequest.availableSex,
score = createVolunteerWebRequest.score!!,
Expand All @@ -105,7 +104,6 @@ class VolunteerWebAdapter(
updateVolunteerUseCase.execute(
UpdateVolunteerRequest(
name = updateVolunteerWebRequest.name,
content = updateVolunteerWebRequest.content,
availableGrade = updateVolunteerWebRequest.availableGrade,
availableSex = updateVolunteerWebRequest.availableSex,
score = updateVolunteerWebRequest.score!!,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ data class CreateVolunteerWebRequest(
@field:NotBlank
val name: String,

@field:NotBlank
val content: String,

@field:NotNull
val availableSex: Sex,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ data class UpdateVolunteerWebRequest(
@field:NotBlank
val name: String,

@field:NotBlank
val content: String,

@field:NotNull
val availableSex: Sex,

Expand Down

0 comments on commit 67e65a7

Please sign in to comment.