Skip to content

Commit f38d5b3

Browse files
committed
refactor: 올바른 어노테이션으로 변경
1 parent 3c219e2 commit f38d5b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/somemore/domains/notification/controller/NotificationQueryController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.somemore.domains.notification.dto.NotificationResponseDto;
44
import com.somemore.domains.notification.usecase.NotificationQueryUseCase;
5-
import com.somemore.global.auth.annotation.CurrentUser;
5+
import com.somemore.global.auth.annotation.UserId;
66
import com.somemore.global.common.response.ApiResponse;
77
import io.swagger.v3.oas.annotations.Operation;
88
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -27,7 +27,7 @@ public class NotificationQueryController {
2727
@Operation(summary = "읽지 않은 알림 조회", description = "읽지 않은 알림들을 조회합니다.")
2828
@GetMapping("/unread")
2929
public ApiResponse<List<NotificationResponseDto>> getUnreadNotifications(
30-
@CurrentUser UUID userId
30+
@UserId UUID userId
3131
) {
3232
return ApiResponse.ok(200,
3333
notificationQueryUseCase.getUnreadNotifications(userId),
@@ -39,7 +39,7 @@ public ApiResponse<List<NotificationResponseDto>> getUnreadNotifications(
3939
@Operation(summary = "읽은 알림 조회", description = "읽은 알림들을 조회합니다.")
4040
@GetMapping("/read")
4141
public ApiResponse<List<NotificationResponseDto>> getReadNotifications(
42-
@CurrentUser UUID userId
42+
@UserId UUID userId
4343
) {
4444

4545
return ApiResponse.ok(200,

0 commit comments

Comments
 (0)