-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- SharedType에서 잠금해제 하는 기능 추가 - 폴더를 OPEN/INVITE/INVITE_AND_OPEN 상태로 변경하도록 하는 기능 추가 - ENUM 타입을 데이터베이스에 저장할 때 String 으로 저장할 수 있도록 수정 - 초대를 수락할 때, 보관함의 공유 상태확인 로직 추가 - 비회원이 보관함을 조회할 때, 보관함의 공유 상태확인 로직 추가
- Loading branch information
Showing
7 changed files
with
81 additions
and
11 deletions.
There are no files selected for viewing
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
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
33 changes: 32 additions & 1 deletion
33
src/main/kotlin/com/yapp/web2/domain/folder/entity/SharedType.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,36 @@ | ||
package com.yapp.web2.domain.folder.entity | ||
|
||
enum class SharedType { | ||
INVITE, OPEN, CLOSED | ||
INVITE { | ||
override fun inversionState(): SharedType { | ||
return CLOSED_INVITE | ||
} | ||
}, | ||
OPEN { | ||
override fun inversionState(): SharedType { | ||
return CLOSED_OPEN | ||
} | ||
}, | ||
INVITE_AND_OPEN { | ||
override fun inversionState(): SharedType { | ||
return ALL_CLOSED | ||
} | ||
}, | ||
CLOSED_INVITE { | ||
override fun inversionState(): SharedType { | ||
return INVITE | ||
} | ||
}, | ||
CLOSED_OPEN { | ||
override fun inversionState(): SharedType { | ||
return OPEN | ||
} | ||
}, | ||
ALL_CLOSED { | ||
override fun inversionState(): SharedType { | ||
return INVITE_AND_OPEN | ||
} | ||
}; | ||
|
||
abstract fun inversionState(): SharedType | ||
} |
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