// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v7.35.1
// source: module/ec/mall/proto/notice.proto

package mall

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 NoticeListReply struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Data          []*NoticeItem          `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	Count         int64                  `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *NoticeListReply) Reset() {
	*x = NoticeListReply{}
	mi := &file_module_ec_mall_proto_notice_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *NoticeListReply) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*NoticeListReply) ProtoMessage() {}

func (x *NoticeListReply) ProtoReflect() protoreflect.Message {
	mi := &file_module_ec_mall_proto_notice_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 NoticeListReply.ProtoReflect.Descriptor instead.
func (*NoticeListReply) Descriptor() ([]byte, []int) {
	return file_module_ec_mall_proto_notice_proto_rawDescGZIP(), []int{0}
}

func (x *NoticeListReply) GetData() []*NoticeItem {
	if x != nil {
		return x.Data
	}
	return nil
}

func (x *NoticeListReply) GetCount() int64 {
	if x != nil {
		return x.Count
	}
	return 0
}

// 公告
type NoticeItem struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Identity      string                 `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`             // 唯一标识
	Title         string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`                   // 标题
	Content       string                 `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`               // 内容
	Author        string                 `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"`                 // 作者
	StoreId       int64                  `protobuf:"varint,5,opt,name=store_id,proto3" json:"store_id,omitempty"`            // 店铺ID
	StoreIdentity string                 `protobuf:"bytes,6,opt,name=store_identity,proto3" json:"store_identity,omitempty"` // 店铺唯一标识
	CreatedAt     string                 `protobuf:"bytes,7,opt,name=created_at,proto3" json:"created_at,omitempty"`
	Status        int64                  `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` // 状态：默认为0，-1禁止，1为正常
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *NoticeItem) Reset() {
	*x = NoticeItem{}
	mi := &file_module_ec_mall_proto_notice_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *NoticeItem) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*NoticeItem) ProtoMessage() {}

func (x *NoticeItem) ProtoReflect() protoreflect.Message {
	mi := &file_module_ec_mall_proto_notice_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 NoticeItem.ProtoReflect.Descriptor instead.
func (*NoticeItem) Descriptor() ([]byte, []int) {
	return file_module_ec_mall_proto_notice_proto_rawDescGZIP(), []int{1}
}

func (x *NoticeItem) GetIdentity() string {
	if x != nil {
		return x.Identity
	}
	return ""
}

func (x *NoticeItem) GetTitle() string {
	if x != nil {
		return x.Title
	}
	return ""
}

func (x *NoticeItem) GetContent() string {
	if x != nil {
		return x.Content
	}
	return ""
}

func (x *NoticeItem) GetAuthor() string {
	if x != nil {
		return x.Author
	}
	return ""
}

func (x *NoticeItem) GetStoreId() int64 {
	if x != nil {
		return x.StoreId
	}
	return 0
}

func (x *NoticeItem) GetStoreIdentity() string {
	if x != nil {
		return x.StoreIdentity
	}
	return ""
}

func (x *NoticeItem) GetCreatedAt() string {
	if x != nil {
		return x.CreatedAt
	}
	return ""
}

func (x *NoticeItem) GetStatus() int64 {
	if x != nil {
		return x.Status
	}
	return 0
}

var File_module_ec_mall_proto_notice_proto protoreflect.FileDescriptor

const file_module_ec_mall_proto_notice_proto_rawDesc = "" +
	"\n" +
	"!module/ec/mall/proto/notice.proto\x12\x04mall\x1a module/ec/mall/proto/const.proto\"M\n" +
	"\x0fNoticeListReply\x12$\n" +
	"\x04data\x18\x01 \x03(\v2\x10.mall.NoticeItemR\x04data\x12\x14\n" +
	"\x05count\x18\x02 \x01(\x03R\x05count\"\xec\x01\n" +
	"\n" +
	"NoticeItem\x12\x1a\n" +
	"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x14\n" +
	"\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n" +
	"\acontent\x18\x03 \x01(\tR\acontent\x12\x16\n" +
	"\x06author\x18\x04 \x01(\tR\x06author\x12\x1a\n" +
	"\bstore_id\x18\x05 \x01(\x03R\bstore_id\x12&\n" +
	"\x0estore_identity\x18\x06 \x01(\tR\x0estore_identity\x12\x1e\n" +
	"\n" +
	"created_at\x18\a \x01(\tR\n" +
	"created_at\x12\x16\n" +
	"\x06status\x18\b \x01(\x03R\x06status2\xa1\x02\n" +
	"\x06Notice\x12B\n" +
	"\x05Fetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x15.mall.NoticeListReply\"\x00\x12A\n" +
	"\x06Create\x12\x10.mall.NoticeItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12A\n" +
	"\x06Modify\x12\x10.mall.NoticeItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12M\n" +
	"\x06Delete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"

var (
	file_module_ec_mall_proto_notice_proto_rawDescOnce sync.Once
	file_module_ec_mall_proto_notice_proto_rawDescData []byte
)

func file_module_ec_mall_proto_notice_proto_rawDescGZIP() []byte {
	file_module_ec_mall_proto_notice_proto_rawDescOnce.Do(func() {
		file_module_ec_mall_proto_notice_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_notice_proto_rawDesc), len(file_module_ec_mall_proto_notice_proto_rawDesc)))
	})
	return file_module_ec_mall_proto_notice_proto_rawDescData
}

var file_module_ec_mall_proto_notice_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_module_ec_mall_proto_notice_proto_goTypes = []any{
	(*NoticeListReply)(nil),     // 0: mall.NoticeListReply
	(*NoticeItem)(nil),          // 1: mall.NoticeItem
	(*MallFetchRequest)(nil),    // 2: ec_mall_blocks.MallFetchRequest
	(*IdentRequest)(nil),        // 3: ec_mall_blocks.IdentRequest
	(*IdentityStatusReply)(nil), // 4: ec_mall_blocks.IdentityStatusReply
}
var file_module_ec_mall_proto_notice_proto_depIdxs = []int32{
	1, // 0: mall.NoticeListReply.data:type_name -> mall.NoticeItem
	2, // 1: mall.Notice.Fetch:input_type -> ec_mall_blocks.MallFetchRequest
	1, // 2: mall.Notice.Create:input_type -> mall.NoticeItem
	1, // 3: mall.Notice.Modify:input_type -> mall.NoticeItem
	3, // 4: mall.Notice.Delete:input_type -> ec_mall_blocks.IdentRequest
	0, // 5: mall.Notice.Fetch:output_type -> mall.NoticeListReply
	4, // 6: mall.Notice.Create:output_type -> ec_mall_blocks.IdentityStatusReply
	4, // 7: mall.Notice.Modify:output_type -> ec_mall_blocks.IdentityStatusReply
	4, // 8: mall.Notice.Delete:output_type -> ec_mall_blocks.IdentityStatusReply
	5, // [5:9] is the sub-list for method output_type
	1, // [1:5] 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_mall_proto_notice_proto_init() }
func file_module_ec_mall_proto_notice_proto_init() {
	if File_module_ec_mall_proto_notice_proto != nil {
		return
	}
	file_module_ec_mall_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_mall_proto_notice_proto_rawDesc), len(file_module_ec_mall_proto_notice_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_module_ec_mall_proto_notice_proto_goTypes,
		DependencyIndexes: file_module_ec_mall_proto_notice_proto_depIdxs,
		MessageInfos:      file_module_ec_mall_proto_notice_proto_msgTypes,
	}.Build()
	File_module_ec_mall_proto_notice_proto = out.File
	file_module_ec_mall_proto_notice_proto_goTypes = nil
	file_module_ec_mall_proto_notice_proto_depIdxs = nil
}
