Skip to content

Commit

Permalink
Merge pull request #8 from Monify-Dev/FriendBill
Browse files Browse the repository at this point in the history
  • Loading branch information
SpeedReach authored Aug 4, 2024
2 parents fde31eb + 45122bc commit 96a1ca6
Show file tree
Hide file tree
Showing 11 changed files with 1,562 additions and 0 deletions.
71 changes: 71 additions & 0 deletions protobuf/friend_bill.proto
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;
}
Loading

0 comments on commit 96a1ca6

Please sign in to comment.