陌生人英雄助战
This commit is contained in:
parent
d03ff89421
commit
e6b5e105b8
@ -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
|
||||
|
66
modules/friend/api_cross_refresh.go
Normal file
66
modules/friend/api_cross_refresh.go
Normal file
@ -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
|
||||
}
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
},
|
||||
|
@ -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,7 +2642,7 @@ 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
|
||||
@ -2598,31 +2690,35 @@ var file_friend_friend_msg_proto_goTypes = []interface{}{
|
||||
(*FriendAddApplyPush)(nil), // 43: FriendAddApplyPush
|
||||
(*FriendZanAndReceiveReq)(nil), // 44: FriendZanAndReceiveReq
|
||||
(*FriendZanAndReceiveResp)(nil), // 45: FriendZanAndReceiveResp
|
||||
(*DBFriend)(nil), // 46: DBFriend
|
||||
(*AssistRecord)(nil), // 47: AssistRecord
|
||||
(*UserAtno)(nil), // 48: UserAtno
|
||||
(*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,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user