From 7c2c01918ddd94ca7661d76b6960e8bb7909ea85 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sun, 2 Jun 2024 00:59:52 +0900 Subject: [PATCH] wip --- illust-tag-deepdanbooru/codegen.py | 11 +++++++++++ illust-tag-deepdanbooru/illust-tag-deepdanbooru.iml | 11 +++++++++++ unos-proto/src/main/proto/illust/tag/tag.proto | 5 +++++ 3 files changed, 27 insertions(+) create mode 100644 illust-tag-deepdanbooru/codegen.py create mode 100644 illust-tag-deepdanbooru/illust-tag-deepdanbooru.iml diff --git a/illust-tag-deepdanbooru/codegen.py b/illust-tag-deepdanbooru/codegen.py new file mode 100644 index 0000000..38f9c23 --- /dev/null +++ b/illust-tag-deepdanbooru/codegen.py @@ -0,0 +1,11 @@ +from grpc_tools import protoc +protoc.main(( + '', + '-I', + '../unos-proto/src/main/proto', + '--python_out=.', + + '--grpc_python_out=.', + '../unos-proto/src/main/proto/illust/data/illust_data.proto', +)) + diff --git a/illust-tag-deepdanbooru/illust-tag-deepdanbooru.iml b/illust-tag-deepdanbooru/illust-tag-deepdanbooru.iml new file mode 100644 index 0000000..0f5f67e --- /dev/null +++ b/illust-tag-deepdanbooru/illust-tag-deepdanbooru.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/unos-proto/src/main/proto/illust/tag/tag.proto b/unos-proto/src/main/proto/illust/tag/tag.proto index 2ff23f9..74423b0 100644 --- a/unos-proto/src/main/proto/illust/tag/tag.proto +++ b/unos-proto/src/main/proto/illust/tag/tag.proto @@ -9,6 +9,11 @@ message TaggingRequest{ string illust_id = 1; } +message TaggingRequests { + repeated string illust_id = 1; +} + service IllustTaggingService { rpc requestTagging(TaggingRequest) returns (google.protobuf.Empty); + rpc requestsTagging(TaggingRequests) returns (google.protobuf.Empty); } \ No newline at end of file