diff --git a/backend/api-gateway/kong.yml b/backend/api-gateway/kong.yml index 83cfc7dd..5ca7762a 100644 --- a/backend/api-gateway/kong.yml +++ b/backend/api-gateway/kong.yml @@ -190,7 +190,7 @@ services: strip_path: false # --------------------------------------------------------------------------- - # Admin Service - 管理服务 (包含版本管理) + # Admin Service - 管理服务 (包含版本管理和通知) # --------------------------------------------------------------------------- - name: admin-service url: http://192.168.1.111:3010 @@ -211,6 +211,10 @@ services: paths: - /downloads strip_path: false + - name: admin-mobile-notifications + paths: + - /api/v1/mobile/notifications + strip_path: false # --------------------------------------------------------------------------- # Presence Service - 在线状态服务 diff --git a/frontend/mobile-app/lib/core/services/notification_service.dart b/frontend/mobile-app/lib/core/services/notification_service.dart index fb4dfb11..0e76768d 100644 --- a/frontend/mobile-app/lib/core/services/notification_service.dart +++ b/frontend/mobile-app/lib/core/services/notification_service.dart @@ -175,7 +175,7 @@ class NotificationService { } final response = await _apiClient.get( - '/admin-service/mobile/notifications', + '/mobile/notifications', queryParameters: queryParams, ); @@ -190,7 +190,7 @@ class NotificationService { Future getUnreadCount({required String userSerialNum}) async { try { final response = await _apiClient.get( - '/admin-service/mobile/notifications/unread-count', + '/mobile/notifications/unread-count', queryParameters: {'userSerialNum': userSerialNum}, ); @@ -213,7 +213,7 @@ class NotificationService { }; final response = await _apiClient.post( - '/admin-service/mobile/notifications/mark-read', + '/mobile/notifications/mark-read', data: body, );