Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Octo/unitcost: "adding of dedicated attributes" #505

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion api/cover/unitcost.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,19 @@ message UnitCostData{
string id = 1;
string unitName = 2;
string description = 3;
map<string, double> unitItems = 4;
repeated UnitItem unitItems = 4;
string createdBy = 5;
string createTime = 6;
string lastUpdatedAt = 7;
}

message UnitItem{
string itemName = 1;
double distribution = 2;
repeated ResourcesFilter dedicatedResourcesCombination = 3;
}

message ResourcesFilter{
map<string, string> andFilters = 1;
}

4 changes: 2 additions & 2 deletions cover/v1/cover.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3443,7 +3443,7 @@ message ListUnitTypesResponse{

message CreateUnitTypeRequest{
string unitName = 1;
map<string, double> unitItems = 2;
repeated api.cover.UnitItem unitItems = 2;
string description = 3;
}

Expand All @@ -3468,7 +3468,7 @@ message UpdateUnitTypeRequest{
string unitName = 2;

//Optional
map<string, double> unitItems = 3;
repeated api.cover.UnitItem unitItems = 3;

//Optional
string description = 4;
Expand Down
Loading
Loading