price type change
This commit is contained in:
parent
6867d2d74e
commit
e4f55bb195
3 changed files with 6 additions and 6 deletions
|
|
@ -9,5 +9,5 @@ type Task struct {
|
|||
type TaskResult struct {
|
||||
MerchUuid string
|
||||
Origin string
|
||||
Price uint32
|
||||
Price int32
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ message Task{
|
|||
message Result{
|
||||
string merch_uuid = 1;
|
||||
string origin_name = 2;
|
||||
uint32 price = 3;
|
||||
int32 price = 3;
|
||||
}
|
||||
|
||||
message ProcessorStatusRequest{}
|
||||
|
|
|
|||
|
|
@ -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" +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue