-
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 구성 변경 - 보관함 잠금/해제 로직 변경 - ENUM 타입에 맞게 공유 링크 생성하도록 변경 - 링크를 통한 북마크 조회 변경 - 초대링크를 통한 공유보관함 초대 로직 변경
- Loading branch information
Showing
8 changed files
with
72 additions
and
94 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
28 changes: 9 additions & 19 deletions
28
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,36 +1,26 @@ | ||
package com.yapp.web2.domain.folder.entity | ||
|
||
enum class SharedType { | ||
INVITE { | ||
EDIT { | ||
override fun inversionState(): SharedType { | ||
return CLOSED_INVITE | ||
return CLOSED_EDIT | ||
} | ||
}, | ||
OPEN { | ||
BLOCK_EDIT { | ||
override fun inversionState(): SharedType { | ||
return CLOSED_OPEN | ||
return CLOSED_BLOCK_EDIT | ||
} | ||
}, | ||
INVITE_AND_OPEN { | ||
CLOSED_EDIT { | ||
override fun inversionState(): SharedType { | ||
return ALL_CLOSED | ||
return EDIT | ||
} | ||
}, | ||
CLOSED_INVITE { | ||
CLOSED_BLOCK_EDIT { | ||
override fun inversionState(): SharedType { | ||
return INVITE | ||
return BLOCK_EDIT | ||
} | ||
}, | ||
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
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