Batch notify user api

This commit is contained in:
2024-07-17 13:45:12 +08:00
parent 96b96912ed
commit da433c8861
3 changed files with 181 additions and 55 deletions

View File

@ -6,6 +6,7 @@ package proto;
service Notifier {
rpc NotifyUser(NotifyUserRequest) returns (NotifyResponse) {}
rpc NotifyUserBatch(NotifyUserBatchRequest) returns (NotifyResponse) {}
rpc NotifyAllUser(NotifyRequest) returns(NotifyResponse) {}
}
@ -14,6 +15,11 @@ message NotifyUserRequest {
NotifyRequest notify = 2;
}
message NotifyUserBatchRequest {
repeated uint64 user_id = 1;
NotifyRequest notify = 2;
}
message NotifyRequest {
string topic = 1;
string title = 2;