Skip to content

Commit

Permalink
Merge pull request #63 from TeamDMU/develop
Browse files Browse the repository at this point in the history
[Fix] 구버전 Topic 수정
  • Loading branch information
GiJungPark authored Nov 11, 2024
2 parents f4d3265 + 9873dd4 commit d73ef8b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
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

0 comments on commit d73ef8b

Please sign in to comment.