add addAction method

This commit is contained in:
2025-05-17 02:32:42 +07:00
parent 6177a05eac
commit 282e1b3aea
6 changed files with 660 additions and 50 deletions
+27
View File
@@ -25,6 +25,18 @@ service EveningDetective {
get: "/teams"
};
}
rpc DeleteTeams(DeleteTeamsReq) returns (DeleteTeamsRsp) {
option (google.api.http) = {
delete: "/teams"
};
}
rpc AddAction(AddActionReq) returns (AddActionRsp) {
option (google.api.http) = {
post: "/actions"
};
}
}
message PingReq {}
@@ -65,3 +77,18 @@ message TeamAdvanced {
message Application {
string name = 1;
}
message DeleteTeamsReq {}
message DeleteTeamsRsp {}
message AddActionReq {
string to = 1;
}
message AddActionRsp {
int64 id = 1;
string to = 2;
string text = 3;
repeated Application applications = 4;
}