default cb url for user
This commit is contained in:
parent
19ee91cd5f
commit
61da2eea77
19 changed files with 237 additions and 13 deletions
|
|
@ -343,6 +343,12 @@ service LightningPub {
|
|||
option (http_route) = "/api/user/info";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc UpdateCallbackUrl(structs.CallbackUrl)returns(structs.CallbackUrl){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/cb/update";
|
||||
option (nostr) = true;
|
||||
}
|
||||
|
||||
rpc AddProduct(structs.AddProductRequest) returns (structs.Product){
|
||||
option (auth_type) = "User";
|
||||
|
|
|
|||
|
|
@ -347,6 +347,10 @@ message HandleLnurlPayResponse {
|
|||
repeated Empty routes = 2;
|
||||
}
|
||||
|
||||
message CallbackUrl {
|
||||
string url = 1;
|
||||
}
|
||||
|
||||
message UserInfo{
|
||||
string userId = 1;
|
||||
int64 balance = 2;
|
||||
|
|
@ -357,8 +361,8 @@ message UserInfo{
|
|||
int64 network_max_fee_fixed = 7;
|
||||
string noffer = 8;
|
||||
string ndebit = 9;
|
||||
string callback_url = 10;
|
||||
}
|
||||
|
||||
message GetUserOperationsRequest{
|
||||
int64 latestIncomingInvoice = 1;
|
||||
int64 latestOutgoingInvoice = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue