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

[Fix] 구버전 Topic 수정 #63

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.dmforu.domain.Generated
@Generated
enum class Topic (val korean: String){
exam("시험"),
sign_up("수강"),
signup("수강"),
speciallecture("특강"),
seasonalsemester("계절학기"),
leaveofabsence("휴학"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import com.dmforu.domain.Generated

class Subscribe private constructor(
val token: String,
department: String,
keywords: List<String>,
department: String?,
keywords: List<String>?,
isDepartmentSubscribed: Boolean,
isKeywordSubscribed: Boolean,
) {
var department: String = department
var department: String? = department
private set

var keywords: List<String> = keywords
var keywords: List<String>? = keywords
private set

var isDepartmentSubscribed: Boolean = isDepartmentSubscribed
Expand All @@ -24,8 +24,8 @@ class Subscribe private constructor(
companion object {
fun of(
token: String,
department: String,
keywords: List<String>,
department: String?,
keywords: List<String>?,
isDepartmentSubscribed: Boolean,
isKeywordSubscribed: Boolean,
): Subscribe {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
val keywords: List<String>?,

@Column(name = "department_onoff")
val isDepartmentSubscribed: Boolean,
Expand Down
Loading