Files
smartmate/backend/services/notification/rpc/notification.proto
Losita abe3b4960e Version: 0.9.68.dev.260504
后端:
1. 阶段 3 notification 服务边界落地,新增 `cmd/notification`、`services/notification`、`gateway/notification`、`shared/contracts/notification` 和 notification port,按 userauth 同款最小手搓 zrpc 样板收口
2. notification outbox consumer、relay 和 retry loop 迁入独立服务入口,处理 `notification.feishu.requested`,gateway 改为通过 zrpc client 调用 notification
3. 清退旧单体 notification DAO/model/service/provider/runner 和 `service/events/notification_feishu.go`,旧实现不再作为活跃编译路径
4. 修复 outbox 路由归属、dispatch 启动扫描、Kafka topic 探测/投递超时、sending 租约恢复、毒消息 MarkDead 错误回传和 RPC timeout 边界
5. 同步调整 active-scheduler 触发通知事件、核心 outbox handler、MySQL 迁移边界和 notification 配置

文档:
1. 更新微服务迁移计划,将阶段 3 notification 标记为已完成,并明确下一阶段从 active-scheduler 开始
2026-05-04 18:40:39 +08:00

59 lines
1.3 KiB
Protocol Buffer

syntax = "proto3";
package smartflow.notification;
option go_package = "github.com/LoveLosita/smartflow/backend/services/notification/rpc/pb";
service Notification {
rpc GetFeishuWebhook(GetFeishuWebhookRequest) returns (ChannelResponse);
rpc SaveFeishuWebhook(SaveFeishuWebhookRequest) returns (ChannelResponse);
rpc DeleteFeishuWebhook(DeleteFeishuWebhookRequest) returns (StatusResponse);
rpc TestFeishuWebhook(TestFeishuWebhookRequest) returns (TestResult);
}
message GetFeishuWebhookRequest {
int64 user_id = 1;
}
message SaveFeishuWebhookRequest {
int64 user_id = 1;
bool enabled = 2;
string webhook_url = 3;
string auth_type = 4;
string bearer_token = 5;
}
message DeleteFeishuWebhookRequest {
int64 user_id = 1;
}
message TestFeishuWebhookRequest {
int64 user_id = 1;
}
message StatusResponse {
}
message ChannelResponse {
string channel = 1;
bool enabled = 2;
bool configured = 3;
string webhook_url_mask = 4;
string auth_type = 5;
bool has_bearer_token = 6;
string last_test_status = 7;
string last_test_error = 8;
int64 last_test_at_unix_nano = 9;
}
message TestResult {
ChannelResponse channel = 1;
string status = 2;
string outcome = 3;
string message = 4;
string trace_id = 5;
int64 sent_at_unix_nano = 6;
bool skipped = 7;
string provider = 8;
}