add actions and auth

This commit is contained in:
2025-05-17 12:08:44 +07:00
parent 4bd18ee756
commit e1b342d12c
14 changed files with 487 additions and 246 deletions
+10 -9
View File
@@ -34,7 +34,7 @@ service EveningDetective {
rpc GetTeam(GetTeamReq) returns (GetTeamRsp) {
option (google.api.http) = {
get: "/teams/{id}"
get: "/team"
};
}
@@ -46,7 +46,8 @@ service EveningDetective {
rpc AddAction(AddActionReq) returns (AddActionRsp) {
option (google.api.http) = {
post: "/actions"
post: "/team/actions",
body: "*"
};
}
@@ -117,12 +118,10 @@ message Application {
string name = 1;
}
message GetTeamReq {
int64 id = 1;
}
message GetTeamReq {}
message GetTeamRsp {
repeated AddActionRsp actions = 1;
repeated Action actions = 1;
}
message DeleteTeamsReq {}
@@ -130,12 +129,14 @@ message DeleteTeamsReq {}
message DeleteTeamsRsp {}
message AddActionReq {
string to = 1;
string place = 1;
}
message AddActionRsp {
message AddActionRsp {}
message Action {
int64 id = 1;
string to = 2;
string place = 2;
string text = 3;
repeated Application applications = 4;
}