chore: migrate get tag suggestions

This commit is contained in:
Steven
2023-11-22 22:33:02 +08:00
parent 0cf280fa9a
commit bcd8a5a7a9
9 changed files with 461 additions and 75 deletions

View File

@@ -16,6 +16,9 @@ service TagService {
rpc DeleteTag(DeleteTagRequest) returns (DeleteTagResponse) {
option (google.api.http) = {delete: "/api/v2/tags"};
}
rpc GetTagSuggestions(GetTagSuggestionsRequest) returns (GetTagSuggestionsResponse) {
option (google.api.http) = {get: "/api/v2/tags/suggestion"};
}
}
message Tag {
@@ -36,7 +39,7 @@ message UpsertTagResponse {
message ListTagsRequest {
// The creator of tags.
// Format: users/{username}
string creator = 1;
string user = 1;
}
message ListTagsResponse {
@@ -48,3 +51,13 @@ message DeleteTagRequest {
}
message DeleteTagResponse {}
message GetTagSuggestionsRequest {
// The creator of tags.
// Format: users/{username}
string user = 1;
}
message GetTagSuggestionsResponse {
repeated string tags = 1;
}