feat: bob
This commit is contained in:
@ -5,11 +5,11 @@ package item.v1;
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
message Item {
|
||||
optional uint32 id = 1;
|
||||
optional int64 id = 1;
|
||||
string name = 2;
|
||||
string description = 3;
|
||||
float price = 4;
|
||||
uint32 quantity = 5;
|
||||
int32 quantity = 5;
|
||||
optional google.protobuf.Timestamp added = 6;
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ service ItemService {
|
||||
}
|
||||
|
||||
message GetItemRequest {
|
||||
uint32 id = 1;
|
||||
int64 id = 1;
|
||||
}
|
||||
message GetItemResponse {
|
||||
Item item = 1;
|
||||
@ -32,15 +32,15 @@ message GetItemsRequest {
|
||||
optional google.protobuf.Timestamp start = 1;
|
||||
optional google.protobuf.Timestamp end = 2;
|
||||
optional string filter = 3;
|
||||
optional uint32 limit = 4;
|
||||
optional uint32 offset = 5;
|
||||
optional int32 limit = 4;
|
||||
optional int32 offset = 5;
|
||||
}
|
||||
message GetItemsResponse {
|
||||
repeated Item items = 1;
|
||||
uint64 count = 2;
|
||||
int64 count = 2;
|
||||
}
|
||||
|
||||
message CreateItemRequest {
|
||||
message CreateItemRequest {
|
||||
Item item = 1;
|
||||
}
|
||||
message CreateItemResponse {
|
||||
@ -55,6 +55,6 @@ message UpdateItemResponse {
|
||||
}
|
||||
|
||||
message DeleteItemRequest {
|
||||
uint32 id = 1;
|
||||
int64 id = 1;
|
||||
}
|
||||
message DeleteItemResponse {}
|
Reference in New Issue
Block a user