Skip to content
Open
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
7 changes: 4 additions & 3 deletions challenges/pt-br/new-backend-challenge/discount.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ syntax = "proto3";

package discount;

// Service that return mocked discount percentage.
// Service that return mocked discount percentage
service Discount {
rpc GetDiscount(GetDiscountRequest) returns (GetDiscountResponse) {}
}

// productID used to represent a product. Ilustrative only.
// product_id used to represent a product. Ilustrative only.
message GetDiscountRequest {
int32 productID = 1;
int32 product_id = 1;
}

// The discount percentage is a fixed value.
message GetDiscountResponse {
float percentage = 1;
}