diff --git a/internal/shared/task.go b/internal/shared/task.go index 119babd..b835d83 100644 --- a/internal/shared/task.go +++ b/internal/shared/task.go @@ -9,5 +9,5 @@ type Task struct { type TaskResult struct { MerchUuid string Origin string - Price uint32 + Price int32 } diff --git a/proto/task.proto b/proto/task.proto index bb17f67..35cce81 100644 --- a/proto/task.proto +++ b/proto/task.proto @@ -14,7 +14,7 @@ message Task{ message Result{ string merch_uuid = 1; string origin_name = 2; - uint32 price = 3; + int32 price = 3; } message ProcessorStatusRequest{} @@ -38,4 +38,4 @@ service TaskProcessor { rpc RequestTask(google.protobuf.Empty) returns (stream Task); rpc SendResult(stream Result) returns (google.protobuf.Empty); rpc ProcessorStatus(ProcessorStatusRequest) returns (ProcessorStatusResponse); -} \ No newline at end of file +} diff --git a/proto/taskProcessor/task.pb.go b/proto/taskProcessor/task.pb.go index 7ff9f0c..886cbfa 100644 --- a/proto/taskProcessor/task.pb.go +++ b/proto/taskProcessor/task.pb.go @@ -86,7 +86,7 @@ type Result struct { state protoimpl.MessageState `protogen:"open.v1"` MerchUuid string `protobuf:"bytes,1,opt,name=merch_uuid,json=merchUuid,proto3" json:"merch_uuid,omitempty"` OriginName string `protobuf:"bytes,2,opt,name=origin_name,json=originName,proto3" json:"origin_name,omitempty"` - Price uint32 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` + Price int32 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -135,7 +135,7 @@ func (x *Result) GetOriginName() string { return "" } -func (x *Result) GetPrice() uint32 { +func (x *Result) GetPrice() int32 { if x != nil { return x.Price } @@ -326,7 +326,7 @@ const file_task_proto_rawDesc = "" + "merch_uuid\x18\x01 \x01(\tR\tmerchUuid\x12\x1f\n" + "\vorigin_name\x18\x02 \x01(\tR\n" + "originName\x12\x14\n" + - "\x05price\x18\x03 \x01(\rR\x05price\"\x18\n" + + "\x05price\x18\x03 \x01(\x05R\x05price\"\x18\n" + "\x16ProcessorStatusRequest\"\xc5\x03\n" + "\x17ProcessorStatusResponse\x12\x1a\n" + "\bappStart\x18\x01 \x01(\x03R\bappStart\x12\x1c\n" +