22
33import com .somemore .domains .notification .dto .NotificationIdsRequestDto ;
44import com .somemore .domains .notification .usecase .NotificationCommandUseCase ;
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 ;
@@ -29,7 +29,7 @@ public class NotificationCommandController {
2929 @ Operation (summary = "알림(1개) 읽음 처리" , description = "알림 1개를 읽음 처리합니다." )
3030 @ PatchMapping ("/read/{notificationId}" )
3131 public ApiResponse <String > markSingleNotification (
32- @ CurrentUser UUID userId ,
32+ @ UserId UUID userId ,
3333 @ PathVariable Long notificationId
3434 ) {
3535 notificationCommandUseCase .markSingleNotificationAsRead (userId , notificationId );
@@ -40,7 +40,7 @@ public ApiResponse<String> markSingleNotification(
4040 @ Operation (summary = "알림(N개) 읽음 처리" , description = "알림 N개를 읽음 처리합니다." )
4141 @ PostMapping ("/read/multiple" )
4242 public ApiResponse <String > markMultipleNotifications (
43- @ CurrentUser UUID userId ,
43+ @ UserId UUID userId ,
4444 @ RequestBody NotificationIdsRequestDto notificationIds
4545 ) {
4646 notificationCommandUseCase .markMultipleNotificationsAsRead (userId , notificationIds );
0 commit comments