mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: implement part of tag service (#2051)
* feat: add grpc gateway tempalte * chore: update * chore: move directory * chore: update
This commit is contained in:
26
proto/api/v2/tag_service.proto
Normal file
26
proto/api/v2/tag_service.proto
Normal file
@@ -0,0 +1,26 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package memos.api.v2;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
option go_package = "gen/api/v2";
|
||||
|
||||
service TagService {
|
||||
rpc ListTags(ListTagsRequest) returns (ListTagsResponse) {
|
||||
option (google.api.http) = {get: "/api/v2/tags"};
|
||||
}
|
||||
}
|
||||
|
||||
message Tag {
|
||||
string name = 1;
|
||||
int32 creator_id = 2;
|
||||
}
|
||||
|
||||
message ListTagsRequest {
|
||||
int32 creator_id = 1;
|
||||
}
|
||||
|
||||
message ListTagsResponse {
|
||||
repeated Tag tags = 1;
|
||||
}
|
Reference in New Issue
Block a user