Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public static ResponseEntity ok() {
return ResponseEntity.status(HttpStatus.OK).body(body);
}

public static ResponseEntity okWithEmpty() {
return ResponseEntity.status(HttpStatus.OK).build();
}

public static ResponseEntity unauthorized(Object data) {
ResponseBody body = new ResponseBody().code(RestApiStatusCode.UNAUTHORIZED).msg("Unauthorized").data(data);
return ResponseEntity.status(HttpStatus.OK).body(body);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ public Object execute(HttpServletRequest request, HttpServletResponse response)
return ResponseEntityBuilder.internalError(e.getMessage());
}
}
return ResponseEntityBuilder.ok();
return ResponseEntityBuilder.okWithEmpty();
}
}