Files
full/module/ec/mall/pb/ads.pb.go

322 lines
9.3 KiB
Go
Raw Normal View History

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc (unknown)
// source: ads.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 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_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_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_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_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_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_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_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_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_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_ads_proto protoreflect.FileDescriptor
const file_ads_proto_rawDesc = "" +
"\n" +
"\x11ec/mall/ads.proto\x12\x04mall\x1a\x11mall/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\xfa\x01\n" +
"\x03Ads\x121\n" +
"\x05ByPos\x12\x12.mall.ByPosRequest\x1a\x12.mall.AdsListReply\"\x00\x121\n" +
"\x05Fetch\x12\x12.mall.FetchRequest\x1a\x12.mall.AdsListReply\"\x00\x12,\n" +
"\x06Create\x12\r.mall.AdsItem\x1a\x11.mall.StatusReply\"\x00\x12,\n" +
"\x06Modify\x12\r.mall.AdsItem\x1a\x11.mall.StatusReply\"\x00\x121\n" +
"\x06Delete\x12\x12.mall.IdentRequest\x1a\x11.mall.StatusReply\"\x00B\bZ\x06.;mallb\x06proto3"
var (
file_ads_proto_rawDescOnce sync.Once
file_ads_proto_rawDescData []byte
)
func file_ads_proto_rawDescGZIP() []byte {
file_ads_proto_rawDescOnce.Do(func() {
file_ads_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ads_proto_rawDesc), len(file_ads_proto_rawDesc)))
})
return file_ads_proto_rawDescData
}
var file_ads_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_ads_proto_goTypes = []any{
(*ByPosRequest)(nil), // 0: mall.ByPosRequest
(*AdsListReply)(nil), // 1: mall.AdsListReply
(*AdsItem)(nil), // 2: mall.AdsItem
(*FetchRequest)(nil), // 3: mall.FetchRequest
(*IdentRequest)(nil), // 4: mall.IdentRequest
(*StatusReply)(nil), // 5: mall.StatusReply
}
var file_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 -> mall.FetchRequest
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 -> mall.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 -> mall.StatusReply
5, // 9: mall.Ads.Modify:output_type -> mall.StatusReply
5, // 10: mall.Ads.Delete:output_type -> mall.StatusReply
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_ads_proto_init() }
func file_ads_proto_init() {
if File_ads_proto != nil {
return
}
file_blocks_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_ads_proto_rawDesc), len(file_ads_proto_rawDesc)),
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_ads_proto_goTypes,
DependencyIndexes: file_ads_proto_depIdxs,
MessageInfos: file_ads_proto_msgTypes,
}.Build()
File_ads_proto = out.File
file_ads_proto_goTypes = nil
file_ads_proto_depIdxs = nil
}