From e6b5e105b8920d690d65794f927d4b9f87a98973 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 27 Dec 2023 11:26:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=8C=E7=94=9F=E4=BA=BA=E8=8B=B1=E9=9B=84?= =?UTF-8?q?=E5=8A=A9=E6=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/friend/api_cross_list.go | 1 + modules/friend/api_cross_refresh.go | 66 ++++++++ modules/friend/model_friend.go | 4 +- pb/friend_db.pb.go | 113 +++++++++++-- pb/friend_msg.pb.go | 244 +++++++++++++++++++++------- 5 files changed, 350 insertions(+), 78 deletions(-) create mode 100644 modules/friend/api_cross_refresh.go diff --git a/modules/friend/api_cross_list.go b/modules/friend/api_cross_list.go index daa1e5595..62879a821 100644 --- a/modules/friend/api_cross_list.go +++ b/modules/friend/api_cross_list.go @@ -78,6 +78,7 @@ func (this *apiComp) List(session comm.IUserSession, req *pb.FriendListReq) (err List: list, Friend: self, } + session.SendMsg(string(this.module.GetType()), FriendSubTypeList, resp) return diff --git a/modules/friend/api_cross_refresh.go b/modules/friend/api_cross_refresh.go new file mode 100644 index 000000000..714c28d77 --- /dev/null +++ b/modules/friend/api_cross_refresh.go @@ -0,0 +1,66 @@ +package friend + +import ( + "context" + "go_dreamfactory/comm" + "go_dreamfactory/lego/core" + "go_dreamfactory/pb" + + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/options" +) + +//好友列表 + +func (this *apiComp) RefreshAssistHeroCheck(session comm.IUserSession, req *pb.FriendRefreshAssistHeroReq) (errdata *pb.ErrorData) { + return +} + +func (this *apiComp) RefreshAssistHero(session comm.IUserSession, req *pb.FriendRefreshAssistHeroReq) (errdata *pb.ErrorData) { + var ( + self *pb.DBFriend + err error + ahero []*pb.AssistHero + ) + + self, err = this.module.modelFriend.GetFriend(session.GetUserId()) + if err != nil { + errdata = &pb.ErrorData{ + Code: pb.ErrorCode_FriendSelfNoData, + Title: pb.ErrorCode_FriendSelfNoData.ToString(), + } + return + } + if self.RefreshNum >= 5 { + return + } + self.RefreshNum++ + if err = this.module.modelFriend.Change(session.GetUserId(), map[string]interface{}{ + "refreshNum": self.RefreshNum, + }); err != nil { + errdata = &pb.ErrorData{ + Code: pb.ErrorCode_FriendApplyError, + Title: pb.ErrorCode_FriendApplyError.ToString(), + } + return + } + + localNum, _ := this.module.modelFriend.DB.CountDocuments(core.SqlTable(this.module.modelFriend.TableName), bson.M{}) + randomIndex := comm.GetRandNum(0, int32(localNum)) + randomIndex = 0 + cur, err := this.module.modelFriend.DB.Find(core.SqlTable(this.module.modelFriend.TableName), bson.M{"assistHeroId": bson.M{"$ne": ""}}, options.Find().SetSkip(int64(randomIndex)).SetLimit(12)) //.skip(1).limit(1) + for cur.Next(context.TODO()) { + tmp := &pb.DBFriend{} + if err = cur.Decode(tmp); err == nil { + ahero = append(ahero, &pb.AssistHero{ + Name: tmp.Info.Name, + Hero: tmp.Hero, + }) + } + } + session.SendMsg(string(this.module.GetType()), "refreshassisthero", &pb.FriendRefreshAssistHeroResp{ + Hero: ahero, + }) + + return +} diff --git a/modules/friend/model_friend.go b/modules/friend/model_friend.go index a827f2021..30dec2f7d 100644 --- a/modules/friend/model_friend.go +++ b/modules/friend/model_friend.go @@ -24,7 +24,9 @@ func (this *ModelFriend) Init(service core.IService, module core.IModule, comp c this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{ Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}}, }) - + this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{ + Keys: bsonx.Doc{{Key: "assistHeroId", Value: bsonx.Int32(1)}}, + }) return } diff --git a/pb/friend_db.pb.go b/pb/friend_db.pb.go index e69ccbf25..69923c441 100644 --- a/pb/friend_db.pb.go +++ b/pb/friend_db.pb.go @@ -41,6 +41,7 @@ type DBFriend struct { Record []*AssistRecord `protobuf:"bytes,14,rep,name=record,proto3" json:"record" bson:"record"` // 助战记录 Weapplyids []string `protobuf:"bytes,15,rep,name=weapplyids,proto3" json:"weapplyids" bson:"weapplyids"` //我申请的用户ID CleanTime int64 `protobuf:"varint,16,opt,name=cleanTime,proto3" json:"cleanTime" bson:"cleanTime"` //清理申请列表时间 + RefreshNum int32 `protobuf:"varint,17,opt,name=refreshNum,proto3" json:"refreshNum"` // 每日刷新次数 } func (x *DBFriend) Reset() { @@ -187,6 +188,13 @@ func (x *DBFriend) GetCleanTime() int64 { return 0 } +func (x *DBFriend) GetRefreshNum() int32 { + if x != nil { + return x.RefreshNum + } + return 0 +} + //助战记录 type AssistRecord struct { state protoimpl.MessageState @@ -339,13 +347,68 @@ func (x *QiecuoRecord) GetEndTime() int64 { return 0 } +type AssistHero struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"` + Hero *DBHero `protobuf:"bytes,2,opt,name=hero,proto3" json:"hero"` +} + +func (x *AssistHero) Reset() { + *x = AssistHero{} + if protoimpl.UnsafeEnabled { + mi := &file_friend_friend_db_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AssistHero) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AssistHero) ProtoMessage() {} + +func (x *AssistHero) ProtoReflect() protoreflect.Message { + mi := &file_friend_friend_db_proto_msgTypes[3] + 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 AssistHero.ProtoReflect.Descriptor instead. +func (*AssistHero) Descriptor() ([]byte, []int) { + return file_friend_friend_db_proto_rawDescGZIP(), []int{3} +} + +func (x *AssistHero) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AssistHero) GetHero() *DBHero { + if x != nil { + return x.Hero + } + return nil +} + var File_friend_friend_db_proto protoreflect.FileDescriptor var file_friend_friend_db_proto_rawDesc = []byte{ 0x0a, 0x16, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x2f, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x68, 0x65, 0x72, 0x6f, 0x2f, 0x68, 0x65, 0x72, 0x6f, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x63, 0x6f, - 0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe1, 0x03, 0x0a, 0x08, 0x44, 0x42, 0x46, + 0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x81, 0x04, 0x0a, 0x08, 0x44, 0x42, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, @@ -375,7 +438,9 @@ var file_friend_friend_db_proto_rawDesc = []byte{ 0x0a, 0x0a, 0x77, 0x65, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x69, 0x64, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x65, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x69, 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x09, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x64, 0x0a, 0x0c, + 0x03, 0x52, 0x09, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, + 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x4e, 0x75, 0x6d, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x0a, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x4e, 0x75, 0x6d, 0x22, 0x64, 0x0a, 0x0c, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, @@ -392,8 +457,12 @@ var file_friend_friend_db_proto_rawDesc = []byte{ 0x68, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, - 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x28, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3d, 0x0a, 0x0a, 0x41, + 0x73, 0x73, 0x69, 0x73, 0x74, 0x48, 0x65, 0x72, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, + 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, + 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, + 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -408,23 +477,25 @@ func file_friend_friend_db_proto_rawDescGZIP() []byte { return file_friend_friend_db_proto_rawDescData } -var file_friend_friend_db_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_friend_friend_db_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_friend_friend_db_proto_goTypes = []interface{}{ (*DBFriend)(nil), // 0: DBFriend (*AssistRecord)(nil), // 1: AssistRecord (*QiecuoRecord)(nil), // 2: QiecuoRecord - (*BaseUserInfo)(nil), // 3: BaseUserInfo - (*DBHero)(nil), // 4: DBHero + (*AssistHero)(nil), // 3: AssistHero + (*BaseUserInfo)(nil), // 4: BaseUserInfo + (*DBHero)(nil), // 5: DBHero } var file_friend_friend_db_proto_depIdxs = []int32{ - 3, // 0: DBFriend.info:type_name -> BaseUserInfo - 4, // 1: DBFriend.hero:type_name -> DBHero + 4, // 0: DBFriend.info:type_name -> BaseUserInfo + 5, // 1: DBFriend.hero:type_name -> DBHero 1, // 2: DBFriend.record:type_name -> AssistRecord - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 5, // 3: AssistHero.hero:type_name -> DBHero + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] 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 } func init() { file_friend_friend_db_proto_init() } @@ -471,6 +542,18 @@ func file_friend_friend_db_proto_init() { return nil } } + file_friend_friend_db_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AssistHero); 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{ @@ -478,7 +561,7 @@ func file_friend_friend_db_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_friend_friend_db_proto_rawDesc, NumEnums: 0, - NumMessages: 3, + NumMessages: 4, NumExtensions: 0, NumServices: 0, }, diff --git a/pb/friend_msg.pb.go b/pb/friend_msg.pb.go index c1630366b..62dfdbf8e 100644 --- a/pb/friend_msg.pb.go +++ b/pb/friend_msg.pb.go @@ -2349,6 +2349,92 @@ func (x *FriendZanAndReceiveResp) GetAtno() []*UserAtno { return nil } +// 刷新陌生人助战列表 +type FriendRefreshAssistHeroReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FriendRefreshAssistHeroReq) Reset() { + *x = FriendRefreshAssistHeroReq{} + if protoimpl.UnsafeEnabled { + mi := &file_friend_friend_msg_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FriendRefreshAssistHeroReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FriendRefreshAssistHeroReq) ProtoMessage() {} + +func (x *FriendRefreshAssistHeroReq) ProtoReflect() protoreflect.Message { + mi := &file_friend_friend_msg_proto_msgTypes[46] + 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 FriendRefreshAssistHeroReq.ProtoReflect.Descriptor instead. +func (*FriendRefreshAssistHeroReq) Descriptor() ([]byte, []int) { + return file_friend_friend_msg_proto_rawDescGZIP(), []int{46} +} + +type FriendRefreshAssistHeroResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hero []*AssistHero `protobuf:"bytes,1,rep,name=hero,proto3" json:"hero"` +} + +func (x *FriendRefreshAssistHeroResp) Reset() { + *x = FriendRefreshAssistHeroResp{} + if protoimpl.UnsafeEnabled { + mi := &file_friend_friend_msg_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FriendRefreshAssistHeroResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FriendRefreshAssistHeroResp) ProtoMessage() {} + +func (x *FriendRefreshAssistHeroResp) ProtoReflect() protoreflect.Message { + mi := &file_friend_friend_msg_proto_msgTypes[47] + 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 FriendRefreshAssistHeroResp.ProtoReflect.Descriptor instead. +func (*FriendRefreshAssistHeroResp) Descriptor() ([]byte, []int) { + return file_friend_friend_msg_proto_rawDescGZIP(), []int{47} +} + +func (x *FriendRefreshAssistHeroResp) GetHero() []*AssistHero { + if x != nil { + return x.Hero + } + return nil +} + var File_friend_friend_msg_proto protoreflect.FileDescriptor var file_friend_friend_msg_proto_rawDesc = []byte{ @@ -2534,8 +2620,14 @@ var file_friend_friend_msg_proto_rawDesc = []byte{ 0x0a, 0x17, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5a, 0x61, 0x6e, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x04, 0x61, 0x74, 0x6e, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, - 0x6e, 0x6f, 0x52, 0x04, 0x61, 0x74, 0x6e, 0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x6f, 0x52, 0x04, 0x61, 0x74, 0x6e, 0x6f, 0x22, 0x1c, 0x0a, 0x1a, 0x46, 0x72, 0x69, 0x65, + 0x6e, 0x64, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x48, + 0x65, 0x72, 0x6f, 0x52, 0x65, 0x71, 0x22, 0x3e, 0x0a, 0x1b, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, + 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x48, 0x65, 0x72, + 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x48, 0x65, 0x72, 0x6f, + 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2550,79 +2642,83 @@ func file_friend_friend_msg_proto_rawDescGZIP() []byte { return file_friend_friend_msg_proto_rawDescData } -var file_friend_friend_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 46) +var file_friend_friend_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 48) var file_friend_friend_msg_proto_goTypes = []interface{}{ - (*FriendBase)(nil), // 0: FriendBase - (*FriendListReq)(nil), // 1: FriendListReq - (*FriendListResp)(nil), // 2: FriendListResp - (*FriendRandlistReq)(nil), // 3: FriendRandlistReq - (*FriendRandlistResp)(nil), // 4: FriendRandlistResp - (*FriendApplyReq)(nil), // 5: FriendApplyReq - (*FriendApplyResp)(nil), // 6: FriendApplyResp - (*FriendDelReq)(nil), // 7: FriendDelReq - (*FriendDelResp)(nil), // 8: FriendDelResp - (*FriendAgreeReq)(nil), // 9: FriendAgreeReq - (*FriendAgreeResp)(nil), // 10: FriendAgreeResp - (*FriendRefuseReq)(nil), // 11: FriendRefuseReq - (*FriendRefuseResp)(nil), // 12: FriendRefuseResp - (*FriendApplyListReq)(nil), // 13: FriendApplyListReq - (*FriendApplyListResp)(nil), // 14: FriendApplyListResp - (*FriendSearchReq)(nil), // 15: FriendSearchReq - (*FriendSearchResp)(nil), // 16: FriendSearchResp - (*FriendBlackListReq)(nil), // 17: FriendBlackListReq - (*FriendBlackListResp)(nil), // 18: FriendBlackListResp - (*FriendAddBlackReq)(nil), // 19: FriendAddBlackReq - (*FriendAddBlackResp)(nil), // 20: FriendAddBlackResp - (*FriendDelBlackReq)(nil), // 21: FriendDelBlackReq - (*FriendDelBlackResp)(nil), // 22: FriendDelBlackResp - (*FriendTotalReq)(nil), // 23: FriendTotalReq - (*FriendTotalResp)(nil), // 24: FriendTotalResp - (*FriendZanlistReq)(nil), // 25: FriendZanlistReq - (*FriendZanlistResp)(nil), // 26: FriendZanlistResp - (*FriendZanReq)(nil), // 27: FriendZanReq - (*FriendZanResp)(nil), // 28: FriendZanResp - (*FriendZanreceiveReq)(nil), // 29: FriendZanreceiveReq - (*FriendZanreceiveResp)(nil), // 30: FriendZanreceiveResp - (*FriendAssistheroReq)(nil), // 31: FriendAssistheroReq - (*FriendAssistheroResp)(nil), // 32: FriendAssistheroResp - (*FriendAssistlistReq)(nil), // 33: FriendAssistlistReq - (*FriendAssistlistResp)(nil), // 34: FriendAssistlistResp - (*FriendGetrewardReq)(nil), // 35: FriendGetrewardReq - (*FriendGetrewardResp)(nil), // 36: FriendGetrewardResp - (*FriendAssistHeroUpdatePush)(nil), // 37: FriendAssistHeroUpdatePush - (*FriendAssistHeroListReq)(nil), // 38: FriendAssistHeroListReq - (*FriendAssistHeroListResp)(nil), // 39: FriendAssistHeroListResp - (*FriendGetRelationReq)(nil), // 40: FriendGetRelationReq - (*FriendGetRelationResp)(nil), // 41: FriendGetRelationResp - (*FriendAddAgreePush)(nil), // 42: FriendAddAgreePush - (*FriendAddApplyPush)(nil), // 43: FriendAddApplyPush - (*FriendZanAndReceiveReq)(nil), // 44: FriendZanAndReceiveReq - (*FriendZanAndReceiveResp)(nil), // 45: FriendZanAndReceiveResp - (*DBFriend)(nil), // 46: DBFriend - (*AssistRecord)(nil), // 47: AssistRecord - (*UserAtno)(nil), // 48: UserAtno + (*FriendBase)(nil), // 0: FriendBase + (*FriendListReq)(nil), // 1: FriendListReq + (*FriendListResp)(nil), // 2: FriendListResp + (*FriendRandlistReq)(nil), // 3: FriendRandlistReq + (*FriendRandlistResp)(nil), // 4: FriendRandlistResp + (*FriendApplyReq)(nil), // 5: FriendApplyReq + (*FriendApplyResp)(nil), // 6: FriendApplyResp + (*FriendDelReq)(nil), // 7: FriendDelReq + (*FriendDelResp)(nil), // 8: FriendDelResp + (*FriendAgreeReq)(nil), // 9: FriendAgreeReq + (*FriendAgreeResp)(nil), // 10: FriendAgreeResp + (*FriendRefuseReq)(nil), // 11: FriendRefuseReq + (*FriendRefuseResp)(nil), // 12: FriendRefuseResp + (*FriendApplyListReq)(nil), // 13: FriendApplyListReq + (*FriendApplyListResp)(nil), // 14: FriendApplyListResp + (*FriendSearchReq)(nil), // 15: FriendSearchReq + (*FriendSearchResp)(nil), // 16: FriendSearchResp + (*FriendBlackListReq)(nil), // 17: FriendBlackListReq + (*FriendBlackListResp)(nil), // 18: FriendBlackListResp + (*FriendAddBlackReq)(nil), // 19: FriendAddBlackReq + (*FriendAddBlackResp)(nil), // 20: FriendAddBlackResp + (*FriendDelBlackReq)(nil), // 21: FriendDelBlackReq + (*FriendDelBlackResp)(nil), // 22: FriendDelBlackResp + (*FriendTotalReq)(nil), // 23: FriendTotalReq + (*FriendTotalResp)(nil), // 24: FriendTotalResp + (*FriendZanlistReq)(nil), // 25: FriendZanlistReq + (*FriendZanlistResp)(nil), // 26: FriendZanlistResp + (*FriendZanReq)(nil), // 27: FriendZanReq + (*FriendZanResp)(nil), // 28: FriendZanResp + (*FriendZanreceiveReq)(nil), // 29: FriendZanreceiveReq + (*FriendZanreceiveResp)(nil), // 30: FriendZanreceiveResp + (*FriendAssistheroReq)(nil), // 31: FriendAssistheroReq + (*FriendAssistheroResp)(nil), // 32: FriendAssistheroResp + (*FriendAssistlistReq)(nil), // 33: FriendAssistlistReq + (*FriendAssistlistResp)(nil), // 34: FriendAssistlistResp + (*FriendGetrewardReq)(nil), // 35: FriendGetrewardReq + (*FriendGetrewardResp)(nil), // 36: FriendGetrewardResp + (*FriendAssistHeroUpdatePush)(nil), // 37: FriendAssistHeroUpdatePush + (*FriendAssistHeroListReq)(nil), // 38: FriendAssistHeroListReq + (*FriendAssistHeroListResp)(nil), // 39: FriendAssistHeroListResp + (*FriendGetRelationReq)(nil), // 40: FriendGetRelationReq + (*FriendGetRelationResp)(nil), // 41: FriendGetRelationResp + (*FriendAddAgreePush)(nil), // 42: FriendAddAgreePush + (*FriendAddApplyPush)(nil), // 43: FriendAddApplyPush + (*FriendZanAndReceiveReq)(nil), // 44: FriendZanAndReceiveReq + (*FriendZanAndReceiveResp)(nil), // 45: FriendZanAndReceiveResp + (*FriendRefreshAssistHeroReq)(nil), // 46: FriendRefreshAssistHeroReq + (*FriendRefreshAssistHeroResp)(nil), // 47: FriendRefreshAssistHeroResp + (*DBFriend)(nil), // 48: DBFriend + (*AssistRecord)(nil), // 49: AssistRecord + (*UserAtno)(nil), // 50: UserAtno + (*AssistHero)(nil), // 51: AssistHero } var file_friend_friend_msg_proto_depIdxs = []int32{ 0, // 0: FriendListResp.list:type_name -> FriendBase - 46, // 1: FriendListResp.friend:type_name -> DBFriend + 48, // 1: FriendListResp.friend:type_name -> DBFriend 0, // 2: FriendRandlistResp.list:type_name -> FriendBase 0, // 3: FriendApplyListResp.list:type_name -> FriendBase 0, // 4: FriendSearchResp.friends:type_name -> FriendBase 0, // 5: FriendBlackListResp.friends:type_name -> FriendBase 0, // 6: FriendZanlistResp.list:type_name -> FriendBase 0, // 7: FriendAssistlistResp.list:type_name -> FriendBase - 47, // 8: FriendAssistlistResp.record:type_name -> AssistRecord - 48, // 9: FriendGetrewardResp.atno:type_name -> UserAtno + 49, // 8: FriendAssistlistResp.record:type_name -> AssistRecord + 50, // 9: FriendGetrewardResp.atno:type_name -> UserAtno 0, // 10: FriendAssistHeroUpdatePush.friend:type_name -> FriendBase 0, // 11: FriendAssistHeroListResp.friends:type_name -> FriendBase 0, // 12: FriendAddAgreePush.info:type_name -> FriendBase 0, // 13: FriendAddApplyPush.info:type_name -> FriendBase - 48, // 14: FriendZanAndReceiveResp.atno:type_name -> UserAtno - 15, // [15:15] is the sub-list for method output_type - 15, // [15:15] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name + 50, // 14: FriendZanAndReceiveResp.atno:type_name -> UserAtno + 51, // 15: FriendRefreshAssistHeroResp.hero:type_name -> AssistHero + 16, // [16:16] is the sub-list for method output_type + 16, // [16:16] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name } func init() { file_friend_friend_msg_proto_init() } @@ -3185,6 +3281,30 @@ func file_friend_friend_msg_proto_init() { return nil } } + file_friend_friend_msg_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FriendRefreshAssistHeroReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_friend_friend_msg_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FriendRefreshAssistHeroResp); 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{ @@ -3192,7 +3312,7 @@ func file_friend_friend_msg_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_friend_friend_msg_proto_rawDesc, NumEnums: 0, - NumMessages: 46, + NumMessages: 48, NumExtensions: 0, NumServices: 0, },