fixies
This commit is contained in:
parent
7784beabad
commit
bfa23681e6
35 changed files with 4374 additions and 2666 deletions
|
|
@ -96,7 +96,7 @@ service LightningPub {
|
|||
|
||||
// <App>
|
||||
|
||||
rpc AddApp(structs.AuthAppRequest) returns (structs.AuthApp) {
|
||||
rpc AddApp(structs.AddAppRequest) returns (structs.AuthApp) {
|
||||
option (auth_type) = "Admin";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/admin/app/add";
|
||||
|
|
@ -184,13 +184,13 @@ service LightningPub {
|
|||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/auth";
|
||||
}
|
||||
// USER
|
||||
rpc GetUserInfo(structs.Empty)returns(structs.UserInfo){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/info";
|
||||
option (nostr) = true;
|
||||
}
|
||||
// USER
|
||||
rpc AddProduct(structs.AddProductRequest) returns (structs.Product){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
|
|
|
|||
|
|
@ -25,15 +25,23 @@ message LndGetInfoResponse {
|
|||
string alias = 1;
|
||||
}
|
||||
|
||||
message AddAppRequest {
|
||||
string name = 1;
|
||||
bool allow_user_creation = 2;
|
||||
}
|
||||
|
||||
message AuthAppRequest {
|
||||
string name = 1;
|
||||
optional bool allow_user_creation = 2;
|
||||
}
|
||||
|
||||
message Application {
|
||||
string name = 1;
|
||||
string id = 2;
|
||||
int64 balance = 3;
|
||||
string npub = 4;
|
||||
}
|
||||
|
||||
message AuthApp {
|
||||
Application app = 1;
|
||||
string auth_token = 2;
|
||||
|
|
@ -212,6 +220,7 @@ message UserInfo{
|
|||
string userId = 1;
|
||||
int64 balance = 2;
|
||||
}
|
||||
|
||||
message GetUserOperationsRequest{
|
||||
int64 latestIncomingInvoice = 1;
|
||||
int64 latestOutgoingInvoice = 2;
|
||||
|
|
@ -229,7 +238,7 @@ enum UserOperationType {
|
|||
INCOMING_USER_TO_USER=5;
|
||||
}
|
||||
|
||||
message UserOperation{
|
||||
message UserOperation {
|
||||
int64 paidAtUnix=1;
|
||||
UserOperationType type = 2;
|
||||
bool inbound =3;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue