feat: 添加通知微服务,支持站内通知已读状态

This commit is contained in:
zetaloop
2026-04-24 12:44:59 +08:00
parent 95f2f10f9f
commit b557bfcc2e
52 changed files with 7035 additions and 30 deletions
+26
View File
@@ -123,6 +123,8 @@ services:
condition: service_started
dispute-api:
condition: service_started
notification-api:
condition: service_started
ratelimit:
image: envoyproxy/ratelimit:05c08d03
@@ -291,6 +293,19 @@ services:
snowflake:
condition: service_started
notification-rpc:
image: juwan/notification-rpc:dev
container_name: juwan-notification-rpc
restart: unless-stopped
env_file: .env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
snowflake:
condition: service_started
# ==================== API 层 ====================
users-api:
image: juwan/users-api:dev
@@ -427,6 +442,17 @@ services:
order-rpc:
condition: service_started
notification-api:
image: juwan/notification-api:dev
container_name: juwan-notification-api
restart: unless-stopped
env_file: .env
ports:
- "18812:8888"
depends_on:
notification-rpc:
condition: service_started
# ==================== MQ ====================
email-mq:
image: juwan/email-mq:dev
+20
View File
@@ -371,6 +371,12 @@ static_resources:
cluster: dispute_api_cluster
timeout: 30s
- match:
prefix: /api/v1/notifications
route:
cluster: notification_api_cluster
timeout: 30s
- match:
prefix: /
direct_response:
@@ -818,6 +824,20 @@ static_resources:
address: dispute-api
port_value: 8888
- name: notification_api_cluster
connect_timeout: 2s
type: STRICT_DNS
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: notification_api_cluster
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: notification-api
port_value: 8888
- name: authz_adapter_cluster
connect_timeout: 0.5s
type: STRICT_DNS