-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add tag service proto definition (#2049)
* chore: add tag proto definition * chore: rename
- Loading branch information
Showing
11 changed files
with
572 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
syntax = "proto3"; | ||
|
||
package memos.apiv2; | ||
|
||
option go_package = "gen/apiv2"; | ||
|
||
service TagService { | ||
rpc ListTags(ListTagsRequest) returns (ListTagsResponse); | ||
} | ||
|
||
message Tag { | ||
string name = 1; | ||
int32 creator_id = 2; | ||
} | ||
|
||
message ListTagsRequest { | ||
int32 creator_id = 1; | ||
} | ||
|
||
message ListTagsResponse { | ||
repeated Tag tags = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
version: v1 | ||
managed: | ||
enabled: true | ||
go_package_prefix: | ||
default: github.com/usememos/memos/proto/gen | ||
plugins: | ||
- plugin: go | ||
out: gen-go | ||
opt: paths=source_relative | ||
- plugin: buf.build/grpc/go:v1.3.0 | ||
out: gen | ||
opt: | ||
- paths=source_relative | ||
- plugin: buf.build/bufbuild/connect-go:v1.10.0 | ||
out: gen | ||
opt: | ||
- paths=source_relative | ||
- plugin: buf.build/protocolbuffers/go:v1.31.0 | ||
out: gen | ||
opt: | ||
- paths=source_relative |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.