price type change

This commit is contained in:
nquidox 2025-10-03 19:14:13 +03:00
parent 6867d2d74e
commit e4f55bb195
3 changed files with 6 additions and 6 deletions

View file

@ -9,5 +9,5 @@ type Task struct {
type TaskResult struct { type TaskResult struct {
MerchUuid string MerchUuid string
Origin string Origin string
Price uint32 Price int32
} }

View file

@ -14,7 +14,7 @@ message Task{
message Result{ message Result{
string merch_uuid = 1; string merch_uuid = 1;
string origin_name = 2; string origin_name = 2;
uint32 price = 3; int32 price = 3;
} }
message ProcessorStatusRequest{} message ProcessorStatusRequest{}

View file

@ -86,7 +86,7 @@ type Result struct {
state protoimpl.MessageState `protogen:"open.v1"` state protoimpl.MessageState `protogen:"open.v1"`
MerchUuid string `protobuf:"bytes,1,opt,name=merch_uuid,json=merchUuid,proto3" json:"merch_uuid,omitempty"` 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"` 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 unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
} }
@ -135,7 +135,7 @@ func (x *Result) GetOriginName() string {
return "" return ""
} }
func (x *Result) GetPrice() uint32 { func (x *Result) GetPrice() int32 {
if x != nil { if x != nil {
return x.Price return x.Price
} }
@ -326,7 +326,7 @@ const file_task_proto_rawDesc = "" +
"merch_uuid\x18\x01 \x01(\tR\tmerchUuid\x12\x1f\n" + "merch_uuid\x18\x01 \x01(\tR\tmerchUuid\x12\x1f\n" +
"\vorigin_name\x18\x02 \x01(\tR\n" + "\vorigin_name\x18\x02 \x01(\tR\n" +
"originName\x12\x14\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" + "\x16ProcessorStatusRequest\"\xc5\x03\n" +
"\x17ProcessorStatusResponse\x12\x1a\n" + "\x17ProcessorStatusResponse\x12\x1a\n" +
"\bappStart\x18\x01 \x01(\x03R\bappStart\x12\x1c\n" + "\bappStart\x18\x01 \x01(\x03R\bappStart\x12\x1c\n" +