This commit is contained in:
+14
-7
@@ -18,13 +18,7 @@ service SmmCore {
|
||||
};
|
||||
}
|
||||
|
||||
// users
|
||||
rpc AddUser(AddUserReq) returns (User) {
|
||||
option (google.api.http) = {
|
||||
post: "/users",
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
// login
|
||||
rpc Login(LoginReq) returns (User) {
|
||||
option (google.api.http) = {
|
||||
post: "/login",
|
||||
@@ -104,6 +98,12 @@ service SmmCore {
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
rpc AddWasteByText(AddWasteTextReq) returns (Waste) {
|
||||
option (google.api.http) = {
|
||||
post: "/wastes/text",
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
rpc DeleteWaste(DeleteWasteReq) returns (Waste) {
|
||||
option (google.api.http) = {
|
||||
delete: "/wastes/{id}"
|
||||
@@ -227,6 +227,13 @@ message AddWasteReq {
|
||||
int32 price = 2;
|
||||
float amount = 3;
|
||||
int32 category_id = 4;
|
||||
int32 budget_id = 5;
|
||||
}
|
||||
|
||||
message AddWasteTextReq {
|
||||
string text = 1;
|
||||
int32 category_id = 2;
|
||||
int32 budget_id = 3;
|
||||
}
|
||||
|
||||
message Waste {
|
||||
|
||||
Reference in New Issue
Block a user