From 49944c4f89e3280a54a9d686f8dfb454dfc2b86b Mon Sep 17 00:00:00 2001 From: binsee <5285894+binsee@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:10:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E2=9C=A8=20add=20tag=20modify=20ap?= =?UTF-8?q?i?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proto/wechaty/puppet.proto | 7 +++++++ proto/wechaty/puppet/tag.proto | 10 ++++++++++ tests/puppet-server-impl.ts | 8 +++++++- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/proto/wechaty/puppet.proto b/proto/wechaty/puppet.proto index eaad24c..d3420df 100644 --- a/proto/wechaty/puppet.proto +++ b/proto/wechaty/puppet.proto @@ -649,6 +649,13 @@ service Puppet { }; } + rpc tagTagModify (puppet.TagTagModifyRequest) returns (puppet.TagTagModifyResponse) { + option (google.api.http) = { + post: "/tag/modify" + body: "*" + }; + } + rpc TagPayload (puppet.TagPayloadRequest) returns (puppet.TagPayloadResponse) { option (google.api.http) = { post: "/tag/payload" diff --git a/proto/wechaty/puppet/tag.proto b/proto/wechaty/puppet/tag.proto index 3ebe256..3879ea9 100644 --- a/proto/wechaty/puppet/tag.proto +++ b/proto/wechaty/puppet/tag.proto @@ -71,6 +71,16 @@ message TagTagDeleteRequest { message TagTagDeleteResponse { } +message TagTagModifyRequest { + string tag_id = 1; + string tag_new_name = 2; +} + +message TagTagModifyResponse { + string tag_id = 1; + string tag_name = 2; +} + message TagGroupListRequest { } diff --git a/tests/puppet-server-impl.ts b/tests/puppet-server-impl.ts index 0ada997..f1d9ac7 100644 --- a/tests/puppet-server-impl.ts +++ b/tests/puppet-server-impl.ts @@ -1,7 +1,7 @@ /* eslint-disable sort-keys */ import type { puppet, -} from '../src/mod.js' +} from '../src/mod.js' type IPuppetServer = puppet.IPuppetServer @@ -478,6 +478,12 @@ export const puppetServerImpl: IPuppetServer = { throw new Error('not implemented.') }, + tagTagModify: (call, callback) => { + void call + void callback + throw new Error('not implemented.') + }, + tagGroupList: (call, callback) => { void call void callback From 766d4c7a2db806fa5c86c623a266fa940b45b2c0 Mon Sep 17 00:00:00 2001 From: binsee <5285894+binsee@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:11:47 +0800 Subject: [PATCH 2/2] 1.0.77 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 437ba5f..a4f7dab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@juzi/wechaty-grpc", - "version": "1.0.76", + "version": "1.0.77", "description": "gRPC for Wechaty", "type": "module", "exports": {