feat: sqlc, nix formatting
This commit is contained in:
@ -5,12 +5,12 @@ package item.v1;
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
message Item {
|
||||
optional int64 id = 1;
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
string description = 3;
|
||||
float price = 4;
|
||||
int32 quantity = 5;
|
||||
optional google.protobuf.Timestamp added = 6;
|
||||
google.protobuf.Timestamp added = 3;
|
||||
string description = 4;
|
||||
float price = 5;
|
||||
int32 quantity = 6;
|
||||
}
|
||||
|
||||
service ItemService {
|
||||
@ -40,19 +40,25 @@ message GetItemsResponse {
|
||||
int64 count = 2;
|
||||
}
|
||||
|
||||
message CreateItemRequest {
|
||||
Item item = 1;
|
||||
message CreateItemRequest {
|
||||
string name = 1;
|
||||
string description = 2;
|
||||
float price = 3;
|
||||
int32 quantity = 4;
|
||||
}
|
||||
message CreateItemResponse {
|
||||
Item item = 1;
|
||||
int64 id = 1;
|
||||
google.protobuf.Timestamp added = 2;
|
||||
}
|
||||
|
||||
message UpdateItemRequest {
|
||||
Item item = 1;
|
||||
}
|
||||
message UpdateItemResponse {
|
||||
Item item = 1;
|
||||
int64 id = 1;
|
||||
optional string name = 2;
|
||||
optional string description = 3;
|
||||
optional float price = 4;
|
||||
optional int32 quantity = 5;
|
||||
}
|
||||
message UpdateItemResponse {}
|
||||
|
||||
message DeleteItemRequest {
|
||||
int64 id = 1;
|
||||
|
Reference in New Issue
Block a user