-
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.
Browse files
Browse the repository at this point in the history
[#176] 공유 보관함 잠금 기능
- Loading branch information
Showing
7 changed files
with
85 additions
and
3 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
36 changes: 36 additions & 0 deletions
36
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.yapp.web2.domain.folder.entity | ||
|
||
enum class SharedType { | ||
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