File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed
src/main/java/clap/server Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1111
1212@ Component
1313@ RequiredArgsConstructor
14- public class ObjectBlockBuilder {
14+ public class KakaoWorkBlockBuilder {
1515
1616 private final ObjectMapper objectMapper ;
1717
Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ public class KakaoWorkClient implements SendKaKaoWorkPort {
2222 @ Value ("${webhook.kakaowork.auth}" )
2323 private String kakaworkAuth ;
2424
25- private final ObjectBlockBuilder objectBlockBuilder ;
25+ private final KakaoWorkBlockBuilder kakaoWorkBlockBuilder ;
2626
2727 @ Override
2828 public void sendKakaoWork (SendWebhookRequest request ) {
2929 RestTemplate restTemplate = new RestTemplate ();
3030
3131 // Payload 생성
32- String payload = objectBlockBuilder .makeObjectBlock (request );
32+ String payload = kakaoWorkBlockBuilder .makeObjectBlock (request );
3333
3434 // HTTP 요청 헤더 설정
3535 HttpHeaders headers = new HttpHeaders ();
Original file line number Diff line number Diff line change 1+ package clap .server .exception ;
2+
3+ import clap .server .exception .code .BaseErrorCode ;
4+
5+ public class AdapterException extends BaseException {
6+
7+ public AdapterException (BaseErrorCode code ) {
8+ super (code );
9+ }
10+
11+ public static AdapterException from (BaseErrorCode code ) {
12+ return new AdapterException (code );
13+ }
14+ }
15+
You can’t perform that action at this time.
0 commit comments