More and more api was included

This commit is contained in:
2024-07-15 22:20:37 +08:00
parent 4e96bb2cd5
commit d7f5053fc7
12 changed files with 1958 additions and 68 deletions

26
pkg/proto/notify.proto Normal file
View File

@ -0,0 +1,26 @@
syntax = "proto3";
option go_package = ".;proto";
package proto;
service Notifier {
rpc NotifyUser(NotifyUserRequest) returns (NotifyResponse) {}
rpc NotifyAllUser(NotifyRequest) returns(NotifyResponse) {}
}
message NotifyUserRequest {
uint64 user_id = 1;
NotifyRequest notify = 2;
}
message NotifyRequest {
string title = 1;
string subtitle = 2;
string body = 3;
}
message NotifyResponse {
bool is_success = 1;
int64 affected_count = 2;
}