feat: implement part of tag service (#2051)

* feat: add grpc gateway tempalte

* chore: update

* chore: move directory

* chore: update
This commit is contained in:
boojack
2023-07-30 00:00:49 +08:00
committed by GitHub
parent 9cedb3cc6c
commit 89ba2a6540
15 changed files with 446 additions and 243 deletions

View 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;
}