Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

목데이터 대신 실제 데이터가 들어가도록 작업 #217

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions core/src/main/kotlin/lectures/dto/ClassPlaceAndTimeDto.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ package com.wafflestudio.snu4t.lectures.dto

import com.fasterxml.jackson.annotation.JsonProperty
import com.wafflestudio.snu4t.common.enum.DayOfWeek
import com.wafflestudio.snu4t.lecturehalls.data.Campus
import com.wafflestudio.snu4t.lecturehalls.data.GeoCoordinate
import com.wafflestudio.snu4t.lecturehalls.data.LectureBuilding
import com.wafflestudio.snu4t.lectures.data.ClassPlaceAndTime
import com.wafflestudio.snu4t.lectures.utils.endPeriod
import com.wafflestudio.snu4t.lectures.utils.minuteToString
import com.wafflestudio.snu4t.lectures.utils.startPeriod
import org.bson.types.ObjectId

data class ClassPlaceAndTimeDto(
val day: DayOfWeek,
Expand Down Expand Up @@ -50,15 +47,5 @@ fun ClassPlaceAndTimeLegacyDto(classPlaceAndTime: ClassPlaceAndTime): ClassPlace
endTime = minuteToString(classPlaceAndTime.endMinute),
startPeriod = classPlaceAndTime.startPeriod,
periodLength = classPlaceAndTime.endPeriod - classPlaceAndTime.startPeriod,
lectureBuilding = MockLectureBuilding()
)

private fun MockLectureBuilding() = LectureBuilding(
id = ObjectId.get().toHexString(),
buildingNumber = "500",
buildingNameKor = "자연과학대학(500)",
buildingNameEng = "College of Natural Sciences(500)",
locationInDMS = GeoCoordinate(37.4592190840394, 126.94812006718699),
locationInDecimal = GeoCoordinate(488525.0, 1099948.0),
campus = Campus.GWANAK
lectureBuilding = classPlaceAndTime.lectureBuilding
)
Loading