// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v7.35.1 // source: module/ec/order/proto/cart.proto package order import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type CartGetRequest struct { state protoimpl.MessageState `protogen:"open.v1"` CarIdentity string `protobuf:"bytes,1,opt,name=car_identity,proto3" json:"car_identity,omitempty"` // 购物车唯一码,主要是用于未登录购物 PassportIdentity string `protobuf:"bytes,2,opt,name=passport_identity,proto3" json:"passport_identity,omitempty"` // 登录后的用户唯一码 Passport string `protobuf:"bytes,3,opt,name=passport,proto3" json:"passport,omitempty"` // 用户 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CartGetRequest) Reset() { *x = CartGetRequest{} mi := &file_module_ec_order_proto_cart_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CartGetRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CartGetRequest) ProtoMessage() {} func (x *CartGetRequest) ProtoReflect() protoreflect.Message { mi := &file_module_ec_order_proto_cart_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CartGetRequest.ProtoReflect.Descriptor instead. func (*CartGetRequest) Descriptor() ([]byte, []int) { return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{0} } func (x *CartGetRequest) GetCarIdentity() string { if x != nil { return x.CarIdentity } return "" } func (x *CartGetRequest) GetPassportIdentity() string { if x != nil { return x.PassportIdentity } return "" } func (x *CartGetRequest) GetPassport() string { if x != nil { return x.Passport } return "" } type CartGetReply struct { state protoimpl.MessageState `protogen:"open.v1"` Data []*CartItem `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // 购物车中的商品数据列表 CarIdentity string `protobuf:"bytes,2,opt,name=car_identity,proto3" json:"car_identity,omitempty"` // 当前账号购物车唯一标识 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CartGetReply) Reset() { *x = CartGetReply{} mi := &file_module_ec_order_proto_cart_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CartGetReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*CartGetReply) ProtoMessage() {} func (x *CartGetReply) ProtoReflect() protoreflect.Message { mi := &file_module_ec_order_proto_cart_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CartGetReply.ProtoReflect.Descriptor instead. func (*CartGetReply) Descriptor() ([]byte, []int) { return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{1} } func (x *CartGetReply) GetData() []*CartItem { if x != nil { return x.Data } return nil } func (x *CartGetReply) GetCarIdentity() string { if x != nil { return x.CarIdentity } return "" } type CartItem struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID ProductId int64 `protobuf:"varint,2,opt,name=product_id,proto3" json:"product_id,omitempty"` // 商品ID Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` //商品名称 CoverImage string `protobuf:"bytes,4,opt,name=cover_image,proto3" json:"cover_image,omitempty"` //商品封面图片 SalesPrice int64 `protobuf:"varint,5,opt,name=sales_price,proto3" json:"sales_price,omitempty"` //商品销售价格 ProductIdentity string `protobuf:"bytes,6,opt,name=product_identity,proto3" json:"product_identity,omitempty"` // 产品唯一码 ProductArgs string `protobuf:"bytes,7,opt,name=product_args,proto3" json:"product_args,omitempty"` // 商品属性 Number int32 `protobuf:"varint,8,opt,name=number,proto3" json:"number,omitempty"` // 数量 UnitPrice int64 `protobuf:"varint,9,opt,name=unit_price,proto3" json:"unit_price,omitempty"` // 实际单价 TotalPrice int64 `protobuf:"varint,10,opt,name=total_price,proto3" json:"total_price,omitempty"` // 总价 Identity string `protobuf:"bytes,11,opt,name=identity,proto3" json:"identity,omitempty"` // 购物车商品信息唯一标识 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CartItem) Reset() { *x = CartItem{} mi := &file_module_ec_order_proto_cart_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CartItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*CartItem) ProtoMessage() {} func (x *CartItem) ProtoReflect() protoreflect.Message { mi := &file_module_ec_order_proto_cart_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CartItem.ProtoReflect.Descriptor instead. func (*CartItem) Descriptor() ([]byte, []int) { return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{2} } func (x *CartItem) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *CartItem) GetProductId() int64 { if x != nil { return x.ProductId } return 0 } func (x *CartItem) GetTitle() string { if x != nil { return x.Title } return "" } func (x *CartItem) GetCoverImage() string { if x != nil { return x.CoverImage } return "" } func (x *CartItem) GetSalesPrice() int64 { if x != nil { return x.SalesPrice } return 0 } func (x *CartItem) GetProductIdentity() string { if x != nil { return x.ProductIdentity } return "" } func (x *CartItem) GetProductArgs() string { if x != nil { return x.ProductArgs } return "" } func (x *CartItem) GetNumber() int32 { if x != nil { return x.Number } return 0 } func (x *CartItem) GetUnitPrice() int64 { if x != nil { return x.UnitPrice } return 0 } func (x *CartItem) GetTotalPrice() int64 { if x != nil { return x.TotalPrice } return 0 } func (x *CartItem) GetIdentity() string { if x != nil { return x.Identity } return "" } type CartAddRequest struct { state protoimpl.MessageState `protogen:"open.v1"` CartIdentity string `protobuf:"bytes,1,opt,name=cart_identity,proto3" json:"cart_identity,omitempty"` // 购物车唯一码,主要是用于未登录购物 PassportIdentity string `protobuf:"bytes,2,opt,name=passport_identity,proto3" json:"passport_identity,omitempty"` // 登录后的用户唯一码 ProductIdentity string `protobuf:"bytes,3,opt,name=product_identity,proto3" json:"product_identity,omitempty"` // 商品唯一码 ProductId int64 `protobuf:"varint,4,opt,name=product_id,proto3" json:"product_id,omitempty"` // 商品ID ProductArgs string `protobuf:"bytes,5,opt,name=product_args,proto3" json:"product_args,omitempty"` // 商品属性 Number int32 `protobuf:"varint,6,opt,name=number,proto3" json:"number,omitempty"` // 数量 SpecId int64 `protobuf:"varint,7,opt,name=spec_id,proto3" json:"spec_id,omitempty"` // 规格id unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CartAddRequest) Reset() { *x = CartAddRequest{} mi := &file_module_ec_order_proto_cart_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CartAddRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CartAddRequest) ProtoMessage() {} func (x *CartAddRequest) ProtoReflect() protoreflect.Message { mi := &file_module_ec_order_proto_cart_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CartAddRequest.ProtoReflect.Descriptor instead. func (*CartAddRequest) Descriptor() ([]byte, []int) { return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{3} } func (x *CartAddRequest) GetCartIdentity() string { if x != nil { return x.CartIdentity } return "" } func (x *CartAddRequest) GetPassportIdentity() string { if x != nil { return x.PassportIdentity } return "" } func (x *CartAddRequest) GetProductIdentity() string { if x != nil { return x.ProductIdentity } return "" } func (x *CartAddRequest) GetProductId() int64 { if x != nil { return x.ProductId } return 0 } func (x *CartAddRequest) GetProductArgs() string { if x != nil { return x.ProductArgs } return "" } func (x *CartAddRequest) GetNumber() int32 { if x != nil { return x.Number } return 0 } func (x *CartAddRequest) GetSpecId() int64 { if x != nil { return x.SpecId } return 0 } type CartSetRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // 购物车Identity Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // 数量 UnitPrice int64 `protobuf:"varint,3,opt,name=unit_price,proto3" json:"unit_price,omitempty"` // 单价 Id int64 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` // 商品ID Updates []*Updates `protobuf:"bytes,5,rep,name=updates,proto3" json:"updates,omitempty"` // 批量更新 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CartSetRequest) Reset() { *x = CartSetRequest{} mi := &file_module_ec_order_proto_cart_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CartSetRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CartSetRequest) ProtoMessage() {} func (x *CartSetRequest) ProtoReflect() protoreflect.Message { mi := &file_module_ec_order_proto_cart_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CartSetRequest.ProtoReflect.Descriptor instead. func (*CartSetRequest) Descriptor() ([]byte, []int) { return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{4} } func (x *CartSetRequest) GetIdentity() string { if x != nil { return x.Identity } return "" } func (x *CartSetRequest) GetNumber() int32 { if x != nil { return x.Number } return 0 } func (x *CartSetRequest) GetUnitPrice() int64 { if x != nil { return x.UnitPrice } return 0 } func (x *CartSetRequest) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *CartSetRequest) GetUpdates() []*Updates { if x != nil { return x.Updates } return nil } type Updates struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 商品ID Number int64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // 数量 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Updates) Reset() { *x = Updates{} mi := &file_module_ec_order_proto_cart_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Updates) String() string { return protoimpl.X.MessageStringOf(x) } func (*Updates) ProtoMessage() {} func (x *Updates) ProtoReflect() protoreflect.Message { mi := &file_module_ec_order_proto_cart_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Updates.ProtoReflect.Descriptor instead. func (*Updates) Descriptor() ([]byte, []int) { return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{5} } func (x *Updates) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *Updates) GetNumber() int64 { if x != nil { return x.Number } return 0 } type CartDelRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Id []int64 `protobuf:"varint,3,rep,packed,name=id,proto3" json:"id,omitempty"` // 购物车ID unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CartDelRequest) Reset() { *x = CartDelRequest{} mi := &file_module_ec_order_proto_cart_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CartDelRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CartDelRequest) ProtoMessage() {} func (x *CartDelRequest) ProtoReflect() protoreflect.Message { mi := &file_module_ec_order_proto_cart_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CartDelRequest.ProtoReflect.Descriptor instead. func (*CartDelRequest) Descriptor() ([]byte, []int) { return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{6} } func (x *CartDelRequest) GetId() []int64 { if x != nil { return x.Id } return nil } var File_module_ec_order_proto_cart_proto protoreflect.FileDescriptor const file_module_ec_order_proto_cart_proto_rawDesc = "" + "\n" + " module/ec/order/proto/cart.proto\x12\x05order\x1a!module/ec/order/proto/const.proto\"~\n" + "\x0eCartGetRequest\x12\"\n" + "\fcar_identity\x18\x01 \x01(\tR\fcar_identity\x12,\n" + "\x11passport_identity\x18\x02 \x01(\tR\x11passport_identity\x12\x1a\n" + "\bpassport\x18\x03 \x01(\tR\bpassport\"W\n" + "\fCartGetReply\x12#\n" + "\x04data\x18\x01 \x03(\v2\x0f.order.CartItemR\x04data\x12\"\n" + "\fcar_identity\x18\x02 \x01(\tR\fcar_identity\"\xda\x02\n" + "\bCartItem\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1e\n" + "\n" + "product_id\x18\x02 \x01(\x03R\n" + "product_id\x12\x14\n" + "\x05title\x18\x03 \x01(\tR\x05title\x12 \n" + "\vcover_image\x18\x04 \x01(\tR\vcover_image\x12 \n" + "\vsales_price\x18\x05 \x01(\x03R\vsales_price\x12*\n" + "\x10product_identity\x18\x06 \x01(\tR\x10product_identity\x12\"\n" + "\fproduct_args\x18\a \x01(\tR\fproduct_args\x12\x16\n" + "\x06number\x18\b \x01(\x05R\x06number\x12\x1e\n" + "\n" + "unit_price\x18\t \x01(\x03R\n" + "unit_price\x12 \n" + "\vtotal_price\x18\n" + " \x01(\x03R\vtotal_price\x12\x1a\n" + "\bidentity\x18\v \x01(\tR\bidentity\"\x86\x02\n" + "\x0eCartAddRequest\x12$\n" + "\rcart_identity\x18\x01 \x01(\tR\rcart_identity\x12,\n" + "\x11passport_identity\x18\x02 \x01(\tR\x11passport_identity\x12*\n" + "\x10product_identity\x18\x03 \x01(\tR\x10product_identity\x12\x1e\n" + "\n" + "product_id\x18\x04 \x01(\x03R\n" + "product_id\x12\"\n" + "\fproduct_args\x18\x05 \x01(\tR\fproduct_args\x12\x16\n" + "\x06number\x18\x06 \x01(\x05R\x06number\x12\x18\n" + "\aspec_id\x18\a \x01(\x03R\aspec_id\"\x9e\x01\n" + "\x0eCartSetRequest\x12\x1a\n" + "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x16\n" + "\x06number\x18\x02 \x01(\x05R\x06number\x12\x1e\n" + "\n" + "unit_price\x18\x03 \x01(\x03R\n" + "unit_price\x12\x0e\n" + "\x02id\x18\x04 \x01(\x03R\x02id\x12(\n" + "\aupdates\x18\x05 \x03(\v2\x0e.order.UpdatesR\aupdates\"1\n" + "\aUpdates\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" + "\x06number\x18\x02 \x01(\x03R\x06number\" \n" + "\x0eCartDelRequest\x12\x0e\n" + "\x02id\x18\x03 \x03(\x03R\x02id2\x8f\x02\n" + "\x04Cart\x125\n" + "\x05Fetch\x12\x15.order.CartGetRequest\x1a\x13.order.CartGetReply\"\x00\x12D\n" + "\x06Create\x12\x15.order.CartAddRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12D\n" + "\x06Modify\x12\x15.order.CartSetRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12D\n" + "\x06Delete\x12\x15.order.CartDelRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00B#Z!bsm/full/module/ec/order/pb;orderb\x06proto3" var ( file_module_ec_order_proto_cart_proto_rawDescOnce sync.Once file_module_ec_order_proto_cart_proto_rawDescData []byte ) func file_module_ec_order_proto_cart_proto_rawDescGZIP() []byte { file_module_ec_order_proto_cart_proto_rawDescOnce.Do(func() { file_module_ec_order_proto_cart_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_order_proto_cart_proto_rawDesc), len(file_module_ec_order_proto_cart_proto_rawDesc))) }) return file_module_ec_order_proto_cart_proto_rawDescData } var file_module_ec_order_proto_cart_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_module_ec_order_proto_cart_proto_goTypes = []any{ (*CartGetRequest)(nil), // 0: order.CartGetRequest (*CartGetReply)(nil), // 1: order.CartGetReply (*CartItem)(nil), // 2: order.CartItem (*CartAddRequest)(nil), // 3: order.CartAddRequest (*CartSetRequest)(nil), // 4: order.CartSetRequest (*Updates)(nil), // 5: order.Updates (*CartDelRequest)(nil), // 6: order.CartDelRequest (*OrderStatusReply)(nil), // 7: ec_order_blocks.OrderStatusReply } var file_module_ec_order_proto_cart_proto_depIdxs = []int32{ 2, // 0: order.CartGetReply.data:type_name -> order.CartItem 5, // 1: order.CartSetRequest.updates:type_name -> order.Updates 0, // 2: order.Cart.Fetch:input_type -> order.CartGetRequest 3, // 3: order.Cart.Create:input_type -> order.CartAddRequest 4, // 4: order.Cart.Modify:input_type -> order.CartSetRequest 6, // 5: order.Cart.Delete:input_type -> order.CartDelRequest 1, // 6: order.Cart.Fetch:output_type -> order.CartGetReply 7, // 7: order.Cart.Create:output_type -> ec_order_blocks.OrderStatusReply 7, // 8: order.Cart.Modify:output_type -> ec_order_blocks.OrderStatusReply 7, // 9: order.Cart.Delete:output_type -> ec_order_blocks.OrderStatusReply 6, // [6:10] is the sub-list for method output_type 2, // [2:6] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_module_ec_order_proto_cart_proto_init() } func file_module_ec_order_proto_cart_proto_init() { if File_module_ec_order_proto_cart_proto != nil { return } file_module_ec_order_proto_const_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_ec_order_proto_cart_proto_rawDesc), len(file_module_ec_order_proto_cart_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, NumServices: 1, }, GoTypes: file_module_ec_order_proto_cart_proto_goTypes, DependencyIndexes: file_module_ec_order_proto_cart_proto_depIdxs, MessageInfos: file_module_ec_order_proto_cart_proto_msgTypes, }.Build() File_module_ec_order_proto_cart_proto = out.File file_module_ec_order_proto_cart_proto_goTypes = nil file_module_ec_order_proto_cart_proto_depIdxs = nil }