feat: add batch upsert tags

This commit is contained in:
Steven
2024-02-01 21:13:42 +08:00
parent fdd17ce849
commit dd06278692
13 changed files with 561 additions and 219 deletions

View File

@@ -10,6 +10,9 @@ service TagService {
rpc UpsertTag(UpsertTagRequest) returns (UpsertTagResponse) {
option (google.api.http) = {post: "/api/v2/tags"};
}
rpc BatchUpsertTag(BatchUpsertTagRequest) returns (BatchUpsertTagResponse) {
option (google.api.http) = {post: "/api/v2/tags:batchUpsert"};
}
rpc ListTags(ListTagsRequest) returns (ListTagsResponse) {
option (google.api.http) = {get: "/api/v2/tags"};
}
@@ -39,6 +42,13 @@ message UpsertTagResponse {
Tag tag = 1;
}
message BatchUpsertTagRequest {
repeated UpsertTagRequest requests = 1;
}
message BatchUpsertTagResponse {
}
message ListTagsRequest {
// The creator of tags.
// Format: users/{username}