This commit is contained in:
+10
-10
@@ -73,6 +73,11 @@ service SmmCore {
|
||||
delete: "/budgets/{budget_id}/users/{user_id}"
|
||||
};
|
||||
}
|
||||
rpc GetBudgetCategories(GetBudgetCategoriesReq) returns (Categories) {
|
||||
option (google.api.http) = {
|
||||
get: "/budgets/{budget_id}/categories"
|
||||
};
|
||||
}
|
||||
|
||||
// categories
|
||||
rpc AddCategory(AddCategoryReq) returns (Category) {
|
||||
@@ -86,11 +91,6 @@ service SmmCore {
|
||||
put: "/categories/{id}"
|
||||
};
|
||||
}
|
||||
rpc GetCategories(GetCategoriesReq) returns (Categories) {
|
||||
option (google.api.http) = {
|
||||
get: "/categories"
|
||||
};
|
||||
}
|
||||
rpc DeleteCategories(DeleteCategoriesReq) returns (Category) {
|
||||
option (google.api.http) = {
|
||||
delete: "/categories/{id}"
|
||||
@@ -150,6 +150,7 @@ message Budget {
|
||||
string name = 2;
|
||||
int32 start_day = 3;
|
||||
int32 monthly_limit = 4;
|
||||
repeated Category categories = 5;
|
||||
}
|
||||
|
||||
message UpdateBudgetReq {
|
||||
@@ -187,6 +188,10 @@ message RemoveUserFromBudgetReq {
|
||||
int32 budget_id = 2;
|
||||
}
|
||||
|
||||
message GetBudgetCategoriesReq {
|
||||
int32 budget_id = 2;
|
||||
}
|
||||
|
||||
message AddCategoryReq {
|
||||
string name = 1;
|
||||
int32 budget_id = 2;
|
||||
@@ -209,11 +214,6 @@ message UpdateCategoryReq {
|
||||
int32 monthly_limit = 4;
|
||||
}
|
||||
|
||||
message GetCategoriesReq {
|
||||
bool favorite = 1;
|
||||
int32 budget_id = 2;
|
||||
}
|
||||
|
||||
message Categories {
|
||||
repeated Category categories = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user