-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: 소스코드 내 상수를 enum으로 관리 - chat-types enum 추가 및 적용 - default-section-name, http-status-code를 enum으로 변경 및 적용 - 코드 상의 상수를 enum으로 관리하도록 수정 * feat: 채널/DM 생성 API 분리 - 채널/DM 생성 API를 채널 생성 API와 DM 생성 API로 분리
- Loading branch information
1 parent
f3de071
commit f97d34a
Showing
10 changed files
with
108 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const enum ChatType { | ||
DM = 'DM', | ||
Channel = 'Channel' | ||
} | ||
export default ChatType; |
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,6 +1,7 @@ | ||
const DefaultSectionName = { | ||
Channels: 'Channels', | ||
DirectMessages: 'DirectMessages' | ||
}; | ||
const enum DefaultSectionName { | ||
Channels = 'Channels', | ||
DirectMessages = 'Direct Messages', | ||
Starred = 'Starred' | ||
} | ||
|
||
export default DefaultSectionName; |
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,13 +1,13 @@ | ||
const HttpStatusCode = { | ||
OK: 200, | ||
CREATED: 201, | ||
NO_CONTENT: 204, | ||
BAD_REQUEST: 400, | ||
UNAUTHORIZED: 401, | ||
FORBIDDEN: 403, | ||
NOT_FOUND: 404, | ||
CONFLICT: 409, | ||
INTERNAL_SERVER_ERROR: 500 | ||
}; | ||
const enum HttpStatusCode { | ||
OK = 200, | ||
CREATED = 201, | ||
NO_CONTENT = 204, | ||
BAD_REQUEST = 400, | ||
UNAUTHORIZED = 401, | ||
FORBIDDEN = 403, | ||
NOT_FOUND = 404, | ||
CONFLICT = 409, | ||
INTERNAL_SERVER_ERROR = 500 | ||
} | ||
|
||
export default HttpStatusCode; |
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
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