File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/com/somemore/domains/notification/controller Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33import com .somemore .domains .notification .dto .NotificationResponseDto ;
44import com .somemore .domains .notification .usecase .NotificationQueryUseCase ;
5- import com .somemore .global .auth .annotation .CurrentUser ;
5+ import com .somemore .global .auth .annotation .UserId ;
66import com .somemore .global .common .response .ApiResponse ;
77import io .swagger .v3 .oas .annotations .Operation ;
88import 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 ,
You can’t perform that action at this time.
0 commit comments