Skip to content

Commit

Permalink
Fix: 유저 api도 응답 양식 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnida committed Jan 24, 2025
1 parent 348eb3f commit ad60158
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ public class UserTestController {
private final UserTestService userTestService;

@GetMapping("/get-or-create")
public User getOrCreateTestUser(@RequestParam Long userId) {
return userTestService.getOrCreateTestUser(userId);
public SuccessResponse<User> getOrCreateTestUser(@RequestParam Long userId) {

return SuccessResponse.ok(userTestService.getOrCreateTestUser(userId));
}

@GetMapping()
public List<User> getAllUsers() {
return userTestService.getListUsers();
public SuccessResponse<List<User>> getAllUsers() {


return SuccessResponse.ok(userTestService.getListUsers());
}
}

0 comments on commit ad60158

Please sign in to comment.