add text waste route
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-11-28 06:43:05 +07:00
parent 26ca649e8e
commit 0ed38b7cc0
15 changed files with 744 additions and 430 deletions
+14 -7
View File
@@ -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 {