-
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.
Merge pull request #75 from AdultOfNineteen/refactor/issue-74
Refactor/issue 74
- Loading branch information
Showing
7 changed files
with
110 additions
and
53 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
2 changes: 1 addition & 1 deletion
2
...le/wineycommon/config/SlackApiConfig.java → ...infrastructure/config/SlackApiConfig.java
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
14 changes: 6 additions & 8 deletions
14
...le/wineycommon/constants/SlackStatic.java → ...tructure/slack/constants/SlackStatic.java
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,24 +1,22 @@ | ||
package com.example.wineycommon.constants; | ||
package com.example.wineyinfrastructure.slack.constants; | ||
|
||
public class SlackStatic { | ||
public static final String EXCEPTION_CLASS_LABEL = "exception class : "; | ||
public static final String CODE_BLOCK_START = "```"; | ||
public static final String CODE_BLOCK_END = "```"; | ||
public static final String USER_LABEL = "사용자 : "; | ||
public static final String PROFILE_LABEL = "실행중인 환경 : "; | ||
public static final String SERVER_LABEL = "실행중인 서버 : "; | ||
public static final String URI_LABEL = "요청 URI : "; | ||
public static final String SERVER_LABEL = "요청 받은 서버 + URI : "; | ||
public static final String EXCEPTION_MESSAGE_LABEL = "서버 에러 매시지 : "; | ||
public static final String METHOD_LABEL = "request method : "; | ||
public static final String QUERY_STRING_LABEL = "request query string : "; | ||
public static final String REMOTE_ADDR_LABEL = "request remote addr : "; | ||
public static final String REMOTE_HOST_LABEL = "request remote host : "; | ||
public static final String REMOTE_PORT_LABEL = "request remote port : "; | ||
public static final String SERVER_PORT_LABEL = "request server port : "; | ||
public static final String SERVLET_PATH_LABEL = "request servlet path : "; | ||
public static final String EXCEPTION_LABEL = "request exception : "; | ||
public static final String IP_LABEL = "요청 IP : "; | ||
public static final String EXCEPTION_CLASS_MESSAGE_VALUE = "Error occurred in class : %s - at line : %s"; | ||
public static final String UNKNOWN_EXCEPTION_CLASS_VALUE = "Unknown Exception"; | ||
public static final String SLACK_IMG_URL = "https://avatars.slack-edge.com/2024-01-11/6460804813748_57623dce3b29216a9aa8_48.png"; | ||
public static final String SLACK_USER_NAME = "서버 에러 알림"; | ||
public static final String UNKNOWN_HOST_EXCEPTION_MESSAGE = "올바른 슬랙 URL이 아닙니다."; | ||
public static final int MAX_LEN = 1000; | ||
|
||
} |
22 changes: 10 additions & 12 deletions
22
...e/wineycommon/service/SlackConverter.java → ...cture/slack/converter/SlackConverter.java
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