Merge branches 'dev' and 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev

This commit is contained in:
liwei1dao 2022-10-20 18:06:42 +08:00
commit a07752a4e3
12 changed files with 88 additions and 134 deletions

View File

@ -171,6 +171,8 @@ const ( //Rpc
Rpc_ModuleMoonfantasyTrigger core.Rpc_Key = "Rpc_ModuleMoonfantasyTrigger" //月之秘境触发消息 Rpc_ModuleMoonfantasyTrigger core.Rpc_Key = "Rpc_ModuleMoonfantasyTrigger" //月之秘境触发消息
//rtask 上传随机任务代码 //rtask 上传随机任务代码
Rpc_ModuleRtaskSendTask core.Rpc_Key = "Rpc_ModuleRtaskSendTask" //随机任务触发 Rpc_ModuleRtaskSendTask core.Rpc_Key = "Rpc_ModuleRtaskSendTask" //随机任务触发
// friend
Rpc_ModuleFriendUseAssitHero core.Rpc_Key = "Rpc_ModuleFriendUseAssitHero" //使用助战英雄
) )
//事件类型定义处 //事件类型定义处
@ -339,6 +341,7 @@ const (
const ( const (
PagodaType = 101 // 普通塔 PagodaType = 101 // 普通塔
SeasonType = 2 // 赛季塔类型
) )
const ( const (

View File

@ -24,7 +24,6 @@ const (
FriendSubTypeDel = "del" FriendSubTypeDel = "del"
FriendSubTypeAssistlist = "assistlist" FriendSubTypeAssistlist = "assistlist"
FriendSubTypeGetreward = "getreward" FriendSubTypeGetreward = "getreward"
FriendSubTypeAssistHeroList = "assistherolist"
) )
type apiComp struct { type apiComp struct {

View File

@ -1,34 +0,0 @@
package friend
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
"google.golang.org/protobuf/proto"
)
// 助战英雄列表
func (this *apiComp) AssistherolistCheck(session comm.IUserSession, req *pb.FriendAssistHeroListReq) (code pb.ErrorCode) {
return
}
func (this *apiComp) Assistherolist(session comm.IUserSession, req *pb.FriendAssistHeroListReq) (code pb.ErrorCode, data proto.Message) {
resp := &pb.FriendAssistHeroListResp{}
self := this.moduleFriend.modelFriend.GetFriend(session.GetUserId())
for _, fId := range self.FriendIds {
d := this.moduleFriend.modelFriend.GetFriend(fId)
resp.Friends = append(resp.Friends, &pb.FriendBase{
HeroObjId: d.AssistHeroId,
})
}
err := session.SendMsg(string(this.moduleFriend.GetType()), FriendSubTypeAssistHeroList, resp)
if err != nil {
code = pb.ErrorCode_SystemError
}
return
}

View File

@ -65,6 +65,19 @@ func (this *apiComp) Assisthero(session comm.IUserSession, req *pb.FriendAssisth
return return
} }
//推送
push := &pb.FriendAssistHeroListPush{}
for _, fId := range self.FriendIds {
d := this.moduleFriend.modelFriend.GetFriend(fId)
push.Friends = append(push.Friends, &pb.FriendBase{
HeroObjId: d.AssistHeroId,
})
}
if err := this.moduleFriend.SendMsgToUsers(string(this.moduleFriend.GetType()), "AssistHeroList",
&pb.FriendAssistHeroListPush{}, self.FriendIds...); err != nil {
this.moduleFriend.Errorf("push AssistHeroList err:", err)
}
// 随机任务Rtype13 // 随机任务Rtype13
this.moduleFriend.ModuleRtask.SendToRtask(session, comm.Rtype13, 1) this.moduleFriend.ModuleRtask.SendToRtask(session, comm.Rtype13, 1)

View File

@ -6,6 +6,7 @@ import (
"go_dreamfactory/pb" "go_dreamfactory/pb"
"time" "time"
"go_dreamfactory/lego/base"
"go_dreamfactory/lego/core" "go_dreamfactory/lego/core"
"go_dreamfactory/lego/sys/log" "go_dreamfactory/lego/sys/log"
@ -24,6 +25,7 @@ type Friend struct {
api *apiComp api *apiComp
modelFriend *ModelFriend modelFriend *ModelFriend
configure *modules.MCompConfigure configure *modules.MCompConfigure
service base.IRPCXService
} }
func (this *Friend) GetType() core.M_Modules { func (this *Friend) GetType() core.M_Modules {
@ -32,6 +34,7 @@ func (this *Friend) GetType() core.M_Modules {
func (this *Friend) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) { func (this *Friend) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
err = this.ModuleBase.Init(service, module, options) err = this.ModuleBase.Init(service, module, options)
this.service = service.(base.IRPCXService)
return return
} }
@ -41,6 +44,12 @@ func (this *Friend) OnInstallComp() {
this.modelFriend = this.RegisterComp(new(ModelFriend)).(*ModelFriend) this.modelFriend = this.RegisterComp(new(ModelFriend)).(*ModelFriend)
} }
func (this *Friend) Start() (err error) {
err = this.ModuleBase.Start()
this.service.RegisterFunctionName(string(comm.Rpc_ModuleFriendUseAssitHero), this.UseAssistHero)
return
}
func (this *Friend) ResetFriend(uid string) { func (this *Friend) ResetFriend(uid string) {
// 重置点赞列表 // 重置点赞列表
zanUpdate := map[string]interface{}{ zanUpdate := map[string]interface{}{

View File

@ -32,9 +32,5 @@ func (this *apiComp) GetList(session comm.IUserSession, req *pb.GourmetGetListRe
// 计算订单信息 // 计算订单信息
this.module.modelGourmet.CalculationGourmet(session.GetUserId(), _gourmet) this.module.modelGourmet.CalculationGourmet(session.GetUserId(), _gourmet)
session.SendMsg(string(this.module.GetType()), GourmetGetListResp, &pb.GourmetGetListResp{Data: _gourmet}) session.SendMsg(string(this.module.GetType()), GourmetGetListResp, &pb.GourmetGetListResp{Data: _gourmet})
// this.GetRandUser(session, &pb.GourmetGetRandUserReq{
// People: 10,
// })
return return
} }

View File

@ -60,6 +60,7 @@ func (this *TestService) InitSys() {
} }
func Test_Main(t *testing.T) { func Test_Main(t *testing.T) {
ids := utils.Numbers(0, 10, 5) ids := utils.Numbers(0, 10, 5)
for _, v := range ids { for _, v := range ids {
fmt.Printf("%d", v) fmt.Printf("%d", v)

View File

@ -28,5 +28,6 @@ func (this *apiComp) GetList(session comm.IUserSession, req *pb.SmithyGetListReq
// 计算订单信息 // 计算订单信息
this.module.modelSmithy.CalculationSmithy(session.GetUserId(), _gourmet) this.module.modelSmithy.CalculationSmithy(session.GetUserId(), _gourmet)
session.SendMsg(string(this.module.GetType()), SmithyGetListResp, &pb.SmithyGetListResp{Data: _gourmet}) session.SendMsg(string(this.module.GetType()), SmithyGetListResp, &pb.SmithyGetListResp{Data: _gourmet})
return return
} }

View File

@ -1,10 +1,14 @@
package smithy package smithy
import ( import (
"context"
"go_dreamfactory/comm" "go_dreamfactory/comm"
"go_dreamfactory/lego/core"
"go_dreamfactory/pb" "go_dreamfactory/pb"
"go_dreamfactory/utils" "go_dreamfactory/utils"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo/options"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
) )
@ -20,15 +24,16 @@ func (this *apiComp) GetRandUserCheck(session comm.IUserSession, req *pb.SmithyG
/// 获取一些玩家数据 /// 获取一些玩家数据
func (this *apiComp) GetRandUser(session comm.IUserSession, req *pb.SmithyGetRandUserReq) (code pb.ErrorCode, data proto.Message) { func (this *apiComp) GetRandUser(session comm.IUserSession, req *pb.SmithyGetRandUserReq) (code pb.ErrorCode, data proto.Message) {
var ( var (
szDbUser []*pb.DBUser szDbUser []*pb.DBUser
randOnlineUsers []string mapUser map[string]struct{}
) )
mapUser = make(map[string]struct{}, req.People)
code = this.GetRandUserCheck(session, req) code = this.GetRandUserCheck(session, req)
if code != pb.ErrorCode_Success { if code != pb.ErrorCode_Success {
return // 参数校验失败直接返回 return // 参数校验失败直接返回
} }
// 获取在线玩家信息 // 获取在线玩家信息
onlineList, err := this.module.ModuleUser.UserOnlineList() onlineList, err := this.module.ModuleUser.CrossUserOnlineList()
if err != nil { if err != nil {
code = pb.ErrorCode_DBError code = pb.ErrorCode_DBError
return return
@ -36,27 +41,44 @@ func (this *apiComp) GetRandUser(session comm.IUserSession, req *pb.SmithyGetRan
var szUid []string var szUid []string
for _, v := range onlineList { for _, v := range onlineList {
if v.Uid == session.GetUserId() { // 过滤自己信息 if v.Uid == session.GetUserId() || v.Uid == "" { // 过滤自己信息
continue continue
} }
mapUser[v.Uid] = struct{}{}
szUid = append(szUid, v.Uid) szUid = append(szUid, v.Uid)
} }
// 随机在线玩家信息 // 随机在线玩家信息
if len(onlineList) > int(req.People) { if len(szUid) > int(req.People) {
randArr := utils.Numbers(0, len(onlineList), int(req.People)) randArr := utils.Numbers(0, len(szUid), int(req.People))
for _, v := range randArr { for _, v := range randArr {
if szUid[v] != "" { if szUid[v] != "" {
randOnlineUsers = append(randOnlineUsers, szUid[v]) mapUser[szUid[v]] = struct{}{}
} }
} }
} else { // 数量不足 则有多少给多少 } else { // 数量不足 则有多少给多少
for _, v := range szUid { for _, v := range szUid {
randOnlineUsers = append(randOnlineUsers, v) mapUser[v] = struct{}{}
}
left := int(req.People) - len(mapUser)
if left > 0 { // 一个人也没有 那就从db 中随机取
if _data, err1 := this.module.modelSmithy.DB.Find(core.SqlTable(comm.TableUser), bson.M{}, options.Find().SetSort(bson.M{"lv": -1}).SetLimit(int64(req.People))); err1 == nil {
for _data.Next(context.TODO()) {
temp := &pb.DBUser{}
if err = _data.Decode(temp); err == nil {
if len(mapUser) >= int(req.People) {
break
}
if _, ok := mapUser[temp.Uid]; !ok {
mapUser[temp.Uid] = struct{}{}
}
}
}
}
} }
} }
for _, v := range randOnlineUsers { for k := range mapUser {
szDbUser = append(szDbUser, this.module.ModuleUser.GetUser(v)) // 转成user对象 user, _ := this.module.ModuleUser.GetCrossUser(k)
szDbUser = append(szDbUser, user) // 转成user对象
} }
session.SendMsg(string(this.module.GetType()), SmithyGetRandUserResp, &pb.SmithyGetRandUserResp{User: szDbUser}) session.SendMsg(string(this.module.GetType()), SmithyGetRandUserResp, &pb.SmithyGetRandUserResp{User: szDbUser})
return return

View File

@ -14,7 +14,6 @@ import (
"go_dreamfactory/lego/sys/cron" "go_dreamfactory/lego/sys/cron"
"go_dreamfactory/lego/sys/log" "go_dreamfactory/lego/sys/log"
"go.mongodb.org/mongo-driver/bson"
"google.golang.org/protobuf/types/known/anypb" "google.golang.org/protobuf/types/known/anypb"
) )
@ -78,7 +77,6 @@ func (this *ChatComp) Start() (err error) {
} }
} }
}) })
this.module.chat.module.rank.DB.Find("heor", bson.M{})
return return
} }

View File

@ -50,7 +50,7 @@ func (this *SeasonPagoda) Start() (err error) {
// _data := this.GetSeasonLoop(2) // _data := this.GetSeasonLoop(2)
// this.module.Debugf("%v", _data) // this.module.Debugf("%v", _data)
// this.TimerSeasonOver() this.TimerSeasonOver()
return return
} }
func (this *SeasonPagoda) GetSeasonLoop(id int32) *cfg.GameSeasonLoopData { func (this *SeasonPagoda) GetSeasonLoop(id int32) *cfg.GameSeasonLoopData {
@ -70,9 +70,8 @@ func (this *SeasonPagoda) GetSeasonLoop(id int32) *cfg.GameSeasonLoopData {
// // 赛季塔结束 // // 赛季塔结束
func (this *SeasonPagoda) TimerSeasonOver() { func (this *SeasonPagoda) TimerSeasonOver() {
this.module.Debugf("TimerSeasonOver:%d", time.Now().Unix()) this.module.Debugf("TimerSeasonOver:%d", time.Now().Unix())
// 修改 conf := this.GetSeasonLoop(comm.SeasonType) // 获取赛季塔重置配置
conf := this.GetSeasonLoop(2) rest, err := this.DB.Find(comm.TableServerData, bson.M{}) // 查询服务器记录的赛季塔信息
rest, err := this.DB.Find(comm.TableServerData, bson.M{})
if err != nil { if err != nil {
serverData := &pb.DBServerData{} serverData := &pb.DBServerData{}
for rest.Next(context.TODO()) { for rest.Next(context.TODO()) {

View File

@ -1866,15 +1866,17 @@ func (x *FriendGetrewardResp) GetReceived() int32 {
return 0 return 0
} }
// 助战英雄列表 // 助战英雄列表推送
type FriendAssistHeroListReq struct { type FriendAssistHeroListPush struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Friends []*FriendBase `protobuf:"bytes,1,rep,name=friends,proto3" json:"friends"` //好友列表
} }
func (x *FriendAssistHeroListReq) Reset() { func (x *FriendAssistHeroListPush) Reset() {
*x = FriendAssistHeroListReq{} *x = FriendAssistHeroListPush{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_friend_friend_msg_proto_msgTypes[37] mi := &file_friend_friend_msg_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@ -1882,13 +1884,13 @@ func (x *FriendAssistHeroListReq) Reset() {
} }
} }
func (x *FriendAssistHeroListReq) String() string { func (x *FriendAssistHeroListPush) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*FriendAssistHeroListReq) ProtoMessage() {} func (*FriendAssistHeroListPush) ProtoMessage() {}
func (x *FriendAssistHeroListReq) ProtoReflect() protoreflect.Message { func (x *FriendAssistHeroListPush) ProtoReflect() protoreflect.Message {
mi := &file_friend_friend_msg_proto_msgTypes[37] mi := &file_friend_friend_msg_proto_msgTypes[37]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@ -1900,52 +1902,12 @@ func (x *FriendAssistHeroListReq) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use FriendAssistHeroListReq.ProtoReflect.Descriptor instead. // Deprecated: Use FriendAssistHeroListPush.ProtoReflect.Descriptor instead.
func (*FriendAssistHeroListReq) Descriptor() ([]byte, []int) { func (*FriendAssistHeroListPush) Descriptor() ([]byte, []int) {
return file_friend_friend_msg_proto_rawDescGZIP(), []int{37} return file_friend_friend_msg_proto_rawDescGZIP(), []int{37}
} }
type FriendAssistHeroListResp struct { func (x *FriendAssistHeroListPush) GetFriends() []*FriendBase {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Friends []*FriendBase `protobuf:"bytes,1,rep,name=friends,proto3" json:"friends"` //好友
}
func (x *FriendAssistHeroListResp) Reset() {
*x = FriendAssistHeroListResp{}
if protoimpl.UnsafeEnabled {
mi := &file_friend_friend_msg_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FriendAssistHeroListResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FriendAssistHeroListResp) ProtoMessage() {}
func (x *FriendAssistHeroListResp) ProtoReflect() protoreflect.Message {
mi := &file_friend_friend_msg_proto_msgTypes[38]
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 FriendAssistHeroListResp.ProtoReflect.Descriptor instead.
func (*FriendAssistHeroListResp) Descriptor() ([]byte, []int) {
return file_friend_friend_msg_proto_rawDescGZIP(), []int{38}
}
func (x *FriendAssistHeroListResp) GetFriends() []*FriendBase {
if x != nil { if x != nil {
return x.Friends return x.Friends
} }
@ -2091,14 +2053,12 @@ var file_friend_friend_msg_proto_rawDesc = []byte{
0x22, 0x31, 0x0a, 0x13, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x47, 0x65, 0x74, 0x72, 0x65, 0x77, 0x22, 0x31, 0x0a, 0x13, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x47, 0x65, 0x74, 0x72, 0x65, 0x77,
0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69,
0x76, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69,
0x76, 0x65, 0x64, 0x22, 0x19, 0x0a, 0x17, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x73, 0x73, 0x76, 0x65, 0x64, 0x22, 0x41, 0x0a, 0x18, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x73, 0x73,
0x69, 0x73, 0x74, 0x48, 0x65, 0x72, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x41, 0x69, 0x73, 0x74, 0x48, 0x65, 0x72, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x73, 0x68, 0x12,
0x0a, 0x18, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x48, 0x65, 0x25, 0x0a, 0x07, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x72, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x25, 0x0a, 0x07, 0x66, 0x72, 0x32, 0x0b, 0x2e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x42, 0x61, 0x73, 0x65, 0x52, 0x07, 0x66,
0x69, 0x65, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x46, 0x72, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06,
0x69, 0x65, 0x6e, 0x64, 0x42, 0x61, 0x73, 0x65, 0x52, 0x07, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
} }
var ( var (
@ -2113,7 +2073,7 @@ func file_friend_friend_msg_proto_rawDescGZIP() []byte {
return file_friend_friend_msg_proto_rawDescData return file_friend_friend_msg_proto_rawDescData
} }
var file_friend_friend_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 39) var file_friend_friend_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 38)
var file_friend_friend_msg_proto_goTypes = []interface{}{ var file_friend_friend_msg_proto_goTypes = []interface{}{
(*FriendBase)(nil), // 0: FriendBase (*FriendBase)(nil), // 0: FriendBase
(*FriendListReq)(nil), // 1: FriendListReq (*FriendListReq)(nil), // 1: FriendListReq
@ -2152,9 +2112,8 @@ var file_friend_friend_msg_proto_goTypes = []interface{}{
(*FriendAssistlistResp)(nil), // 34: FriendAssistlistResp (*FriendAssistlistResp)(nil), // 34: FriendAssistlistResp
(*FriendGetrewardReq)(nil), // 35: FriendGetrewardReq (*FriendGetrewardReq)(nil), // 35: FriendGetrewardReq
(*FriendGetrewardResp)(nil), // 36: FriendGetrewardResp (*FriendGetrewardResp)(nil), // 36: FriendGetrewardResp
(*FriendAssistHeroListReq)(nil), // 37: FriendAssistHeroListReq (*FriendAssistHeroListPush)(nil), // 37: FriendAssistHeroListPush
(*FriendAssistHeroListResp)(nil), // 38: FriendAssistHeroListResp (*ZhuZhanRecord)(nil), // 38: ZhuZhanRecord
(*ZhuZhanRecord)(nil), // 39: ZhuZhanRecord
} }
var file_friend_friend_msg_proto_depIdxs = []int32{ var file_friend_friend_msg_proto_depIdxs = []int32{
0, // 0: FriendListResp.list:type_name -> FriendBase 0, // 0: FriendListResp.list:type_name -> FriendBase
@ -2164,8 +2123,8 @@ var file_friend_friend_msg_proto_depIdxs = []int32{
0, // 4: FriendBlackListResp.friends:type_name -> FriendBase 0, // 4: FriendBlackListResp.friends:type_name -> FriendBase
0, // 5: FriendZanlistResp.list:type_name -> FriendBase 0, // 5: FriendZanlistResp.list:type_name -> FriendBase
0, // 6: FriendAssistlistResp.list:type_name -> FriendBase 0, // 6: FriendAssistlistResp.list:type_name -> FriendBase
39, // 7: FriendAssistlistResp.record:type_name -> ZhuZhanRecord 38, // 7: FriendAssistlistResp.record:type_name -> ZhuZhanRecord
0, // 8: FriendAssistHeroListResp.friends:type_name -> FriendBase 0, // 8: FriendAssistHeroListPush.friends:type_name -> FriendBase
9, // [9:9] is the sub-list for method output_type 9, // [9:9] is the sub-list for method output_type
9, // [9:9] is the sub-list for method input_type 9, // [9:9] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name 9, // [9:9] is the sub-list for extension type_name
@ -2625,19 +2584,7 @@ func file_friend_friend_msg_proto_init() {
} }
} }
file_friend_friend_msg_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { file_friend_friend_msg_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FriendAssistHeroListReq); i { switch v := v.(*FriendAssistHeroListPush); 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[38].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FriendAssistHeroListResp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -2655,7 +2602,7 @@ func file_friend_friend_msg_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_friend_friend_msg_proto_rawDesc, RawDescriptor: file_friend_friend_msg_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 39, NumMessages: 38,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },