From 9873dd40c6a1d35428fd833fdc292c8e8c00fff6 Mon Sep 17 00:00:00 2001 From: GiJung <101462387+GiJungPark@users.noreply.github.com> Date: Tue, 12 Nov 2024 02:25:04 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B5=AC=EB=B2=84=EC=A0=84=20Topic=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/dmforu/api/controller/old/request/Topic.kt | 2 +- .../kotlin/com/dmforu/domain/subscribe/Subscribe.kt | 12 ++++++------ .../storage/db/mysql/subscribe/SubscribeEntity.kt | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dmforu-api/src/main/kotlin/com/dmforu/api/controller/old/request/Topic.kt b/dmforu-api/src/main/kotlin/com/dmforu/api/controller/old/request/Topic.kt index ffab853..b3a30fc 100644 --- a/dmforu-api/src/main/kotlin/com/dmforu/api/controller/old/request/Topic.kt +++ b/dmforu-api/src/main/kotlin/com/dmforu/api/controller/old/request/Topic.kt @@ -5,7 +5,7 @@ import com.dmforu.domain.Generated @Generated enum class Topic (val korean: String){ exam("시험"), - sign_up("수강"), + signup("수강"), speciallecture("특강"), seasonalsemester("계절학기"), leaveofabsence("휴학"), diff --git a/dmforu-domain/src/main/kotlin/com/dmforu/domain/subscribe/Subscribe.kt b/dmforu-domain/src/main/kotlin/com/dmforu/domain/subscribe/Subscribe.kt index 98cd6ca..8ad411c 100644 --- a/dmforu-domain/src/main/kotlin/com/dmforu/domain/subscribe/Subscribe.kt +++ b/dmforu-domain/src/main/kotlin/com/dmforu/domain/subscribe/Subscribe.kt @@ -4,15 +4,15 @@ import com.dmforu.domain.Generated class Subscribe private constructor( val token: String, - department: String, - keywords: List, + department: String?, + keywords: List?, isDepartmentSubscribed: Boolean, isKeywordSubscribed: Boolean, ) { - var department: String = department + var department: String? = department private set - var keywords: List = keywords + var keywords: List? = keywords private set var isDepartmentSubscribed: Boolean = isDepartmentSubscribed @@ -24,8 +24,8 @@ class Subscribe private constructor( companion object { fun of( token: String, - department: String, - keywords: List, + department: String?, + keywords: List?, isDepartmentSubscribed: Boolean, isKeywordSubscribed: Boolean, ): Subscribe { diff --git a/dmforu-infrastructure/storage/mysql/src/main/kotlin/com/dmforu/storage/db/mysql/subscribe/SubscribeEntity.kt b/dmforu-infrastructure/storage/mysql/src/main/kotlin/com/dmforu/storage/db/mysql/subscribe/SubscribeEntity.kt index 8438b22..0943293 100644 --- a/dmforu-infrastructure/storage/mysql/src/main/kotlin/com/dmforu/storage/db/mysql/subscribe/SubscribeEntity.kt +++ b/dmforu-infrastructure/storage/mysql/src/main/kotlin/com/dmforu/storage/db/mysql/subscribe/SubscribeEntity.kt @@ -12,11 +12,11 @@ internal class SubscribeEntity( val token: String, @Column(nullable = true) - val department: String, + val department: String?, @Convert(converter = StringListConverter::class) @Column(name = "keywords_list", nullable = true) - val keywords: List, + val keywords: List?, @Column(name = "department_onoff") val isDepartmentSubscribed: Boolean,