refactor: update part of resource identifier

This commit is contained in:
johnnyjoy
2025-01-19 23:03:22 +08:00
parent cda18a37c0
commit f1308ddd27
9 changed files with 191 additions and 179 deletions

View File

@@ -116,8 +116,8 @@ service MemoService {
}
// DeleteMemoReaction deletes a reaction for a memo.
rpc DeleteMemoReaction(DeleteMemoReactionRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {delete: "/api/v1/reactions/{reaction_id}"};
option (google.api.method_signature) = "reaction_id";
option (google.api.http) = {delete: "/api/v1/reactions/{id}"};
option (google.api.method_signature) = "id";
}
}
@@ -336,5 +336,7 @@ message UpsertMemoReactionRequest {
}
message DeleteMemoReactionRequest {
int32 reaction_id = 1;
// The id of the reaction.
// Refer to the `Reaction.id`.
int32 id = 1;
}