268 lines
		
	
	
		
			7.1 KiB
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			268 lines
		
	
	
		
			7.1 KiB
		
	
	
	
		
			Go
		
	
	
	
| // Code generated by protoc-gen-go. DO NOT EDIT.
 | |
| // versions:
 | |
| // 	protoc-gen-go v1.36.8
 | |
| // 	protoc        (unknown)
 | |
| // source: ads.proto
 | |
| 
 | |
| package ads
 | |
| 
 | |
| 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"`
 | |
| 	Key           string                 `protobuf:"bytes,1,opt,name=key,proto3" json:"key,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) GetKey() string {
 | |
| 	if x != nil {
 | |
| 		return x.Key
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| type ByPosReply struct {
 | |
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | |
| 	Data          []*AdsItem             `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *ByPosReply) Reset() {
 | |
| 	*x = ByPosReply{}
 | |
| 	mi := &file_ads_proto_msgTypes[1]
 | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 	ms.StoreMessageInfo(mi)
 | |
| }
 | |
| 
 | |
| func (x *ByPosReply) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*ByPosReply) ProtoMessage() {}
 | |
| 
 | |
| func (x *ByPosReply) 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 ByPosReply.ProtoReflect.Descriptor instead.
 | |
| func (*ByPosReply) Descriptor() ([]byte, []int) {
 | |
| 	return file_ads_proto_rawDescGZIP(), []int{1}
 | |
| }
 | |
| 
 | |
| func (x *ByPosReply) GetData() []*AdsItem {
 | |
| 	if x != nil {
 | |
| 		return x.Data
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| type AdsItem struct {
 | |
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | |
| 	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,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"` //广告内容
 | |
| 	Type          int32                  `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`      //广告类型 1.文本 2.图片 3.视频
 | |
| 	ToUrl         string                 `protobuf:"bytes,5,opt,name=toUrl,proto3" json:"toUrl,omitempty"`
 | |
| 	Created       string                 `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"`
 | |
| 	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) 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) GetCreated() string {
 | |
| 	if x != nil {
 | |
| 		return x.Created
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| var File_ads_proto protoreflect.FileDescriptor
 | |
| 
 | |
| const file_ads_proto_rawDesc = "" +
 | |
| 	"\n" +
 | |
| 	"\tads.proto\x12\x03ads\" \n" +
 | |
| 	"\fByPosRequest\x12\x10\n" +
 | |
| 	"\x03key\x18\x01 \x01(\tR\x03key\".\n" +
 | |
| 	"\n" +
 | |
| 	"ByPosReply\x12 \n" +
 | |
| 	"\x04data\x18\x01 \x03(\v2\f.ads.AdsItemR\x04data\"\x8d\x01\n" +
 | |
| 	"\aAdsItem\x12\x0e\n" +
 | |
| 	"\x02id\x18\x01 \x01(\x03R\x02id\x12\x14\n" +
 | |
| 	"\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n" +
 | |
| 	"\acontent\x18\x03 \x01(\tR\acontent\x12\x12\n" +
 | |
| 	"\x04type\x18\x04 \x01(\x05R\x04type\x12\x14\n" +
 | |
| 	"\x05toUrl\x18\x05 \x01(\tR\x05toUrl\x12\x18\n" +
 | |
| 	"\acreated\x18\x06 \x01(\tR\acreated26\n" +
 | |
| 	"\x05Fetch\x12-\n" +
 | |
| 	"\x05ByPos\x12\x11.ads.ByPosRequest\x1a\x0f.ads.ByPosReply\"\x00B\aZ\x05.;adsb\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: ads.ByPosRequest
 | |
| 	(*ByPosReply)(nil),   // 1: ads.ByPosReply
 | |
| 	(*AdsItem)(nil),      // 2: ads.AdsItem
 | |
| }
 | |
| var file_ads_proto_depIdxs = []int32{
 | |
| 	2, // 0: ads.ByPosReply.data:type_name -> ads.AdsItem
 | |
| 	0, // 1: ads.Fetch.ByPos:input_type -> ads.ByPosRequest
 | |
| 	1, // 2: ads.Fetch.ByPos:output_type -> ads.ByPosReply
 | |
| 	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_ads_proto_init() }
 | |
| func file_ads_proto_init() {
 | |
| 	if File_ads_proto != nil {
 | |
| 		return
 | |
| 	}
 | |
| 	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
 | |
| }
 |