refactored notificatoin / tgsettle responsibility boundaries

This commit is contained in:
Stephan D
2026-02-19 18:56:59 +01:00
parent 47f0a3d890
commit 2fd8a6ebb7
73 changed files with 3705 additions and 681 deletions

View File

@@ -4,10 +4,17 @@ option go_package = "github.com/tech/sendico/pkg/generated/gmessaging";
import "operation_result.proto";
// NotificationSentEvent is published after a notification has been delivered
// (or delivery has failed) to a user.
message NotificationSentEvent {
// user_id identifies the recipient.
string user_id = 1;
// template_id is the notification template that was rendered.
string template_id = 2;
// channel is the delivery channel (e.g. "email", "sms", "push").
string channel = 3;
// locale is the language/region used for rendering (e.g. "en", "ru").
string locale = 4;
// status reports whether the delivery succeeded.
OperationResult status = 5;
}