|
@@ -1,7 +1,7 @@
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
// versions:
|
|
|
// protoc-gen-go v1.25.0
|
|
|
-// protoc v3.15.3
|
|
|
+// protoc v3.15.1
|
|
|
// source: activity.proto
|
|
|
|
|
|
package activity
|
|
@@ -870,6 +870,78 @@ func (x *LotteryResp) GetData() *LotteryJson {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+//--------------广告联盟-----------------
|
|
|
+type AdvertisingReq struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` //用户ID
|
|
|
+ Client string `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"` //用户端
|
|
|
+ AdvertisingID string `protobuf:"bytes,3,opt,name=advertisingID,proto3" json:"advertisingID,omitempty"` //广告ID
|
|
|
+ AdvertisingUrl string `protobuf:"bytes,4,opt,name=advertisingUrl,proto3" json:"advertisingUrl,omitempty"` //广告位置
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdvertisingReq) Reset() {
|
|
|
+ *x = AdvertisingReq{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_activity_proto_msgTypes[9]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdvertisingReq) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*AdvertisingReq) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *AdvertisingReq) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_activity_proto_msgTypes[9]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+// Deprecated: Use AdvertisingReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*AdvertisingReq) Descriptor() ([]byte, []int) {
|
|
|
+ return file_activity_proto_rawDescGZIP(), []int{9}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdvertisingReq) GetUserID() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.UserID
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdvertisingReq) GetClient() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Client
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdvertisingReq) GetAdvertisingID() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.AdvertisingID
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AdvertisingReq) GetAdvertisingUrl() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.AdvertisingUrl
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
var File_activity_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_activity_proto_rawDesc = []byte{
|
|
@@ -1002,33 +1074,50 @@ var file_activity_proto_rawDesc = []byte{
|
|
|
0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
|
|
0x67, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
|
|
|
0x32, 0x15, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x4c, 0x6f, 0x74, 0x74,
|
|
|
- 0x65, 0x72, 0x79, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0x8e, 0x03,
|
|
|
- 0x0a, 0x08, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x43, 0x0a, 0x0f, 0x61, 0x63,
|
|
|
- 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4c, 0x6f, 0x74, 0x74, 0x65, 0x72, 0x79, 0x12, 0x11, 0x2e,
|
|
|
- 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
- 0x1a, 0x1d, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x61, 0x63, 0x74, 0x69,
|
|
|
- 0x76, 0x69, 0x74, 0x79, 0x4c, 0x6f, 0x74, 0x74, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
|
- 0x40, 0x0a, 0x0e, 0x6c, 0x6f, 0x74, 0x74, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76,
|
|
|
- 0x65, 0x12, 0x1a, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x4c, 0x6f, 0x74,
|
|
|
- 0x74, 0x65, 0x72, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x12, 0x2e,
|
|
|
+ 0x65, 0x72, 0x79, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8e, 0x01,
|
|
|
+ 0x0a, 0x0e, 0x41, 0x64, 0x76, 0x65, 0x72, 0x74, 0x69, 0x73, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,
|
|
|
+ 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
|
+ 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6c, 0x69, 0x65,
|
|
|
+ 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
|
|
+ 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x64, 0x76, 0x65, 0x72, 0x74, 0x69, 0x73, 0x69, 0x6e, 0x67, 0x49,
|
|
|
+ 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x64, 0x76, 0x65, 0x72, 0x74, 0x69,
|
|
|
+ 0x73, 0x69, 0x6e, 0x67, 0x49, 0x44, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x64, 0x76, 0x65, 0x72, 0x74,
|
|
|
+ 0x69, 0x73, 0x69, 0x6e, 0x67, 0x55, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e,
|
|
|
+ 0x61, 0x64, 0x76, 0x65, 0x72, 0x74, 0x69, 0x73, 0x69, 0x6e, 0x67, 0x55, 0x72, 0x6c, 0x32, 0x95,
|
|
|
+ 0x04, 0x0a, 0x08, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x43, 0x0a, 0x0f, 0x61,
|
|
|
+ 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4c, 0x6f, 0x74, 0x74, 0x65, 0x72, 0x79, 0x12, 0x11,
|
|
|
+ 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
+ 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x61, 0x63, 0x74,
|
|
|
+ 0x69, 0x76, 0x69, 0x74, 0x79, 0x4c, 0x6f, 0x74, 0x74, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70,
|
|
|
+ 0x12, 0x40, 0x0a, 0x0e, 0x6c, 0x6f, 0x74, 0x74, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69,
|
|
|
+ 0x76, 0x65, 0x12, 0x1a, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x4c, 0x6f,
|
|
|
+ 0x74, 0x74, 0x65, 0x72, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x12,
|
|
|
+ 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
+ 0x73, 0x65, 0x12, 0x42, 0x0a, 0x12, 0x6c, 0x6f, 0x74, 0x74, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61,
|
|
|
+ 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x18, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76,
|
|
|
+ 0x69, 0x74, 0x79, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
|
|
|
+ 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x52, 0x65,
|
|
|
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69,
|
|
|
+ 0x74, 0x79, 0x55, 0x73, 0x65, 0x12, 0x1a, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79,
|
|
|
+ 0x2e, 0x4c, 0x6f, 0x74, 0x74, 0x65, 0x72, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
|
|
|
+ 0x6e, 0x1a, 0x12, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x52, 0x65, 0x73,
|
|
|
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x74,
|
|
|
+ 0x74, 0x65, 0x72, 0x79, 0x12, 0x11, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e,
|
|
|
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69,
|
|
|
+ 0x74, 0x79, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4c, 0x6f, 0x74, 0x74, 0x65,
|
|
|
+ 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x37, 0x0a, 0x0b, 0x6c, 0x6f, 0x74, 0x74, 0x65, 0x72,
|
|
|
+ 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x11, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79,
|
|
|
+ 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76,
|
|
|
+ 0x69, 0x74, 0x79, 0x2e, 0x4c, 0x6f, 0x74, 0x74, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
|
+ 0x40, 0x0a, 0x10, 0x61, 0x64, 0x76, 0x65, 0x72, 0x74, 0x69, 0x73, 0x69, 0x6e, 0x67, 0x43, 0x6c,
|
|
|
+ 0x69, 0x63, 0x6b, 0x12, 0x18, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x41,
|
|
|
+ 0x64, 0x76, 0x65, 0x72, 0x74, 0x69, 0x73, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e,
|
|
|
0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
- 0x65, 0x12, 0x42, 0x0a, 0x12, 0x6c, 0x6f, 0x74, 0x74, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74,
|
|
|
- 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x18, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69,
|
|
|
- 0x74, 0x79, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65,
|
|
|
- 0x71, 0x1a, 0x12, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x52, 0x65, 0x73,
|
|
|
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74,
|
|
|
- 0x79, 0x55, 0x73, 0x65, 0x12, 0x1a, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e,
|
|
|
- 0x4c, 0x6f, 0x74, 0x74, 0x65, 0x72, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
- 0x1a, 0x12, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x70,
|
|
|
- 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x74, 0x74,
|
|
|
- 0x65, 0x72, 0x79, 0x12, 0x11, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x52,
|
|
|
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74,
|
|
|
- 0x79, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4c, 0x6f, 0x74, 0x74, 0x65, 0x72,
|
|
|
- 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x37, 0x0a, 0x0b, 0x6c, 0x6f, 0x74, 0x74, 0x65, 0x72, 0x79,
|
|
|
- 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x11, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e,
|
|
|
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69,
|
|
|
- 0x74, 0x79, 0x2e, 0x4c, 0x6f, 0x74, 0x74, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x62, 0x06,
|
|
|
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x65, 0x12, 0x43, 0x0a, 0x13, 0x61, 0x64, 0x76, 0x65, 0x72, 0x74, 0x69, 0x73, 0x69, 0x6e, 0x67,
|
|
|
+ 0x45, 0x78, 0x70, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x18, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76,
|
|
|
+ 0x69, 0x74, 0x79, 0x2e, 0x41, 0x64, 0x76, 0x65, 0x72, 0x74, 0x69, 0x73, 0x69, 0x6e, 0x67, 0x52,
|
|
|
+ 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x52, 0x65,
|
|
|
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -1043,7 +1132,7 @@ func file_activity_proto_rawDescGZIP() []byte {
|
|
|
return file_activity_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_activity_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
|
+var file_activity_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
|
|
var file_activity_proto_goTypes = []interface{}{
|
|
|
(*Request)(nil), // 0: activity.Request
|
|
|
(*LotteryOperation)(nil), // 1: activity.LotteryOperation
|
|
@@ -1054,6 +1143,7 @@ var file_activity_proto_goTypes = []interface{}{
|
|
|
(*ActivityJson)(nil), // 6: activity.ActivityJson
|
|
|
(*ProductJson)(nil), // 7: activity.ProductJson
|
|
|
(*LotteryResp)(nil), // 8: activity.LotteryResp
|
|
|
+ (*AdvertisingReq)(nil), // 9: activity.AdvertisingReq
|
|
|
}
|
|
|
var file_activity_proto_depIdxs = []int32{
|
|
|
5, // 0: activity.activityLotteryResp.data:type_name -> activity.LotteryJson
|
|
@@ -1066,14 +1156,18 @@ var file_activity_proto_depIdxs = []int32{
|
|
|
1, // 7: activity.Activity.activityUse:input_type -> activity.LotteryOperation
|
|
|
0, // 8: activity.Activity.userLottery:input_type -> activity.Request
|
|
|
0, // 9: activity.Activity.lotteryInfo:input_type -> activity.Request
|
|
|
- 4, // 10: activity.Activity.activityLottery:output_type -> activity.activityLotteryResp
|
|
|
- 3, // 11: activity.Activity.lotteryReceive:output_type -> activity.Response
|
|
|
- 3, // 12: activity.Activity.lotteryStateChange:output_type -> activity.Response
|
|
|
- 3, // 13: activity.Activity.activityUse:output_type -> activity.Response
|
|
|
- 4, // 14: activity.Activity.userLottery:output_type -> activity.activityLotteryResp
|
|
|
- 8, // 15: activity.Activity.lotteryInfo:output_type -> activity.LotteryResp
|
|
|
- 10, // [10:16] is the sub-list for method output_type
|
|
|
- 4, // [4:10] is the sub-list for method input_type
|
|
|
+ 9, // 10: activity.Activity.advertisingClick:input_type -> activity.AdvertisingReq
|
|
|
+ 9, // 11: activity.Activity.advertisingExposure:input_type -> activity.AdvertisingReq
|
|
|
+ 4, // 12: activity.Activity.activityLottery:output_type -> activity.activityLotteryResp
|
|
|
+ 3, // 13: activity.Activity.lotteryReceive:output_type -> activity.Response
|
|
|
+ 3, // 14: activity.Activity.lotteryStateChange:output_type -> activity.Response
|
|
|
+ 3, // 15: activity.Activity.activityUse:output_type -> activity.Response
|
|
|
+ 4, // 16: activity.Activity.userLottery:output_type -> activity.activityLotteryResp
|
|
|
+ 8, // 17: activity.Activity.lotteryInfo:output_type -> activity.LotteryResp
|
|
|
+ 3, // 18: activity.Activity.advertisingClick:output_type -> activity.Response
|
|
|
+ 3, // 19: activity.Activity.advertisingExposure:output_type -> activity.Response
|
|
|
+ 12, // [12:20] is the sub-list for method output_type
|
|
|
+ 4, // [4:12] is the sub-list for method input_type
|
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
|
0, // [0:4] is the sub-list for field type_name
|
|
@@ -1193,6 +1287,18 @@ func file_activity_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
+ file_activity_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*AdvertisingReq); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
type x struct{}
|
|
|
out := protoimpl.TypeBuilder{
|
|
@@ -1200,7 +1306,7 @@ func file_activity_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_activity_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 9,
|
|
|
+ NumMessages: 10,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|
|
@@ -1238,6 +1344,10 @@ type ActivityClient interface {
|
|
|
UserLottery(ctx context.Context, in *Request, opts ...grpc.CallOption) (*ActivityLotteryResp, error)
|
|
|
//奖券信息
|
|
|
LotteryInfo(ctx context.Context, in *Request, opts ...grpc.CallOption) (*LotteryResp, error)
|
|
|
+ //广告联盟-点击
|
|
|
+ AdvertisingClick(ctx context.Context, in *AdvertisingReq, opts ...grpc.CallOption) (*Response, error)
|
|
|
+ //广告联盟-曝光
|
|
|
+ AdvertisingExposure(ctx context.Context, in *AdvertisingReq, opts ...grpc.CallOption) (*Response, error)
|
|
|
}
|
|
|
|
|
|
type activityClient struct {
|
|
@@ -1302,6 +1412,24 @@ func (c *activityClient) LotteryInfo(ctx context.Context, in *Request, opts ...g
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *activityClient) AdvertisingClick(ctx context.Context, in *AdvertisingReq, opts ...grpc.CallOption) (*Response, error) {
|
|
|
+ out := new(Response)
|
|
|
+ err := c.cc.Invoke(ctx, "/activity.Activity/advertisingClick", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *activityClient) AdvertisingExposure(ctx context.Context, in *AdvertisingReq, opts ...grpc.CallOption) (*Response, error) {
|
|
|
+ out := new(Response)
|
|
|
+ err := c.cc.Invoke(ctx, "/activity.Activity/advertisingExposure", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
// ActivityServer is the server API for Activity service.
|
|
|
type ActivityServer interface {
|
|
|
//查询活动下的奖券
|
|
@@ -1316,6 +1444,10 @@ type ActivityServer interface {
|
|
|
UserLottery(context.Context, *Request) (*ActivityLotteryResp, error)
|
|
|
//奖券信息
|
|
|
LotteryInfo(context.Context, *Request) (*LotteryResp, error)
|
|
|
+ //广告联盟-点击
|
|
|
+ AdvertisingClick(context.Context, *AdvertisingReq) (*Response, error)
|
|
|
+ //广告联盟-曝光
|
|
|
+ AdvertisingExposure(context.Context, *AdvertisingReq) (*Response, error)
|
|
|
}
|
|
|
|
|
|
// UnimplementedActivityServer can be embedded to have forward compatible implementations.
|
|
@@ -1340,6 +1472,12 @@ func (*UnimplementedActivityServer) UserLottery(context.Context, *Request) (*Act
|
|
|
func (*UnimplementedActivityServer) LotteryInfo(context.Context, *Request) (*LotteryResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LotteryInfo not implemented")
|
|
|
}
|
|
|
+func (*UnimplementedActivityServer) AdvertisingClick(context.Context, *AdvertisingReq) (*Response, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method AdvertisingClick not implemented")
|
|
|
+}
|
|
|
+func (*UnimplementedActivityServer) AdvertisingExposure(context.Context, *AdvertisingReq) (*Response, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method AdvertisingExposure not implemented")
|
|
|
+}
|
|
|
|
|
|
func RegisterActivityServer(s *grpc.Server, srv ActivityServer) {
|
|
|
s.RegisterService(&_Activity_serviceDesc, srv)
|
|
@@ -1453,6 +1591,42 @@ func _Activity_LotteryInfo_Handler(srv interface{}, ctx context.Context, dec fun
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Activity_AdvertisingClick_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(AdvertisingReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(ActivityServer).AdvertisingClick(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/activity.Activity/AdvertisingClick",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(ActivityServer).AdvertisingClick(ctx, req.(*AdvertisingReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _Activity_AdvertisingExposure_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(AdvertisingReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(ActivityServer).AdvertisingExposure(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/activity.Activity/AdvertisingExposure",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(ActivityServer).AdvertisingExposure(ctx, req.(*AdvertisingReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
var _Activity_serviceDesc = grpc.ServiceDesc{
|
|
|
ServiceName: "activity.Activity",
|
|
|
HandlerType: (*ActivityServer)(nil),
|
|
@@ -1481,6 +1655,14 @@ var _Activity_serviceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "lotteryInfo",
|
|
|
Handler: _Activity_LotteryInfo_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "advertisingClick",
|
|
|
+ Handler: _Activity_AdvertisingClick_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "advertisingExposure",
|
|
|
+ Handler: _Activity_AdvertisingExposure_Handler,
|
|
|
+ },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "activity.proto",
|