// 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/coupon.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 Status struct { state protoimpl.MessageState `protogen:"open.v1"` Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` //优惠卷状态 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Status) Reset() { *x = Status{} mi := &file_module_ec_order_proto_coupon_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Status) String() string { return protoimpl.X.MessageStringOf(x) } func (*Status) ProtoMessage() {} func (x *Status) ProtoReflect() protoreflect.Message { mi := &file_module_ec_order_proto_coupon_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 Status.ProtoReflect.Descriptor instead. func (*Status) Descriptor() ([]byte, []int) { return file_module_ec_order_proto_coupon_proto_rawDescGZIP(), []int{0} } func (x *Status) GetStatus() int32 { if x != nil { return x.Status } return 0 } type CouponListReply struct { state protoimpl.MessageState `protogen:"open.v1"` Data []*CouponItem `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // 购物车中的商品数据列表 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CouponListReply) Reset() { *x = CouponListReply{} mi := &file_module_ec_order_proto_coupon_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CouponListReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*CouponListReply) ProtoMessage() {} func (x *CouponListReply) ProtoReflect() protoreflect.Message { mi := &file_module_ec_order_proto_coupon_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 CouponListReply.ProtoReflect.Descriptor instead. func (*CouponListReply) Descriptor() ([]byte, []int) { return file_module_ec_order_proto_coupon_proto_rawDescGZIP(), []int{1} } func (x *CouponListReply) GetData() []*CouponItem { if x != nil { return x.Data } return nil } type CouponItem struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一码 Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` //标题 Intro string `protobuf:"bytes,4,opt,name=intro,proto3" json:"intro,omitempty"` //描述 Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"` //金额 Started string `protobuf:"bytes,6,opt,name=started,proto3" json:"started,omitempty"` // 开始时间 Expired string `protobuf:"bytes,7,opt,name=expired,proto3" json:"expired,omitempty"` // 结束时间 Status string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"` // 状态 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CouponItem) Reset() { *x = CouponItem{} mi := &file_module_ec_order_proto_coupon_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CouponItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*CouponItem) ProtoMessage() {} func (x *CouponItem) ProtoReflect() protoreflect.Message { mi := &file_module_ec_order_proto_coupon_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 CouponItem.ProtoReflect.Descriptor instead. func (*CouponItem) Descriptor() ([]byte, []int) { return file_module_ec_order_proto_coupon_proto_rawDescGZIP(), []int{2} } func (x *CouponItem) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *CouponItem) GetIdentity() string { if x != nil { return x.Identity } return "" } func (x *CouponItem) GetTitle() string { if x != nil { return x.Title } return "" } func (x *CouponItem) GetIntro() string { if x != nil { return x.Intro } return "" } func (x *CouponItem) GetAmount() string { if x != nil { return x.Amount } return "" } func (x *CouponItem) GetStarted() string { if x != nil { return x.Started } return "" } func (x *CouponItem) GetExpired() string { if x != nil { return x.Expired } return "" } func (x *CouponItem) GetStatus() string { if x != nil { return x.Status } return "" } var File_module_ec_order_proto_coupon_proto protoreflect.FileDescriptor const file_module_ec_order_proto_coupon_proto_rawDesc = "" + "\n" + "\"module/ec/order/proto/coupon.proto\x12\x05order\" \n" + "\x06Status\x12\x16\n" + "\x06status\x18\x01 \x01(\x05R\x06status\"8\n" + "\x0fCouponListReply\x12%\n" + "\x04data\x18\x01 \x03(\v2\x11.order.CouponItemR\x04data\"\xc8\x01\n" + "\n" + "CouponItem\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" + "\x05title\x18\x03 \x01(\tR\x05title\x12\x14\n" + "\x05intro\x18\x04 \x01(\tR\x05intro\x12\x16\n" + "\x06amount\x18\x05 \x01(\tR\x06amount\x12\x18\n" + "\astarted\x18\x06 \x01(\tR\astarted\x12\x18\n" + "\aexpired\x18\a \x01(\tR\aexpired\x12\x16\n" + "\x06status\x18\b \x01(\tR\x06status2=\n" + "\x06Coupon\x123\n" + "\bByStatus\x12\r.order.Status\x1a\x16.order.CouponListReply\"\x00B#Z!bsm/full/module/ec/order/pb;orderb\x06proto3" var ( file_module_ec_order_proto_coupon_proto_rawDescOnce sync.Once file_module_ec_order_proto_coupon_proto_rawDescData []byte ) func file_module_ec_order_proto_coupon_proto_rawDescGZIP() []byte { file_module_ec_order_proto_coupon_proto_rawDescOnce.Do(func() { file_module_ec_order_proto_coupon_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_order_proto_coupon_proto_rawDesc), len(file_module_ec_order_proto_coupon_proto_rawDesc))) }) return file_module_ec_order_proto_coupon_proto_rawDescData } var file_module_ec_order_proto_coupon_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_module_ec_order_proto_coupon_proto_goTypes = []any{ (*Status)(nil), // 0: order.Status (*CouponListReply)(nil), // 1: order.CouponListReply (*CouponItem)(nil), // 2: order.CouponItem } var file_module_ec_order_proto_coupon_proto_depIdxs = []int32{ 2, // 0: order.CouponListReply.data:type_name -> order.CouponItem 0, // 1: order.Coupon.ByStatus:input_type -> order.Status 1, // 2: order.Coupon.ByStatus:output_type -> order.CouponListReply 2, // [2:3] is the sub-list for method output_type 1, // [1:2] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name } func init() { file_module_ec_order_proto_coupon_proto_init() } func file_module_ec_order_proto_coupon_proto_init() { if File_module_ec_order_proto_coupon_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_ec_order_proto_coupon_proto_rawDesc), len(file_module_ec_order_proto_coupon_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 1, }, GoTypes: file_module_ec_order_proto_coupon_proto_goTypes, DependencyIndexes: file_module_ec_order_proto_coupon_proto_depIdxs, MessageInfos: file_module_ec_order_proto_coupon_proto_msgTypes, }.Build() File_module_ec_order_proto_coupon_proto = out.File file_module_ec_order_proto_coupon_proto_goTypes = nil file_module_ec_order_proto_coupon_proto_depIdxs = nil }