order apis

This commit is contained in:
2026-08-26 17:32:54 +08:00
parent eabdc8772e
commit 299191749b
32 changed files with 1321 additions and 251 deletions
+21 -3
View File
@@ -194,6 +194,7 @@ type CreateOrderRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
AddressId int64 `protobuf:"varint,1,opt,name=address_id,json=addressId,proto3" json:"address_id,omitempty"`
Note string `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"`
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -242,12 +243,20 @@ func (x *CreateOrderRequest) GetNote() string {
return ""
}
func (x *CreateOrderRequest) GetType() int32 {
if x != nil {
return x.Type
}
return 0
}
type CreateOrderOneRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
AddressId int64 `protobuf:"varint,1,opt,name=address_id,json=addressId,proto3" json:"address_id,omitempty"`
Note string `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"`
Productid int64 `protobuf:"varint,3,opt,name=productid,proto3" json:"productid,omitempty"`
Num int32 `protobuf:"varint,4,opt,name=num,proto3" json:"num,omitempty"`
Type int32 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -310,6 +319,13 @@ func (x *CreateOrderOneRequest) GetNum() int32 {
return 0
}
func (x *CreateOrderOneRequest) GetType() int32 {
if x != nil {
return x.Type
}
return 0
}
type EditAddressRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
District string `protobuf:"bytes,1,opt,name=district,proto3" json:"district,omitempty"`
@@ -1033,17 +1049,19 @@ const file_order_order_proto_rawDesc = "" +
"\bResponse\x12\x12\n" +
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x10\n" +
"\x03msg\x18\x02 \x01(\tR\x03msg\x12\x12\n" +
"\x04data\x18\x03 \x01(\tR\x04data\"G\n" +
"\x04data\x18\x03 \x01(\tR\x04data\"[\n" +
"\x12CreateOrderRequest\x12\x1d\n" +
"\n" +
"address_id\x18\x01 \x01(\x03R\taddressId\x12\x12\n" +
"\x04note\x18\x02 \x01(\tR\x04note\"z\n" +
"\x04note\x18\x02 \x01(\tR\x04note\x12\x12\n" +
"\x04type\x18\x03 \x01(\x05R\x04type\"\x8e\x01\n" +
"\x15CreateOrderOneRequest\x12\x1d\n" +
"\n" +
"address_id\x18\x01 \x01(\x03R\taddressId\x12\x12\n" +
"\x04note\x18\x02 \x01(\tR\x04note\x12\x1c\n" +
"\tproductid\x18\x03 \x01(\x03R\tproductid\x12\x10\n" +
"\x03num\x18\x04 \x01(\x05R\x03num\"\xd7\x01\n" +
"\x03num\x18\x04 \x01(\x05R\x03num\x12\x12\n" +
"\x04type\x18\x05 \x01(\x05R\x04type\"\xd7\x01\n" +
"\x12EditAddressRequest\x12\x1a\n" +
"\bdistrict\x18\x01 \x01(\tR\bdistrict\x12\x18\n" +
"\aaddress\x18\x02 \x01(\tR\aaddress\x12\x12\n" +