From 6e14b4ce27f93bb0b2c16944e1b082b0c46e362a Mon Sep 17 00:00:00 2001 From: gohumble Date: Thu, 9 May 2024 09:58:32 +0200 Subject: [PATCH] remove gogo.. using message response body --- cashu.proto | 1 + mint.proto | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cashu.proto b/cashu.proto index 1a4bdbb..610dcfa 100644 --- a/cashu.proto +++ b/cashu.proto @@ -21,6 +21,7 @@ service Mint { get: "/v1/keys" response_body: "message" additional_bindings { + body: "*" response_body: "message" } }; diff --git a/mint.proto b/mint.proto index 5e3b3ee..1c81bfc 100644 --- a/mint.proto +++ b/mint.proto @@ -4,6 +4,7 @@ import "message.proto"; import "signature.proto"; package cashu.v1; option go_package = "gen/go/cashurpc"; +import "google/protobuf/wrappers.proto"; enum UnitType { @@ -18,10 +19,10 @@ message PostMintQuoteBolt11Request { } message PostMintQuoteBolt11Response { - string quote = 1; - string request = 2; - bool paid = 3 ; - sint64 expiry = 4; + google.protobuf.StringValue quote = 1; + google.protobuf.StringValue request = 2; + google.protobuf.BoolValue paid = 3; + google.protobuf.UInt64Value expiry = 4; }