mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: add batch upsert tags
This commit is contained in:
@@ -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}
|
||||
|
Reference in New Issue
Block a user