공통코드 중복체크,등록,수정,순서저장 API 커밋
This commit is contained in:
@@ -70,7 +70,7 @@ public class ApiResponseDto<T> {
|
||||
public static <T> ApiResponseDto<ResponseObj> okObject(ResponseObj data) {
|
||||
if (data.getFlag().equals(SuccFailCode.SUCCESS)) {
|
||||
return new ApiResponseDto<>(data, HttpStatus.OK);
|
||||
} else{
|
||||
} else {
|
||||
return new ApiResponseDto<>(data.getCode(), data.getMessage(), HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
@@ -114,6 +114,7 @@ public class ApiResponseDto<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/** Error가 아닌 Business상 성공이거나 실패인 경우, 메세지 함께 전달하기 위한 object */
|
||||
@Getter
|
||||
public static class ResponseObj {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user