-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from Monify-Dev/FriendBill
- Loading branch information
Showing
11 changed files
with
1,562 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
syntax = "proto3"; | ||
option go_package = "github.com/SpeedReach/monify"; | ||
|
||
import "google/api/annotations.proto"; | ||
import "google/protobuf/empty.proto"; | ||
|
||
service FriendBillService { | ||
rpc CreateFriendBill(CreateFriendBillRequest) returns (CreateFriendBillResponse) { | ||
option (google.api.http) = { | ||
post: "/v1/friend_bill" | ||
body: "*" | ||
}; | ||
} | ||
|
||
rpc DeleteFriendBill(DeleteFriendBillRequest) returns (google.protobuf.Empty) { | ||
option (google.api.http) = { | ||
delete: "/v1/friend_bill" | ||
}; | ||
} | ||
|
||
rpc ModifyFriendBill(ModifyFriendBillRequest) returns (google.protobuf.Empty) { | ||
option (google.api.http) = { | ||
put: "/v1/friend_bill" | ||
body: "*" | ||
}; | ||
} | ||
|
||
rpc ListFriendBill (ListFriendBillRequest) returns (ListFriendBillResponse) { | ||
option (google.api.http) = { | ||
get: "/v1/friend_bill" | ||
}; | ||
} | ||
} | ||
|
||
message CreateFriendBillRequest { | ||
string relation_id = 1; | ||
double amount = 2; | ||
string title = 3; | ||
string description = 4; | ||
} | ||
|
||
message CreateFriendBillResponse { | ||
string friend_bill_id = 1; | ||
} | ||
|
||
message DeleteFriendBillRequest { | ||
string friend_bill_id = 1; | ||
} | ||
|
||
message ModifyFriendBillRequest { | ||
string friend_bill_id = 1; | ||
double amount = 2; | ||
string title = 3; | ||
string description = 4; | ||
} | ||
|
||
message ListFriendBillRequest { | ||
string relation_id = 1; | ||
} | ||
|
||
message ListFriendBillResponse { | ||
repeated FriendBill friend_bills = 1; | ||
//double total = 2; | ||
} | ||
|
||
message FriendBill { | ||
string friend_bill_id = 1; | ||
double amount = 2; | ||
string title = 3; | ||
string description = 4; | ||
} |
Oops, something went wrong.