From 2ff26a03b2556c86681468aa51cef0fbab448ca8 Mon Sep 17 00:00:00 2001 From: gohumble Date: Thu, 9 May 2024 08:40:36 +0200 Subject: [PATCH] remove gogo.. using message response body --- cashu.proto | 4 ++++ mint.proto | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/cashu.proto b/cashu.proto index e56fdb4..e701547 100644 --- a/cashu.proto +++ b/cashu.proto @@ -19,12 +19,14 @@ service Mint { rpc Keys(KeysRequest) returns (KeysResponse){ option (google.api.http) = { get: "/v1/keys" + response_body: "message" }; }; // Starting https://github.com/cashubtc/nuts/blob/main/02.md rpc KeySets(KeysRequest) returns (KeysResponse){ option (google.api.http) = { get: "/v1/keysets" + response_body: "message" }; }; // Starting https://github.com/cashubtc/nuts/blob/main/03.md @@ -39,11 +41,13 @@ service Mint { option (google.api.http) = { post: "/v1/mint/quote/bolt11" body: "*" + response_body: "message" }; }; rpc MintQuoteState(GetQuoteBolt11StateRequest) returns (PostMintQuoteBolt11Response){ option (google.api.http) = { get: "/v1/mint/quote/bolt11/{quote_id}" + response_body: "message" }; }; rpc Mint(PostMintBolt11Request) returns (PostMintBolt11Response){ diff --git a/mint.proto b/mint.proto index af2feb0..5e3b3ee 100644 --- a/mint.proto +++ b/mint.proto @@ -2,7 +2,6 @@ syntax = "proto3"; import "message.proto"; import "signature.proto"; -import "gogoproto/gogo.proto"; package cashu.v1; option go_package = "gen/go/cashurpc"; @@ -19,10 +18,10 @@ message PostMintQuoteBolt11Request { } message PostMintQuoteBolt11Response { - string quote = 1 [(gogoproto.jsontag) = "quotes",(gogoproto.moretags) = "xml=\"dawg\"" ]; - string request = 2[(gogoproto.jsontag) = "request"]; - bool paid = 3 [(gogoproto.jsontag) = "paid"]; - int64 expiry = 4 [(gogoproto.jsontag) = "exp"]; + string quote = 1; + string request = 2; + bool paid = 3 ; + sint64 expiry = 4; }