-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325 from wafflestudio/develop
prod deploy
- Loading branch information
Showing
13 changed files
with
187 additions
and
22 deletions.
There are no files selected for viewing
12 changes: 4 additions & 8 deletions
12
src/main/kotlin/com/wafflestudio/csereal/core/about/api/req/CreateFacReq.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
package com.wafflestudio.csereal.core.about.api.req | ||
|
||
data class CreateFacReq( | ||
val ko: FacDto, | ||
val en: FacDto | ||
) | ||
import com.wafflestudio.csereal.core.about.dto.FacReq | ||
|
||
data class FacDto( | ||
val name: String, | ||
val description: String, | ||
val locations: MutableList<String> | ||
data class CreateFacReq( | ||
val ko: FacReq, | ||
val en: FacReq | ||
) |
18 changes: 18 additions & 0 deletions
18
src/main/kotlin/com/wafflestudio/csereal/core/about/api/req/CreateStatReq.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.wafflestudio.csereal.core.about.api.req | ||
|
||
data class CreateStatReq( | ||
val year: Int, | ||
val statList: List<StatDto> | ||
) | ||
|
||
data class StatDto( | ||
val career: Career, | ||
val bachelor: Int, | ||
val master: Int, | ||
val doctor: Int | ||
) | ||
|
||
enum class Career(val krName: String) { | ||
SAMSUNG("삼성"), LG("LG"), LARGE("기타 대기업"), | ||
SMALL("중소기업"), GRADUATE("진학"), OTHER("기타") | ||
} |
6 changes: 4 additions & 2 deletions
6
src/main/kotlin/com/wafflestudio/csereal/core/about/api/req/UpdateFacReq.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
package com.wafflestudio.csereal.core.about.api.req | ||
|
||
import com.wafflestudio.csereal.core.about.dto.FacReq | ||
|
||
data class UpdateFacReq( | ||
val ko: FacDto, | ||
val en: FacDto, | ||
val ko: FacReq, | ||
val en: FacReq, | ||
val removeImage: Boolean | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/kotlin/com/wafflestudio/csereal/core/about/dto/FacReq.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.wafflestudio.csereal.core.about.dto | ||
|
||
import com.wafflestudio.csereal.core.about.database.AboutEntity | ||
|
||
data class FacReq( | ||
val name: String, | ||
val description: String, | ||
val locations: MutableList<String> | ||
) | ||
|
||
data class FacDto( | ||
val id: Long, | ||
val name: String, | ||
val description: String, | ||
val locations: MutableList<String>, | ||
val imageURL: String? | ||
) { | ||
companion object { | ||
fun of(aboutEntity: AboutEntity, imageURL: String?): FacDto { | ||
return FacDto( | ||
id = aboutEntity.id, | ||
name = aboutEntity.name!!, | ||
description = aboutEntity.description, | ||
locations = aboutEntity.locations, | ||
imageURL = imageURL | ||
) | ||
} | ||
} | ||
} | ||
|
||
data class GroupedFacDto( | ||
val ko: FacDto, | ||
val en: FacDto | ||
) |
24 changes: 24 additions & 0 deletions
24
src/main/kotlin/com/wafflestudio/csereal/core/about/dto/GroupedDirectionDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.wafflestudio.csereal.core.about.dto | ||
|
||
import com.wafflestudio.csereal.core.about.database.AboutEntity | ||
|
||
data class GroupedDirectionDto( | ||
val ko: DirDto, | ||
val en: DirDto | ||
) | ||
|
||
data class DirDto( | ||
val id: Long, | ||
val name: String, | ||
val description: String | ||
) { | ||
companion object { | ||
fun of(aboutEntity: AboutEntity): DirDto { | ||
return DirDto( | ||
id = aboutEntity.id, | ||
name = aboutEntity.name!!, | ||
description = aboutEntity.description | ||
) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
src/main/kotlin/com/wafflestudio/csereal/core/reservation/database/ReservationRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
src/main/kotlin/com/wafflestudio/csereal/core/reservation/database/RoomRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
package com.wafflestudio.csereal.core.reservation.database | ||
|
||
import jakarta.persistence.LockModeType | ||
import org.springframework.data.jpa.repository.JpaRepository | ||
import org.springframework.data.jpa.repository.Lock | ||
|
||
interface RoomRepository : JpaRepository<RoomEntity, Long> | ||
interface RoomRepository : JpaRepository<RoomEntity, Long> { | ||
@Lock(LockModeType.PESSIMISTIC_WRITE) | ||
fun findRoomById(id: Long): RoomEntity? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters