From 4b9ad93b84c3a2d495f9c245f357c6448560c883 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 23 Mar 2023 17:49:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=87=BA=E6=97=A7=E4=B8=BB=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/robot/story.go | 31 +- cmd/v2/ui/views/mainline_challenge.go | 12 - cmd/v2/ui/views/mainline_list.go | 9 +- cmd/v2/ui/views/mainline_reward.go | 10 - modules/mline/model_mainline.go | 11 - pb/mainline_db.pb.go | 266 --------- pb/mainline_msg.pb.go | 750 -------------------------- 7 files changed, 2 insertions(+), 1087 deletions(-) delete mode 100644 pb/mainline_db.pb.go delete mode 100644 pb/mainline_msg.pb.go diff --git a/cmd/robot/story.go b/cmd/robot/story.go index c7dbecf3f..b789e09b2 100644 --- a/cmd/robot/story.go +++ b/cmd/robot/story.go @@ -1,39 +1,10 @@ package robot -import ( - "fmt" - "go_dreamfactory/comm" - "go_dreamfactory/modules/mline" - "go_dreamfactory/pb" - - "google.golang.org/protobuf/proto" -) - var ( storyBuilders = []*TestCase{ { - desc: "主线数据", - mainType: string(comm.ModuleMline), - subType: mline.MlineGetListResp, - req: &pb.MainlineGetListReq{}, - rsp: &pb.MainlineGetListResp{}, - print: func(rsp proto.Message) { - out := rsp.(*pb.MainlineGetListResp) - for i, v := range out.Data { - fmt.Printf("%d- %v\n", (i + 1), v) - } - }, - //enabled: true, - }, { - desc: "主线详情", - mainType: string(comm.ModuleMline), - subType: mline.MlineChallengeResp, - req: &pb.MainlineChallengeReq{ - MainlineId: 1, - }, - rsp: &pb.MainlineChallengeResp{}, - // enabled: true, + //enabled: true, }, } ) diff --git a/cmd/v2/ui/views/mainline_challenge.go b/cmd/v2/ui/views/mainline_challenge.go index 7dbacd185..9a8d8f021 100644 --- a/cmd/v2/ui/views/mainline_challenge.go +++ b/cmd/v2/ui/views/mainline_challenge.go @@ -2,13 +2,9 @@ package formview import ( "go_dreamfactory/cmd/v2/model" - "go_dreamfactory/cmd/v2/service" - "go_dreamfactory/pb" "fyne.io/fyne/v2" "fyne.io/fyne/v2/widget" - "github.com/sirupsen/logrus" - "github.com/spf13/cast" ) type MainlineChallengeView struct { @@ -22,13 +18,5 @@ func (this *MainlineChallengeView) CreateView(t *model.TestCase) fyne.CanvasObje subChapterId := widget.NewEntry() this.form.AppendItem(widget.NewFormItem("小关卡ID", subChapterId)) - this.form.OnSubmit = func() { - if err := service.GetPttService().SendToClient(t.MainType, t.SubType, &pb.MainlineChallengeReq{ - ChapterObj: chapterId.Text, - MainlineId: cast.ToUint32(subChapterId.Text), - }); err != nil { - logrus.Error(err) - } - } return this.form } diff --git a/cmd/v2/ui/views/mainline_list.go b/cmd/v2/ui/views/mainline_list.go index 01042230a..3fc0e2f39 100644 --- a/cmd/v2/ui/views/mainline_list.go +++ b/cmd/v2/ui/views/mainline_list.go @@ -2,11 +2,8 @@ package formview import ( "go_dreamfactory/cmd/v2/model" - "go_dreamfactory/cmd/v2/service" - "go_dreamfactory/pb" "fyne.io/fyne/v2" - "github.com/sirupsen/logrus" ) // 主线关卡 @@ -15,10 +12,6 @@ type MainlineListView struct { } func (this *MainlineListView) CreateView(t *model.TestCase) fyne.CanvasObject { - this.form.OnSubmit = func() { - if err := service.GetPttService().SendToClient(t.MainType, t.SubType, &pb.MainlineGetListReq{}); err != nil { - logrus.Error(err) - } - } + return this.form } diff --git a/cmd/v2/ui/views/mainline_reward.go b/cmd/v2/ui/views/mainline_reward.go index 811bf270d..1c1a4032e 100644 --- a/cmd/v2/ui/views/mainline_reward.go +++ b/cmd/v2/ui/views/mainline_reward.go @@ -2,12 +2,9 @@ package formview import ( "go_dreamfactory/cmd/v2/model" - "go_dreamfactory/cmd/v2/service" - "go_dreamfactory/pb" "fyne.io/fyne/v2" "fyne.io/fyne/v2/widget" - "github.com/sirupsen/logrus" ) type MainlineRewardView struct { @@ -18,12 +15,5 @@ func (this *MainlineRewardView) CreateView(t *model.TestCase) fyne.CanvasObject chapterId := widget.NewEntry() this.form.AppendItem(widget.NewFormItem("关卡ID", chapterId)) - this.form.OnSubmit = func() { - if err := service.GetPttService().SendToClient(t.MainType, t.SubType, &pb.MainlineGetRewardReq{ - ChapterObj: chapterId.Text, - }); err != nil { - logrus.Error(err) - } - } return this.form } diff --git a/modules/mline/model_mainline.go b/modules/mline/model_mainline.go index 0493ea022..9591be92f 100644 --- a/modules/mline/model_mainline.go +++ b/modules/mline/model_mainline.go @@ -49,17 +49,6 @@ func (this *ModelMline) addNewChapter(uId string, data *pb.DBMline) (err error) return err } -// 获取指定章节数据 -func (this *ModelMline) getOneChapterInfo(uid, obj string) *pb.DBMainline { - data := &pb.DBMainline{} - err := this.module.modelMline.GetListObj(uid, obj, data) - if err != nil { - this.module.Errorf("%v", err) - return nil - } - return data -} - // 增加新的章节数据 func (this *ModelMline) cleanChapter(uId string) (err error) { diff --git a/pb/mainline_db.pb.go b/pb/mainline_db.pb.go deleted file mode 100644 index bfe805936..000000000 --- a/pb/mainline_db.pb.go +++ /dev/null @@ -1,266 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.0 -// protoc v3.20.0 -// source: mainline/mainline_db.proto - -package pb - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 AwaredType int32 - -const ( - AwaredType_TypeNil AwaredType = 0 - AwaredType_TypeAvailable AwaredType = 1 // 可领取 - AwaredType_TypeReceived AwaredType = 2 // 已领取 -) - -// Enum value maps for AwaredType. -var ( - AwaredType_name = map[int32]string{ - 0: "TypeNil", - 1: "TypeAvailable", - 2: "TypeReceived", - } - AwaredType_value = map[string]int32{ - "TypeNil": 0, - "TypeAvailable": 1, - "TypeReceived": 2, - } -) - -func (x AwaredType) Enum() *AwaredType { - p := new(AwaredType) - *p = x - return p -} - -func (x AwaredType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AwaredType) Descriptor() protoreflect.EnumDescriptor { - return file_mainline_mainline_db_proto_enumTypes[0].Descriptor() -} - -func (AwaredType) Type() protoreflect.EnumType { - return &file_mainline_mainline_db_proto_enumTypes[0] -} - -func (x AwaredType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AwaredType.Descriptor instead. -func (AwaredType) EnumDescriptor() ([]byte, []int) { - return file_mainline_mainline_db_proto_rawDescGZIP(), []int{0} -} - -type DBMainline struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID - Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid" bson:"uid"` //用户ID - ChapterId int32 `protobuf:"varint,3,opt,name=chapterId,proto3" json:"chapterId" bson:"chapterId"` //章节ID - MainlineId int32 `protobuf:"varint,4,opt,name=mainlineId,proto3" json:"mainlineId" bson:"mainlineId"` //主线关卡ID - AwaredID AwaredType `protobuf:"varint,5,opt,name=awaredID,proto3,enum=AwaredType" json:"awaredID" bson:"awaredID"` //是否领奖(设置int是考虑后续扩展有多个宝箱情况) - BranchID []int32 `protobuf:"varint,6,rep,packed,name=branchID,proto3" json:"branchID" bson:"branchID"` // 记录所有通关的关卡数据 - Intensity int32 `protobuf:"varint,7,opt,name=intensity,proto3" json:"intensity"` // 难度 - Ps int32 `protobuf:"varint,8,opt,name=ps,proto3" json:"ps"` // 预扣的体力 -} - -func (x *DBMainline) Reset() { - *x = DBMainline{} - if protoimpl.UnsafeEnabled { - mi := &file_mainline_mainline_db_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DBMainline) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DBMainline) ProtoMessage() {} - -func (x *DBMainline) ProtoReflect() protoreflect.Message { - mi := &file_mainline_mainline_db_proto_msgTypes[0] - 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 DBMainline.ProtoReflect.Descriptor instead. -func (*DBMainline) Descriptor() ([]byte, []int) { - return file_mainline_mainline_db_proto_rawDescGZIP(), []int{0} -} - -func (x *DBMainline) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *DBMainline) GetUid() string { - if x != nil { - return x.Uid - } - return "" -} - -func (x *DBMainline) GetChapterId() int32 { - if x != nil { - return x.ChapterId - } - return 0 -} - -func (x *DBMainline) GetMainlineId() int32 { - if x != nil { - return x.MainlineId - } - return 0 -} - -func (x *DBMainline) GetAwaredID() AwaredType { - if x != nil { - return x.AwaredID - } - return AwaredType_TypeNil -} - -func (x *DBMainline) GetBranchID() []int32 { - if x != nil { - return x.BranchID - } - return nil -} - -func (x *DBMainline) GetIntensity() int32 { - if x != nil { - return x.Intensity - } - return 0 -} - -func (x *DBMainline) GetPs() int32 { - if x != nil { - return x.Ps - } - return 0 -} - -var File_mainline_mainline_db_proto protoreflect.FileDescriptor - -var file_mainline_mainline_db_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x6c, - 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x01, 0x0a, - 0x0a, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 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, 0x1c, 0x0a, - 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, - 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x08, 0x61, - 0x77, 0x61, 0x72, 0x65, 0x64, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, - 0x41, 0x77, 0x61, 0x72, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x61, 0x77, 0x61, 0x72, - 0x65, 0x64, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x44, - 0x18, 0x06, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x44, - 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x79, 0x12, 0x0e, - 0x0a, 0x02, 0x70, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x70, 0x73, 0x2a, 0x3e, - 0x0a, 0x0a, 0x41, 0x77, 0x61, 0x72, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, - 0x54, 0x79, 0x70, 0x65, 0x4e, 0x69, 0x6c, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x79, 0x70, - 0x65, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x10, 0x02, 0x42, 0x06, - 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_mainline_mainline_db_proto_rawDescOnce sync.Once - file_mainline_mainline_db_proto_rawDescData = file_mainline_mainline_db_proto_rawDesc -) - -func file_mainline_mainline_db_proto_rawDescGZIP() []byte { - file_mainline_mainline_db_proto_rawDescOnce.Do(func() { - file_mainline_mainline_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_mainline_mainline_db_proto_rawDescData) - }) - return file_mainline_mainline_db_proto_rawDescData -} - -var file_mainline_mainline_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_mainline_mainline_db_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mainline_mainline_db_proto_goTypes = []interface{}{ - (AwaredType)(0), // 0: AwaredType - (*DBMainline)(nil), // 1: DBMainline -} -var file_mainline_mainline_db_proto_depIdxs = []int32{ - 0, // 0: DBMainline.awaredID:type_name -> AwaredType - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] 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_mainline_mainline_db_proto_init() } -func file_mainline_mainline_db_proto_init() { - if File_mainline_mainline_db_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_mainline_mainline_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DBMainline); 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{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mainline_mainline_db_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_mainline_mainline_db_proto_goTypes, - DependencyIndexes: file_mainline_mainline_db_proto_depIdxs, - EnumInfos: file_mainline_mainline_db_proto_enumTypes, - MessageInfos: file_mainline_mainline_db_proto_msgTypes, - }.Build() - File_mainline_mainline_db_proto = out.File - file_mainline_mainline_db_proto_rawDesc = nil - file_mainline_mainline_db_proto_goTypes = nil - file_mainline_mainline_db_proto_depIdxs = nil -} diff --git a/pb/mainline_msg.pb.go b/pb/mainline_msg.pb.go deleted file mode 100644 index a92d4b3e0..000000000 --- a/pb/mainline_msg.pb.go +++ /dev/null @@ -1,750 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.0 -// protoc v3.20.0 -// source: mainline/mainline_msg.proto - -package pb - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 MainlineGetListReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MainlineGetListReq) Reset() { - *x = MainlineGetListReq{} - if protoimpl.UnsafeEnabled { - mi := &file_mainline_mainline_msg_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MainlineGetListReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MainlineGetListReq) ProtoMessage() {} - -func (x *MainlineGetListReq) ProtoReflect() protoreflect.Message { - mi := &file_mainline_mainline_msg_proto_msgTypes[0] - 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 MainlineGetListReq.ProtoReflect.Descriptor instead. -func (*MainlineGetListReq) Descriptor() ([]byte, []int) { - return file_mainline_mainline_msg_proto_rawDescGZIP(), []int{0} -} - -// 返回进度信息 -type MainlineGetListResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*DBMainline `protobuf:"bytes,1,rep,name=data,proto3" json:"data"` -} - -func (x *MainlineGetListResp) Reset() { - *x = MainlineGetListResp{} - if protoimpl.UnsafeEnabled { - mi := &file_mainline_mainline_msg_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MainlineGetListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MainlineGetListResp) ProtoMessage() {} - -func (x *MainlineGetListResp) ProtoReflect() protoreflect.Message { - mi := &file_mainline_mainline_msg_proto_msgTypes[1] - 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 MainlineGetListResp.ProtoReflect.Descriptor instead. -func (*MainlineGetListResp) Descriptor() ([]byte, []int) { - return file_mainline_mainline_msg_proto_rawDescGZIP(), []int{1} -} - -func (x *MainlineGetListResp) GetData() []*DBMainline { - if x != nil { - return x.Data - } - return nil -} - -// 领取关卡宝箱 -type MainlineGetRewardReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChapterObj string `protobuf:"bytes,1,opt,name=chapterObj,proto3" json:"chapterObj"` // 章节唯一对象id -} - -func (x *MainlineGetRewardReq) Reset() { - *x = MainlineGetRewardReq{} - if protoimpl.UnsafeEnabled { - mi := &file_mainline_mainline_msg_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MainlineGetRewardReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MainlineGetRewardReq) ProtoMessage() {} - -func (x *MainlineGetRewardReq) ProtoReflect() protoreflect.Message { - mi := &file_mainline_mainline_msg_proto_msgTypes[2] - 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 MainlineGetRewardReq.ProtoReflect.Descriptor instead. -func (*MainlineGetRewardReq) Descriptor() ([]byte, []int) { - return file_mainline_mainline_msg_proto_rawDescGZIP(), []int{2} -} - -func (x *MainlineGetRewardReq) GetChapterObj() string { - if x != nil { - return x.ChapterObj - } - return "" -} - -type MainlineGetRewardResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *DBMainline `protobuf:"bytes,1,opt,name=data,proto3" json:"data"` //当前章节信息 -} - -func (x *MainlineGetRewardResp) Reset() { - *x = MainlineGetRewardResp{} - if protoimpl.UnsafeEnabled { - mi := &file_mainline_mainline_msg_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MainlineGetRewardResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MainlineGetRewardResp) ProtoMessage() {} - -func (x *MainlineGetRewardResp) ProtoReflect() protoreflect.Message { - mi := &file_mainline_mainline_msg_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 MainlineGetRewardResp.ProtoReflect.Descriptor instead. -func (*MainlineGetRewardResp) Descriptor() ([]byte, []int) { - return file_mainline_mainline_msg_proto_rawDescGZIP(), []int{3} -} - -func (x *MainlineGetRewardResp) GetData() *DBMainline { - if x != nil { - return x.Data - } - return nil -} - -// 挑战关卡 -type MainlineChallengeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChapterObj string `protobuf:"bytes,1,opt,name=chapterObj,proto3" json:"chapterObj"` // 章节唯一对象id - MainlineId uint32 `protobuf:"varint,2,opt,name=mainlineId,proto3" json:"mainlineId"` // 小关ID - Leadpos int32 `protobuf:"varint,3,opt,name=leadpos,proto3" json:"leadpos"` //队长位置 - Teamids []string `protobuf:"bytes,4,rep,name=teamids,proto3" json:"teamids"` //阵容信息 -} - -func (x *MainlineChallengeReq) Reset() { - *x = MainlineChallengeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_mainline_mainline_msg_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MainlineChallengeReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MainlineChallengeReq) ProtoMessage() {} - -func (x *MainlineChallengeReq) ProtoReflect() protoreflect.Message { - mi := &file_mainline_mainline_msg_proto_msgTypes[4] - 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 MainlineChallengeReq.ProtoReflect.Descriptor instead. -func (*MainlineChallengeReq) Descriptor() ([]byte, []int) { - return file_mainline_mainline_msg_proto_rawDescGZIP(), []int{4} -} - -func (x *MainlineChallengeReq) GetChapterObj() string { - if x != nil { - return x.ChapterObj - } - return "" -} - -func (x *MainlineChallengeReq) GetMainlineId() uint32 { - if x != nil { - return x.MainlineId - } - return 0 -} - -func (x *MainlineChallengeReq) GetLeadpos() int32 { - if x != nil { - return x.Leadpos - } - return 0 -} - -func (x *MainlineChallengeReq) GetTeamids() []string { - if x != nil { - return x.Teamids - } - return nil -} - -type MainlineChallengeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Info *BattleInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` - ChapterObj string `protobuf:"bytes,2,opt,name=chapterObj,proto3" json:"chapterObj"` // 章节唯一对象id - MainlineId uint32 `protobuf:"varint,3,opt,name=mainlineId,proto3" json:"mainlineId"` // 小关ID -} - -func (x *MainlineChallengeResp) Reset() { - *x = MainlineChallengeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_mainline_mainline_msg_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MainlineChallengeResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MainlineChallengeResp) ProtoMessage() {} - -func (x *MainlineChallengeResp) ProtoReflect() protoreflect.Message { - mi := &file_mainline_mainline_msg_proto_msgTypes[5] - 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 MainlineChallengeResp.ProtoReflect.Descriptor instead. -func (*MainlineChallengeResp) Descriptor() ([]byte, []int) { - return file_mainline_mainline_msg_proto_rawDescGZIP(), []int{5} -} - -func (x *MainlineChallengeResp) GetInfo() *BattleInfo { - if x != nil { - return x.Info - } - return nil -} - -func (x *MainlineChallengeResp) GetChapterObj() string { - if x != nil { - return x.ChapterObj - } - return "" -} - -func (x *MainlineChallengeResp) GetMainlineId() uint32 { - if x != nil { - return x.MainlineId - } - return 0 -} - -// 客户端通知服务器打赢了 -type MainlineChallengeOverReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChapterObj string `protobuf:"bytes,1,opt,name=chapterObj,proto3" json:"chapterObj"` // 章节唯一对象id - MainlineId uint32 `protobuf:"varint,2,opt,name=mainlineId,proto3" json:"mainlineId"` // 小关ID - Report *BattleReport `protobuf:"bytes,3,opt,name=report,proto3" json:"report"` //战报 -} - -func (x *MainlineChallengeOverReq) Reset() { - *x = MainlineChallengeOverReq{} - if protoimpl.UnsafeEnabled { - mi := &file_mainline_mainline_msg_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MainlineChallengeOverReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MainlineChallengeOverReq) ProtoMessage() {} - -func (x *MainlineChallengeOverReq) ProtoReflect() protoreflect.Message { - mi := &file_mainline_mainline_msg_proto_msgTypes[6] - 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 MainlineChallengeOverReq.ProtoReflect.Descriptor instead. -func (*MainlineChallengeOverReq) Descriptor() ([]byte, []int) { - return file_mainline_mainline_msg_proto_rawDescGZIP(), []int{6} -} - -func (x *MainlineChallengeOverReq) GetChapterObj() string { - if x != nil { - return x.ChapterObj - } - return "" -} - -func (x *MainlineChallengeOverReq) GetMainlineId() uint32 { - if x != nil { - return x.MainlineId - } - return 0 -} - -func (x *MainlineChallengeOverReq) GetReport() *BattleReport { - if x != nil { - return x.Report - } - return nil -} - -type MainlineChallengeOverResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *DBMainline `protobuf:"bytes,1,opt,name=data,proto3" json:"data"` //当前章节信息 - Newheros []string `protobuf:"bytes,2,rep,name=newheros,proto3" json:"newheros"` //获得的新英雄 - Olv int32 `protobuf:"varint,3,opt,name=olv,proto3" json:"olv"` //以前的等级 -} - -func (x *MainlineChallengeOverResp) Reset() { - *x = MainlineChallengeOverResp{} - if protoimpl.UnsafeEnabled { - mi := &file_mainline_mainline_msg_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MainlineChallengeOverResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MainlineChallengeOverResp) ProtoMessage() {} - -func (x *MainlineChallengeOverResp) ProtoReflect() protoreflect.Message { - mi := &file_mainline_mainline_msg_proto_msgTypes[7] - 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 MainlineChallengeOverResp.ProtoReflect.Descriptor instead. -func (*MainlineChallengeOverResp) Descriptor() ([]byte, []int) { - return file_mainline_mainline_msg_proto_rawDescGZIP(), []int{7} -} - -func (x *MainlineChallengeOverResp) GetData() *DBMainline { - if x != nil { - return x.Data - } - return nil -} - -func (x *MainlineChallengeOverResp) GetNewheros() []string { - if x != nil { - return x.Newheros - } - return nil -} - -func (x *MainlineChallengeOverResp) GetOlv() int32 { - if x != nil { - return x.Olv - } - return 0 -} - -// 推送新章节 -type MainlineNewChapterPush struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *DBMainline `protobuf:"bytes,1,opt,name=data,proto3" json:"data"` -} - -func (x *MainlineNewChapterPush) Reset() { - *x = MainlineNewChapterPush{} - if protoimpl.UnsafeEnabled { - mi := &file_mainline_mainline_msg_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MainlineNewChapterPush) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MainlineNewChapterPush) ProtoMessage() {} - -func (x *MainlineNewChapterPush) ProtoReflect() protoreflect.Message { - mi := &file_mainline_mainline_msg_proto_msgTypes[8] - 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 MainlineNewChapterPush.ProtoReflect.Descriptor instead. -func (*MainlineNewChapterPush) Descriptor() ([]byte, []int) { - return file_mainline_mainline_msg_proto_rawDescGZIP(), []int{8} -} - -func (x *MainlineNewChapterPush) GetData() *DBMainline { - if x != nil { - return x.Data - } - return nil -} - -var File_mainline_mainline_msg_proto protoreflect.FileDescriptor - -var file_mainline_mainline_msg_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x6c, - 0x69, 0x6e, 0x65, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6d, - 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, - 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x62, 0x61, 0x74, 0x74, 0x6c, - 0x65, 0x2f, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x47, 0x65, - 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x36, 0x0a, 0x13, 0x4d, 0x61, 0x69, 0x6e, - 0x6c, 0x69, 0x6e, 0x65, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, - 0x1f, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, - 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x22, 0x36, 0x0a, 0x14, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x70, - 0x74, 0x65, 0x72, 0x4f, 0x62, 0x6a, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x68, - 0x61, 0x70, 0x74, 0x65, 0x72, 0x4f, 0x62, 0x6a, 0x22, 0x38, 0x0a, 0x15, 0x4d, 0x61, 0x69, 0x6e, - 0x6c, 0x69, 0x6e, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0b, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x22, 0x8a, 0x01, 0x0a, 0x14, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, - 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x63, - 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x4f, 0x62, 0x6a, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x4f, 0x62, 0x6a, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, - 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6c, - 0x65, 0x61, 0x64, 0x70, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6c, 0x65, - 0x61, 0x64, 0x70, 0x6f, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x65, 0x61, 0x6d, 0x69, 0x64, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x74, 0x65, 0x61, 0x6d, 0x69, 0x64, 0x73, 0x22, - 0x78, 0x0a, 0x15, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x68, 0x61, 0x6c, 0x6c, - 0x65, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x68, 0x61, - 0x70, 0x74, 0x65, 0x72, 0x4f, 0x62, 0x6a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, - 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x4f, 0x62, 0x6a, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x61, 0x69, - 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6d, - 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x22, 0x81, 0x01, 0x0a, 0x18, 0x4d, 0x61, - 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x4f, - 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, - 0x72, 0x4f, 0x62, 0x6a, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x70, - 0x74, 0x65, 0x72, 0x4f, 0x62, 0x6a, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, - 0x6e, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6d, 0x61, 0x69, 0x6e, - 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x6a, 0x0a, - 0x19, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, - 0x67, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69, - 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x6e, - 0x65, 0x77, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x6e, - 0x65, 0x77, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x6c, 0x76, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6f, 0x6c, 0x76, 0x22, 0x39, 0x0a, 0x16, 0x4d, 0x61, 0x69, - 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x65, 0x77, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x50, - 0x75, 0x73, 0x68, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_mainline_mainline_msg_proto_rawDescOnce sync.Once - file_mainline_mainline_msg_proto_rawDescData = file_mainline_mainline_msg_proto_rawDesc -) - -func file_mainline_mainline_msg_proto_rawDescGZIP() []byte { - file_mainline_mainline_msg_proto_rawDescOnce.Do(func() { - file_mainline_mainline_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_mainline_mainline_msg_proto_rawDescData) - }) - return file_mainline_mainline_msg_proto_rawDescData -} - -var file_mainline_mainline_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_mainline_mainline_msg_proto_goTypes = []interface{}{ - (*MainlineGetListReq)(nil), // 0: MainlineGetListReq - (*MainlineGetListResp)(nil), // 1: MainlineGetListResp - (*MainlineGetRewardReq)(nil), // 2: MainlineGetRewardReq - (*MainlineGetRewardResp)(nil), // 3: MainlineGetRewardResp - (*MainlineChallengeReq)(nil), // 4: MainlineChallengeReq - (*MainlineChallengeResp)(nil), // 5: MainlineChallengeResp - (*MainlineChallengeOverReq)(nil), // 6: MainlineChallengeOverReq - (*MainlineChallengeOverResp)(nil), // 7: MainlineChallengeOverResp - (*MainlineNewChapterPush)(nil), // 8: MainlineNewChapterPush - (*DBMainline)(nil), // 9: DBMainline - (*BattleInfo)(nil), // 10: BattleInfo - (*BattleReport)(nil), // 11: BattleReport -} -var file_mainline_mainline_msg_proto_depIdxs = []int32{ - 9, // 0: MainlineGetListResp.data:type_name -> DBMainline - 9, // 1: MainlineGetRewardResp.data:type_name -> DBMainline - 10, // 2: MainlineChallengeResp.info:type_name -> BattleInfo - 11, // 3: MainlineChallengeOverReq.report:type_name -> BattleReport - 9, // 4: MainlineChallengeOverResp.data:type_name -> DBMainline - 9, // 5: MainlineNewChapterPush.data:type_name -> DBMainline - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_mainline_mainline_msg_proto_init() } -func file_mainline_mainline_msg_proto_init() { - if File_mainline_mainline_msg_proto != nil { - return - } - file_mainline_mainline_db_proto_init() - file_battle_battle_msg_proto_init() - if !protoimpl.UnsafeEnabled { - file_mainline_mainline_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MainlineGetListReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mainline_mainline_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MainlineGetListResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mainline_mainline_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MainlineGetRewardReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mainline_mainline_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MainlineGetRewardResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mainline_mainline_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MainlineChallengeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mainline_mainline_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MainlineChallengeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mainline_mainline_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MainlineChallengeOverReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mainline_mainline_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MainlineChallengeOverResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mainline_mainline_msg_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MainlineNewChapterPush); 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{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mainline_mainline_msg_proto_rawDesc, - NumEnums: 0, - NumMessages: 9, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_mainline_mainline_msg_proto_goTypes, - DependencyIndexes: file_mainline_mainline_msg_proto_depIdxs, - MessageInfos: file_mainline_mainline_msg_proto_msgTypes, - }.Build() - File_mainline_mainline_msg_proto = out.File - file_mainline_mainline_msg_proto_rawDesc = nil - file_mainline_mainline_msg_proto_goTypes = nil - file_mainline_mainline_msg_proto_depIdxs = nil -}