Skip to content

Commit 7fa86a9

Browse files
committed
feat: log 공통 응답 객체 생성
- 로그 응답에 대한 Response 객체 생성
1 parent bed7f69 commit 7fa86a9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.somemore.global.common.response;
2+
3+
import lombok.Getter;
4+
import org.springframework.http.HttpStatusCode;
5+
6+
@Getter
7+
public class LoggedResponse {
8+
private final HttpStatusCode statusCode;
9+
private final String body;
10+
11+
public LoggedResponse(HttpStatusCode statusCode, String body) {
12+
this.statusCode = statusCode;
13+
this.body = body;
14+
}
15+
}

0 commit comments

Comments
 (0)