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

package mall

import (
	protobuf "bsm/full/protobuf"
	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 ByPosRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	PosKey        []string               `protobuf:"bytes,1,rep,name=pos_key,proto3" json:"pos_key,omitempty"`
	StoreIdentity string                 `protobuf:"bytes,2,opt,name=store_identity,proto3" json:"store_identity,omitempty"` // 店铺唯一标识
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ByPosRequest) ProtoMessage() {}

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

func (x *ByPosRequest) GetPosKey() []string {
	if x != nil {
		return x.PosKey
	}
	return nil
}

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

// 公告列表
type AdsListReply struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Data          []*AdsItem             `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 *AdsListReply) Reset() {
	*x = AdsListReply{}
	mi := &file_module_ec_mall_proto_ads_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*AdsListReply) ProtoMessage() {}

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

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

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

type AdsItem struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	PosKey        string                 `protobuf:"bytes,2,opt,name=pos_key,proto3" json:"pos_key,omitempty"`       // 广告位置
	Title         string                 `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`           // 广告名称
	Content       string                 `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`       // 广告内容
	Type          int32                  `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"`            // 广告类型 1.文本 2.图片 3.视频
	ToUrl         string                 `protobuf:"bytes,6,opt,name=to_url,proto3" json:"to_url,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 *AdsItem) Reset() {
	*x = AdsItem{}
	mi := &file_module_ec_mall_proto_ads_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*AdsItem) ProtoMessage() {}

func (x *AdsItem) ProtoReflect() protoreflect.Message {
	mi := &file_module_ec_mall_proto_ads_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 AdsItem.ProtoReflect.Descriptor instead.
func (*AdsItem) Descriptor() ([]byte, []int) {
	return file_module_ec_mall_proto_ads_proto_rawDescGZIP(), []int{2}
}

func (x *AdsItem) GetId() int64 {
	if x != nil {
		return x.Id
	}
	return 0
}

func (x *AdsItem) GetPosKey() string {
	if x != nil {
		return x.PosKey
	}
	return ""
}

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

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

func (x *AdsItem) GetType() int32 {
	if x != nil {
		return x.Type
	}
	return 0
}

func (x *AdsItem) GetToUrl() string {
	if x != nil {
		return x.ToUrl
	}
	return ""
}

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

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

var File_module_ec_mall_proto_ads_proto protoreflect.FileDescriptor

const file_module_ec_mall_proto_ads_proto_rawDesc = "" +
	"\n" +
	"\x1emodule/ec/mall/proto/ads.proto\x12\x04mall\x1a\x15protobuf/blocks.proto\"P\n" +
	"\fByPosRequest\x12\x18\n" +
	"\apos_key\x18\x01 \x03(\tR\apos_key\x12&\n" +
	"\x0estore_identity\x18\x02 \x01(\tR\x0estore_identity\"G\n" +
	"\fAdsListReply\x12!\n" +
	"\x04data\x18\x01 \x03(\v2\r.mall.AdsItemR\x04data\x12\x14\n" +
	"\x05count\x18\x02 \x01(\x03R\x05count\"\xc7\x01\n" +
	"\aAdsItem\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\x03R\x02id\x12\x18\n" +
	"\apos_key\x18\x02 \x01(\tR\apos_key\x12\x14\n" +
	"\x05title\x18\x03 \x01(\tR\x05title\x12\x18\n" +
	"\acontent\x18\x04 \x01(\tR\acontent\x12\x12\n" +
	"\x04type\x18\x05 \x01(\x05R\x04type\x12\x16\n" +
	"\x06to_url\x18\x06 \x01(\tR\x06to_url\x12\x1e\n" +
	"\n" +
	"created_at\x18\a \x01(\tR\n" +
	"created_at\x12\x16\n" +
	"\x06status\x18\b \x01(\x03R\x06status2\xa0\x02\n" +
	"\x03Ads\x121\n" +
	"\x05ByPos\x12\x12.mall.ByPosRequest\x1a\x12.mall.AdsListReply\"\x00\x127\n" +
	"\x05Fetch\x12\x18.blocks.MallFetchRequest\x1a\x12.mall.AdsListReply\"\x00\x126\n" +
	"\x06Create\x12\r.mall.AdsItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x126\n" +
	"\x06Modify\x12\r.mall.AdsItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
	"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"

var (
	file_module_ec_mall_proto_ads_proto_rawDescOnce sync.Once
	file_module_ec_mall_proto_ads_proto_rawDescData []byte
)

func file_module_ec_mall_proto_ads_proto_rawDescGZIP() []byte {
	file_module_ec_mall_proto_ads_proto_rawDescOnce.Do(func() {
		file_module_ec_mall_proto_ads_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_ads_proto_rawDesc), len(file_module_ec_mall_proto_ads_proto_rawDesc)))
	})
	return file_module_ec_mall_proto_ads_proto_rawDescData
}

var file_module_ec_mall_proto_ads_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_module_ec_mall_proto_ads_proto_goTypes = []any{
	(*ByPosRequest)(nil),                 // 0: mall.ByPosRequest
	(*AdsListReply)(nil),                 // 1: mall.AdsListReply
	(*AdsItem)(nil),                      // 2: mall.AdsItem
	(*protobuf.MallFetchRequest)(nil),    // 3: blocks.MallFetchRequest
	(*protobuf.IdentRequest)(nil),        // 4: blocks.IdentRequest
	(*protobuf.IdentityStatusReply)(nil), // 5: blocks.IdentityStatusReply
}
var file_module_ec_mall_proto_ads_proto_depIdxs = []int32{
	2, // 0: mall.AdsListReply.data:type_name -> mall.AdsItem
	0, // 1: mall.Ads.ByPos:input_type -> mall.ByPosRequest
	3, // 2: mall.Ads.Fetch:input_type -> blocks.MallFetchRequest
	2, // 3: mall.Ads.Create:input_type -> mall.AdsItem
	2, // 4: mall.Ads.Modify:input_type -> mall.AdsItem
	4, // 5: mall.Ads.Delete:input_type -> blocks.IdentRequest
	1, // 6: mall.Ads.ByPos:output_type -> mall.AdsListReply
	1, // 7: mall.Ads.Fetch:output_type -> mall.AdsListReply
	5, // 8: mall.Ads.Create:output_type -> blocks.IdentityStatusReply
	5, // 9: mall.Ads.Modify:output_type -> blocks.IdentityStatusReply
	5, // 10: mall.Ads.Delete:output_type -> blocks.IdentityStatusReply
	6, // [6:11] is the sub-list for method output_type
	1, // [1:6] 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_ads_proto_init() }
func file_module_ec_mall_proto_ads_proto_init() {
	if File_module_ec_mall_proto_ads_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_mall_proto_ads_proto_rawDesc), len(file_module_ec_mall_proto_ads_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_module_ec_mall_proto_ads_proto_goTypes,
		DependencyIndexes: file_module_ec_mall_proto_ads_proto_depIdxs,
		MessageInfos:      file_module_ec_mall_proto_ads_proto_msgTypes,
	}.Build()
	File_module_ec_mall_proto_ads_proto = out.File
	file_module_ec_mall_proto_ads_proto_goTypes = nil
	file_module_ec_mall_proto_ads_proto_depIdxs = nil
}
