From eec1b9cd4b0854641462edcc3b9f85cfbb76d799 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 23 Feb 2023 10:20:51 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=B8=8A=E4=BC=A0pb=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/practice/modelPandata.go | 14 +- pb/fitness_msg.pb.go | 240 +++++++++++++++- pb/pandatakekan_db.pb.go | 469 ------------------------------- pb/pandatakekan_msg.pb.go | 203 ------------- pb/sociaty_db.pb.go | 2 +- pb/taskcond_msg.pb.go | 143 ---------- 6 files changed, 244 insertions(+), 827 deletions(-) delete mode 100644 pb/pandatakekan_db.pb.go delete mode 100644 pb/pandatakekan_msg.pb.go delete mode 100644 pb/taskcond_msg.pb.go diff --git a/modules/practice/modelPandata.go b/modules/practice/modelPandata.go index b68e1fd9b..8f965510a 100644 --- a/modules/practice/modelPandata.go +++ b/modules/practice/modelPandata.go @@ -30,20 +30,20 @@ func (this *modelPandata) Init(service core.IService, module core.IModule, comp } ///询用户的练功房信息 -func (this *modelPandata) queryUserMartialhall(uid string) (result *pb.DBPandataKekan, err error) { - result = &pb.DBPandataKekan{} +func (this *modelPandata) queryUserMartialhall(uid string) (result *pb.DBPracticeRoom, err error) { + result = &pb.DBPracticeRoom{} if err = this.Get(uid, result); err != nil && err != mgo.MongodbNil { this.module.Errorln(err) } if err == mgo.MongodbNil { - result = &pb.DBPandataKekan{ + result = &pb.DBPracticeRoom{ Id: primitive.NewObjectID().Hex(), Uid: uid, - Pillar1: &pb.DBPandataPillar{Index: 1}, - Pillar2: &pb.DBPandataPillar{Index: 2}, - Pillar3: &pb.DBPandataPillar{Index: 3}, - Pillarf: &pb.DBPandataPillar{Index: 4}, + Pillar1: &pb.DBPracticePillar{Index: 1}, + Pillar2: &pb.DBPracticePillar{Index: 2}, + Pillar3: &pb.DBPracticePillar{Index: 3}, + Pillarf: &pb.DBPracticePillar{Index: 4}, } if err = this.Add(uid, result); err != nil { this.module.Errorln(err) diff --git a/pb/fitness_msg.pb.go b/pb/fitness_msg.pb.go index 49e44510e..b59afb977 100644 --- a/pb/fitness_msg.pb.go +++ b/pb/fitness_msg.pb.go @@ -10,6 +10,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" + sync "sync" ) const ( @@ -19,15 +20,195 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +///健身获得buff请求 +type FitnessGetBuffReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FitnessGetBuffReq) Reset() { + *x = FitnessGetBuffReq{} + if protoimpl.UnsafeEnabled { + mi := &file_fitness_fitness_msg_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FitnessGetBuffReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FitnessGetBuffReq) ProtoMessage() {} + +func (x *FitnessGetBuffReq) ProtoReflect() protoreflect.Message { + mi := &file_fitness_fitness_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 FitnessGetBuffReq.ProtoReflect.Descriptor instead. +func (*FitnessGetBuffReq) Descriptor() ([]byte, []int) { + return file_fitness_fitness_msg_proto_rawDescGZIP(), []int{0} +} + +///健身获得buff请求 回应 +type FitnessGetBuffResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FitnessGetBuffResp) Reset() { + *x = FitnessGetBuffResp{} + if protoimpl.UnsafeEnabled { + mi := &file_fitness_fitness_msg_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FitnessGetBuffResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FitnessGetBuffResp) ProtoMessage() {} + +func (x *FitnessGetBuffResp) ProtoReflect() protoreflect.Message { + mi := &file_fitness_fitness_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 FitnessGetBuffResp.ProtoReflect.Descriptor instead. +func (*FitnessGetBuffResp) Descriptor() ([]byte, []int) { + return file_fitness_fitness_msg_proto_rawDescGZIP(), []int{1} +} + +///健身 确认buff 请求 +type FitnessConfirmReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FitnessConfirmReq) Reset() { + *x = FitnessConfirmReq{} + if protoimpl.UnsafeEnabled { + mi := &file_fitness_fitness_msg_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FitnessConfirmReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FitnessConfirmReq) ProtoMessage() {} + +func (x *FitnessConfirmReq) ProtoReflect() protoreflect.Message { + mi := &file_fitness_fitness_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 FitnessConfirmReq.ProtoReflect.Descriptor instead. +func (*FitnessConfirmReq) Descriptor() ([]byte, []int) { + return file_fitness_fitness_msg_proto_rawDescGZIP(), []int{2} +} + +///健身 确认buff 请求回应 +type FitnessConfirmResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FitnessConfirmResp) Reset() { + *x = FitnessConfirmResp{} + if protoimpl.UnsafeEnabled { + mi := &file_fitness_fitness_msg_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FitnessConfirmResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FitnessConfirmResp) ProtoMessage() {} + +func (x *FitnessConfirmResp) ProtoReflect() protoreflect.Message { + mi := &file_fitness_fitness_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 FitnessConfirmResp.ProtoReflect.Descriptor instead. +func (*FitnessConfirmResp) Descriptor() ([]byte, []int) { + return file_fitness_fitness_msg_proto_rawDescGZIP(), []int{3} +} + var File_fitness_fitness_msg_proto protoreflect.FileDescriptor var file_fitness_fitness_msg_proto_rawDesc = []byte{ 0x0a, 0x19, 0x66, 0x69, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x2f, 0x66, 0x69, 0x74, 0x6e, 0x65, 0x73, - 0x73, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e, - 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x13, 0x0a, 0x11, 0x46, + 0x69, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x47, 0x65, 0x74, 0x42, 0x75, 0x66, 0x66, 0x52, 0x65, 0x71, + 0x22, 0x14, 0x0a, 0x12, 0x46, 0x69, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x47, 0x65, 0x74, 0x42, 0x75, + 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x22, 0x13, 0x0a, 0x11, 0x46, 0x69, 0x74, 0x6e, 0x65, 0x73, + 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x52, 0x65, 0x71, 0x22, 0x14, 0x0a, 0x12, 0x46, + 0x69, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x52, 0x65, 0x73, + 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } -var file_fitness_fitness_msg_proto_goTypes = []interface{}{} +var ( + file_fitness_fitness_msg_proto_rawDescOnce sync.Once + file_fitness_fitness_msg_proto_rawDescData = file_fitness_fitness_msg_proto_rawDesc +) + +func file_fitness_fitness_msg_proto_rawDescGZIP() []byte { + file_fitness_fitness_msg_proto_rawDescOnce.Do(func() { + file_fitness_fitness_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_fitness_fitness_msg_proto_rawDescData) + }) + return file_fitness_fitness_msg_proto_rawDescData +} + +var file_fitness_fitness_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_fitness_fitness_msg_proto_goTypes = []interface{}{ + (*FitnessGetBuffReq)(nil), // 0: FitnessGetBuffReq + (*FitnessGetBuffResp)(nil), // 1: FitnessGetBuffResp + (*FitnessConfirmReq)(nil), // 2: FitnessConfirmReq + (*FitnessConfirmResp)(nil), // 3: FitnessConfirmResp +} var file_fitness_fitness_msg_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type @@ -41,18 +222,69 @@ func file_fitness_fitness_msg_proto_init() { if File_fitness_fitness_msg_proto != nil { return } + if !protoimpl.UnsafeEnabled { + file_fitness_fitness_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FitnessGetBuffReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fitness_fitness_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FitnessGetBuffResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fitness_fitness_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FitnessConfirmReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fitness_fitness_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FitnessConfirmResp); 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_fitness_fitness_msg_proto_rawDesc, NumEnums: 0, - NumMessages: 0, + NumMessages: 4, NumExtensions: 0, NumServices: 0, }, GoTypes: file_fitness_fitness_msg_proto_goTypes, DependencyIndexes: file_fitness_fitness_msg_proto_depIdxs, + MessageInfos: file_fitness_fitness_msg_proto_msgTypes, }.Build() File_fitness_fitness_msg_proto = out.File file_fitness_fitness_msg_proto_rawDesc = nil diff --git a/pb/pandatakekan_db.pb.go b/pb/pandatakekan_db.pb.go deleted file mode 100644 index deb23c689..000000000 --- a/pb/pandatakekan_db.pb.go +++ /dev/null @@ -1,469 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.0 -// protoc v3.20.0 -// source: pandatakekan/pandatakekan_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 PandataPillarState int32 - -const ( - PandataPillarState_NoUse PandataPillarState = 0 //未使用 - PandataPillarState_Useing PandataPillarState = 1 //使用中 - PandataPillarState_Receive PandataPillarState = 2 //待领取 -) - -// Enum value maps for PandataPillarState. -var ( - PandataPillarState_name = map[int32]string{ - 0: "NoUse", - 1: "Useing", - 2: "Receive", - } - PandataPillarState_value = map[string]int32{ - "NoUse": 0, - "Useing": 1, - "Receive": 2, - } -) - -func (x PandataPillarState) Enum() *PandataPillarState { - p := new(PandataPillarState) - *p = x - return p -} - -func (x PandataPillarState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PandataPillarState) Descriptor() protoreflect.EnumDescriptor { - return file_pandatakekan_pandatakekan_db_proto_enumTypes[0].Descriptor() -} - -func (PandataPillarState) Type() protoreflect.EnumType { - return &file_pandatakekan_pandatakekan_db_proto_enumTypes[0] -} - -func (x PandataPillarState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PandataPillarState.Descriptor instead. -func (PandataPillarState) EnumDescriptor() ([]byte, []int) { - return file_pandatakekan_pandatakekan_db_proto_rawDescGZIP(), []int{0} -} - -///熊猫柱子 -type DBPandataPillar struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index"` //柱子下标 - Isunlock bool `protobuf:"varint,2,opt,name=isunlock,proto3" json:"isunlock"` //是否解锁 - State PandataPillarState `protobuf:"varint,3,opt,name=state,proto3,enum=PandataPillarState" json:"state"` //状态 - Hero string `protobuf:"bytes,4,opt,name=hero,proto3" json:"hero"` //当前练功英雄 - Start int64 `protobuf:"varint,5,opt,name=start,proto3" json:"start"` //开始时间 - End int64 `protobuf:"varint,6,opt,name=end,proto3" json:"end"` //结束时间 - Lastbill int64 `protobuf:"varint,7,opt,name=lastbill,proto3" json:"lastbill"` //上次结账时间 - Reward int32 `protobuf:"varint,8,opt,name=reward,proto3" json:"reward"` //奖励 -} - -func (x *DBPandataPillar) Reset() { - *x = DBPandataPillar{} - if protoimpl.UnsafeEnabled { - mi := &file_pandatakekan_pandatakekan_db_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DBPandataPillar) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DBPandataPillar) ProtoMessage() {} - -func (x *DBPandataPillar) ProtoReflect() protoreflect.Message { - mi := &file_pandatakekan_pandatakekan_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 DBPandataPillar.ProtoReflect.Descriptor instead. -func (*DBPandataPillar) Descriptor() ([]byte, []int) { - return file_pandatakekan_pandatakekan_db_proto_rawDescGZIP(), []int{0} -} - -func (x *DBPandataPillar) GetIndex() int32 { - if x != nil { - return x.Index - } - return 0 -} - -func (x *DBPandataPillar) GetIsunlock() bool { - if x != nil { - return x.Isunlock - } - return false -} - -func (x *DBPandataPillar) GetState() PandataPillarState { - if x != nil { - return x.State - } - return PandataPillarState_NoUse -} - -func (x *DBPandataPillar) GetHero() string { - if x != nil { - return x.Hero - } - return "" -} - -func (x *DBPandataPillar) GetStart() int64 { - if x != nil { - return x.Start - } - return 0 -} - -func (x *DBPandataPillar) GetEnd() int64 { - if x != nil { - return x.End - } - return 0 -} - -func (x *DBPandataPillar) GetLastbill() int64 { - if x != nil { - return x.Lastbill - } - return 0 -} - -func (x *DBPandataPillar) GetReward() int32 { - if x != nil { - return x.Reward - } - return 0 -} - -//熊猫武馆教习 -type DBPandataTeacher struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` //id - Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid"` //配置id - Student string `protobuf:"bytes,3,opt,name=student,proto3" json:"student"` //学员id 有表示正在教学,没有表示没有教学 -} - -func (x *DBPandataTeacher) Reset() { - *x = DBPandataTeacher{} - if protoimpl.UnsafeEnabled { - mi := &file_pandatakekan_pandatakekan_db_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DBPandataTeacher) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DBPandataTeacher) ProtoMessage() {} - -func (x *DBPandataTeacher) ProtoReflect() protoreflect.Message { - mi := &file_pandatakekan_pandatakekan_db_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 DBPandataTeacher.ProtoReflect.Descriptor instead. -func (*DBPandataTeacher) Descriptor() ([]byte, []int) { - return file_pandatakekan_pandatakekan_db_proto_rawDescGZIP(), []int{1} -} - -func (x *DBPandataTeacher) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *DBPandataTeacher) GetCid() string { - if x != nil { - return x.Cid - } - return "" -} - -func (x *DBPandataTeacher) GetStudent() string { - if x != nil { - return x.Student - } - return "" -} - -//练功房 -type DBPandataKekan struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` //id - Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"` //用户id - Pillar1 *DBPandataPillar `protobuf:"bytes,4,opt,name=pillar1,proto3" json:"pillar1"` //柱子1 - Pillar2 *DBPandataPillar `protobuf:"bytes,5,opt,name=pillar2,proto3" json:"pillar2"` //柱子2 - Pillar3 *DBPandataPillar `protobuf:"bytes,6,opt,name=pillar3,proto3" json:"pillar3"` //柱子3 - Pillarf *DBPandataPillar `protobuf:"bytes,7,opt,name=pillarf,proto3" json:"pillarf"` //好友柱子 -} - -func (x *DBPandataKekan) Reset() { - *x = DBPandataKekan{} - if protoimpl.UnsafeEnabled { - mi := &file_pandatakekan_pandatakekan_db_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DBPandataKekan) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DBPandataKekan) ProtoMessage() {} - -func (x *DBPandataKekan) ProtoReflect() protoreflect.Message { - mi := &file_pandatakekan_pandatakekan_db_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 DBPandataKekan.ProtoReflect.Descriptor instead. -func (*DBPandataKekan) Descriptor() ([]byte, []int) { - return file_pandatakekan_pandatakekan_db_proto_rawDescGZIP(), []int{2} -} - -func (x *DBPandataKekan) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *DBPandataKekan) GetUid() string { - if x != nil { - return x.Uid - } - return "" -} - -func (x *DBPandataKekan) GetPillar1() *DBPandataPillar { - if x != nil { - return x.Pillar1 - } - return nil -} - -func (x *DBPandataKekan) GetPillar2() *DBPandataPillar { - if x != nil { - return x.Pillar2 - } - return nil -} - -func (x *DBPandataKekan) GetPillar3() *DBPandataPillar { - if x != nil { - return x.Pillar3 - } - return nil -} - -func (x *DBPandataKekan) GetPillarf() *DBPandataPillar { - if x != nil { - return x.Pillarf - } - return nil -} - -var File_pandatakekan_pandatakekan_db_proto protoreflect.FileDescriptor - -var file_pandatakekan_pandatakekan_db_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x6b, 0x65, 0x6b, 0x61, 0x6e, 0x2f, 0x70, - 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x6b, 0x65, 0x6b, 0x61, 0x6e, 0x5f, 0x64, 0x62, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xde, 0x01, 0x0a, 0x0f, 0x44, 0x42, 0x50, 0x61, 0x6e, 0x64, 0x61, - 0x74, 0x61, 0x50, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1a, - 0x0a, 0x08, 0x69, 0x73, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x08, 0x69, 0x73, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x50, 0x61, 0x6e, 0x64, - 0x61, 0x74, 0x61, 0x50, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, - 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x6e, - 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x62, 0x69, 0x6c, 0x6c, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x62, 0x69, 0x6c, 0x6c, 0x12, 0x16, 0x0a, - 0x06, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x72, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x22, 0x4e, 0x0a, 0x10, 0x44, 0x42, 0x50, 0x61, 0x6e, 0x64, 0x61, - 0x74, 0x61, 0x54, 0x65, 0x61, 0x63, 0x68, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, - 0x74, 0x75, 0x64, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x74, - 0x75, 0x64, 0x65, 0x6e, 0x74, 0x22, 0xe2, 0x01, 0x0a, 0x0e, 0x44, 0x42, 0x50, 0x61, 0x6e, 0x64, - 0x61, 0x74, 0x61, 0x4b, 0x65, 0x6b, 0x61, 0x6e, 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, 0x2a, 0x0a, 0x07, 0x70, 0x69, - 0x6c, 0x6c, 0x61, 0x72, 0x31, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x44, 0x42, - 0x50, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x50, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x52, 0x07, 0x70, - 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x31, 0x12, 0x2a, 0x0a, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, - 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x6e, 0x64, - 0x61, 0x74, 0x61, 0x50, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, - 0x72, 0x32, 0x12, 0x2a, 0x0a, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x33, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x50, - 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x33, 0x12, 0x2a, - 0x0a, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x66, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x10, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x50, 0x69, 0x6c, 0x6c, 0x61, - 0x72, 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x66, 0x2a, 0x38, 0x0a, 0x12, 0x50, 0x61, - 0x6e, 0x64, 0x61, 0x74, 0x61, 0x50, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x09, 0x0a, 0x05, 0x4e, 0x6f, 0x55, 0x73, 0x65, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x55, - 0x73, 0x65, 0x69, 0x6e, 0x67, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x10, 0x02, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pandatakekan_pandatakekan_db_proto_rawDescOnce sync.Once - file_pandatakekan_pandatakekan_db_proto_rawDescData = file_pandatakekan_pandatakekan_db_proto_rawDesc -) - -func file_pandatakekan_pandatakekan_db_proto_rawDescGZIP() []byte { - file_pandatakekan_pandatakekan_db_proto_rawDescOnce.Do(func() { - file_pandatakekan_pandatakekan_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_pandatakekan_pandatakekan_db_proto_rawDescData) - }) - return file_pandatakekan_pandatakekan_db_proto_rawDescData -} - -var file_pandatakekan_pandatakekan_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_pandatakekan_pandatakekan_db_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_pandatakekan_pandatakekan_db_proto_goTypes = []interface{}{ - (PandataPillarState)(0), // 0: PandataPillarState - (*DBPandataPillar)(nil), // 1: DBPandataPillar - (*DBPandataTeacher)(nil), // 2: DBPandataTeacher - (*DBPandataKekan)(nil), // 3: DBPandataKekan -} -var file_pandatakekan_pandatakekan_db_proto_depIdxs = []int32{ - 0, // 0: DBPandataPillar.state:type_name -> PandataPillarState - 1, // 1: DBPandataKekan.pillar1:type_name -> DBPandataPillar - 1, // 2: DBPandataKekan.pillar2:type_name -> DBPandataPillar - 1, // 3: DBPandataKekan.pillar3:type_name -> DBPandataPillar - 1, // 4: DBPandataKekan.pillarf:type_name -> DBPandataPillar - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_pandatakekan_pandatakekan_db_proto_init() } -func file_pandatakekan_pandatakekan_db_proto_init() { - if File_pandatakekan_pandatakekan_db_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_pandatakekan_pandatakekan_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DBPandataPillar); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pandatakekan_pandatakekan_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DBPandataTeacher); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pandatakekan_pandatakekan_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DBPandataKekan); 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_pandatakekan_pandatakekan_db_proto_rawDesc, - NumEnums: 1, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pandatakekan_pandatakekan_db_proto_goTypes, - DependencyIndexes: file_pandatakekan_pandatakekan_db_proto_depIdxs, - EnumInfos: file_pandatakekan_pandatakekan_db_proto_enumTypes, - MessageInfos: file_pandatakekan_pandatakekan_db_proto_msgTypes, - }.Build() - File_pandatakekan_pandatakekan_db_proto = out.File - file_pandatakekan_pandatakekan_db_proto_rawDesc = nil - file_pandatakekan_pandatakekan_db_proto_goTypes = nil - file_pandatakekan_pandatakekan_db_proto_depIdxs = nil -} diff --git a/pb/pandatakekan_msg.pb.go b/pb/pandatakekan_msg.pb.go deleted file mode 100644 index cc16e3201..000000000 --- a/pb/pandatakekan_msg.pb.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.0 -// protoc v3.20.0 -// source: pandatakekan/pandatakekan_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 PandataKekanInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PandataKekanInfoReq) Reset() { - *x = PandataKekanInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_pandatakekan_pandatakekan_msg_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PandataKekanInfoReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PandataKekanInfoReq) ProtoMessage() {} - -func (x *PandataKekanInfoReq) ProtoReflect() protoreflect.Message { - mi := &file_pandatakekan_pandatakekan_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 PandataKekanInfoReq.ProtoReflect.Descriptor instead. -func (*PandataKekanInfoReq) Descriptor() ([]byte, []int) { - return file_pandatakekan_pandatakekan_msg_proto_rawDescGZIP(), []int{0} -} - -///信息请求 回应 -type PandataKekanInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Info *DBPandataKekan `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` -} - -func (x *PandataKekanInfoResp) Reset() { - *x = PandataKekanInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_pandatakekan_pandatakekan_msg_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PandataKekanInfoResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PandataKekanInfoResp) ProtoMessage() {} - -func (x *PandataKekanInfoResp) ProtoReflect() protoreflect.Message { - mi := &file_pandatakekan_pandatakekan_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 PandataKekanInfoResp.ProtoReflect.Descriptor instead. -func (*PandataKekanInfoResp) Descriptor() ([]byte, []int) { - return file_pandatakekan_pandatakekan_msg_proto_rawDescGZIP(), []int{1} -} - -func (x *PandataKekanInfoResp) GetInfo() *DBPandataKekan { - if x != nil { - return x.Info - } - return nil -} - -var File_pandatakekan_pandatakekan_msg_proto protoreflect.FileDescriptor - -var file_pandatakekan_pandatakekan_msg_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x6b, 0x65, 0x6b, 0x61, 0x6e, 0x2f, 0x70, - 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x6b, 0x65, 0x6b, 0x61, 0x6e, 0x5f, 0x6d, 0x73, 0x67, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x6b, 0x65, - 0x6b, 0x61, 0x6e, 0x2f, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x6b, 0x65, 0x6b, 0x61, 0x6e, - 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x15, 0x0a, 0x13, 0x50, 0x61, 0x6e, - 0x64, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x6b, 0x61, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, - 0x22, 0x3b, 0x0a, 0x14, 0x50, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x6b, 0x61, 0x6e, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x6e, 0x64, 0x61, - 0x74, 0x61, 0x4b, 0x65, 0x6b, 0x61, 0x6e, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x42, 0x06, 0x5a, - 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pandatakekan_pandatakekan_msg_proto_rawDescOnce sync.Once - file_pandatakekan_pandatakekan_msg_proto_rawDescData = file_pandatakekan_pandatakekan_msg_proto_rawDesc -) - -func file_pandatakekan_pandatakekan_msg_proto_rawDescGZIP() []byte { - file_pandatakekan_pandatakekan_msg_proto_rawDescOnce.Do(func() { - file_pandatakekan_pandatakekan_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_pandatakekan_pandatakekan_msg_proto_rawDescData) - }) - return file_pandatakekan_pandatakekan_msg_proto_rawDescData -} - -var file_pandatakekan_pandatakekan_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_pandatakekan_pandatakekan_msg_proto_goTypes = []interface{}{ - (*PandataKekanInfoReq)(nil), // 0: PandataKekanInfoReq - (*PandataKekanInfoResp)(nil), // 1: PandataKekanInfoResp - (*DBPandataKekan)(nil), // 2: DBPandataKekan -} -var file_pandatakekan_pandatakekan_msg_proto_depIdxs = []int32{ - 2, // 0: PandataKekanInfoResp.info:type_name -> DBPandataKekan - 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_pandatakekan_pandatakekan_msg_proto_init() } -func file_pandatakekan_pandatakekan_msg_proto_init() { - if File_pandatakekan_pandatakekan_msg_proto != nil { - return - } - file_pandatakekan_pandatakekan_db_proto_init() - if !protoimpl.UnsafeEnabled { - file_pandatakekan_pandatakekan_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PandataKekanInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pandatakekan_pandatakekan_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PandataKekanInfoResp); 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_pandatakekan_pandatakekan_msg_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pandatakekan_pandatakekan_msg_proto_goTypes, - DependencyIndexes: file_pandatakekan_pandatakekan_msg_proto_depIdxs, - MessageInfos: file_pandatakekan_pandatakekan_msg_proto_msgTypes, - }.Build() - File_pandatakekan_pandatakekan_msg_proto = out.File - file_pandatakekan_pandatakekan_msg_proto_rawDesc = nil - file_pandatakekan_pandatakekan_msg_proto_goTypes = nil - file_pandatakekan_pandatakekan_msg_proto_depIdxs = nil -} diff --git a/pb/sociaty_db.pb.go b/pb/sociaty_db.pb.go index 5468be107..857efff88 100644 --- a/pb/sociaty_db.pb.go +++ b/pb/sociaty_db.pb.go @@ -1073,7 +1073,7 @@ func (x *ChallengeTask) GetStatus() int32 { return 0 } -// 成员公会BOSS挑战历史记录 +//玩家赛季记录 type DBSociatyBossRecord struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/pb/taskcond_msg.pb.go b/pb/taskcond_msg.pb.go deleted file mode 100644 index 9a95d62c1..000000000 --- a/pb/taskcond_msg.pb.go +++ /dev/null @@ -1,143 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.0 -// protoc v3.20.0 -// source: taskcond/taskcond_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 TaskcondFinishedPush struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CondId int32 `protobuf:"varint,1,opt,name=condId,proto3" json:"condId"` //任务条件ID -} - -func (x *TaskcondFinishedPush) Reset() { - *x = TaskcondFinishedPush{} - if protoimpl.UnsafeEnabled { - mi := &file_taskcond_taskcond_msg_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskcondFinishedPush) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskcondFinishedPush) ProtoMessage() {} - -func (x *TaskcondFinishedPush) ProtoReflect() protoreflect.Message { - mi := &file_taskcond_taskcond_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 TaskcondFinishedPush.ProtoReflect.Descriptor instead. -func (*TaskcondFinishedPush) Descriptor() ([]byte, []int) { - return file_taskcond_taskcond_msg_proto_rawDescGZIP(), []int{0} -} - -func (x *TaskcondFinishedPush) GetCondId() int32 { - if x != nil { - return x.CondId - } - return 0 -} - -var File_taskcond_taskcond_msg_proto protoreflect.FileDescriptor - -var file_taskcond_taskcond_msg_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x74, 0x61, 0x73, 0x6b, 0x63, 0x6f, 0x6e, 0x64, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x63, - 0x6f, 0x6e, 0x64, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2e, 0x0a, - 0x14, 0x54, 0x61, 0x73, 0x6b, 0x63, 0x6f, 0x6e, 0x64, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, - 0x64, 0x50, 0x75, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x64, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x64, 0x49, 0x64, 0x42, 0x06, 0x5a, - 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_taskcond_taskcond_msg_proto_rawDescOnce sync.Once - file_taskcond_taskcond_msg_proto_rawDescData = file_taskcond_taskcond_msg_proto_rawDesc -) - -func file_taskcond_taskcond_msg_proto_rawDescGZIP() []byte { - file_taskcond_taskcond_msg_proto_rawDescOnce.Do(func() { - file_taskcond_taskcond_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_taskcond_taskcond_msg_proto_rawDescData) - }) - return file_taskcond_taskcond_msg_proto_rawDescData -} - -var file_taskcond_taskcond_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_taskcond_taskcond_msg_proto_goTypes = []interface{}{ - (*TaskcondFinishedPush)(nil), // 0: TaskcondFinishedPush -} -var file_taskcond_taskcond_msg_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_taskcond_taskcond_msg_proto_init() } -func file_taskcond_taskcond_msg_proto_init() { - if File_taskcond_taskcond_msg_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_taskcond_taskcond_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskcondFinishedPush); 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_taskcond_taskcond_msg_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_taskcond_taskcond_msg_proto_goTypes, - DependencyIndexes: file_taskcond_taskcond_msg_proto_depIdxs, - MessageInfos: file_taskcond_taskcond_msg_proto_msgTypes, - }.Build() - File_taskcond_taskcond_msg_proto = out.File - file_taskcond_taskcond_msg_proto_rawDesc = nil - file_taskcond_taskcond_msg_proto_goTypes = nil - file_taskcond_taskcond_msg_proto_depIdxs = nil -} From a1e06f468769158e2e1f751f61724a1ea841bcfa Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Thu, 23 Feb 2023 11:35:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B4=BE=E9=81=A3?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/json/game_dispatch_all.json | 34 ------- bin/json/game_dispatch_reward.json | 28 ------ comm/const.go | 98 ++++++++++--------- modules/dispatch/api.go | 17 ++++ modules/dispatch/model_dispatch.go | 28 ++++++ modules/dispatch/module.go | 27 +++++ services/worker/main.go | 2 + sys/configure/structs/Game.Dispatch_All.go | 42 -------- .../structs/Game.Dispatch_AllData.go | 37 ------- sys/configure/structs/Game.Dispatch_Reward.go | 42 -------- .../structs/Game.Dispatch_RewardData.go | 67 ------------- 11 files changed, 125 insertions(+), 297 deletions(-) delete mode 100644 bin/json/game_dispatch_all.json delete mode 100644 bin/json/game_dispatch_reward.json create mode 100644 modules/dispatch/api.go create mode 100644 modules/dispatch/model_dispatch.go create mode 100644 modules/dispatch/module.go delete mode 100644 sys/configure/structs/Game.Dispatch_All.go delete mode 100644 sys/configure/structs/Game.Dispatch_AllData.go delete mode 100644 sys/configure/structs/Game.Dispatch_Reward.go delete mode 100644 sys/configure/structs/Game.Dispatch_RewardData.go diff --git a/bin/json/game_dispatch_all.json b/bin/json/game_dispatch_all.json deleted file mode 100644 index 9ada55054..000000000 --- a/bin/json/game_dispatch_all.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "id": 101, - "quantity": 1 - }, - { - "id": 102, - "quantity": 12 - }, - { - "id": 103, - "quantity": 1000 - }, - { - "id": 104, - "quantity": 6 - }, - { - "id": 105, - "quantity": 6 - }, - { - "id": 106, - "quantity": 10012 - }, - { - "id": 107, - "quantity": 20 - }, - { - "id": 108, - "quantity": 2 - } -] \ No newline at end of file diff --git a/bin/json/game_dispatch_reward.json b/bin/json/game_dispatch_reward.json deleted file mode 100644 index 03865c91c..000000000 --- a/bin/json/game_dispatch_reward.json +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "id": 1, - "num": [ - 1, - 2, - 3 - ], - "reward": [ - { - "a": "attr", - "t": "gold", - "n": 999 - }, - { - "a": "attr", - "t": "gold", - "n": 9999 - }, - { - "a": "attr", - "t": "gold", - "n": 99999 - } - ], - "day": 7 - } -] \ No newline at end of file diff --git a/comm/const.go b/comm/const.go index ddad16cd1..4bc6d8de0 100644 --- a/comm/const.go +++ b/comm/const.go @@ -34,53 +34,55 @@ const ( // 模块名定义处 const ( - ModuleSys core.M_Modules = "sys" //系统 - ModuleGate core.M_Modules = "gateway" //gate模块 网关服务模块 - ModuleWeb core.M_Modules = "web" //后台模块 - ModuleUser core.M_Modules = "user" //用户模块 - ModulePack core.M_Modules = "pack" //背包模块 - ModuleMail core.M_Modules = "mail" //邮件模块 - ModuleFriend core.M_Modules = "friend" //好友模块 - ModuleMgoLog core.M_Modules = "mgolog" //日志模块 - ModuleEquipment core.M_Modules = "equipment" //装备模块 - ModuleHero core.M_Modules = "hero" //英雄模块 - ModuleForum core.M_Modules = "forum" //论坛模块 - ModuleItems core.M_Modules = "items" //道具模块 - ModuleShop core.M_Modules = "shop" //商店模块 - ModuleTask core.M_Modules = "task" //任务模块 - ModuleMainline core.M_Modules = "mainline" //主线模块 - ModuleNotify core.M_Modules = "notify" //公告模块 - ModuleChat core.M_Modules = "chat" //聊天模块 - ModuleGM core.M_Modules = "gm" //gm模块 - ModulePagoda core.M_Modules = "pagoda" //魔塔模块 - ModuleMartialhall core.M_Modules = "martialhall" //武馆模块 - ModuleGourmet core.M_Modules = "gourmet" //美食馆 - ModuleRtask core.M_Modules = "rtask" //随机任务 - ModuleSmithy core.M_Modules = "smithy" //铁匠铺 - ModuleTimer core.M_Modules = "timer" //定时任务模块 - ModuleViking core.M_Modules = "viking" //维京远征 - ModuleMoonfantasy core.M_Modules = "moonfantasy" //月之秘境模块 - ModuleHunting core.M_Modules = "hunting" //狩猎 - ModuleLinestory core.M_Modules = "linestory" //支线剧情 - ModuleBattle core.M_Modules = "battle" //战斗 - ModuleLibrary core.M_Modules = "library" //藏书馆 - ModuleArena core.M_Modules = "arena" //竞技场 - ModuleTroll core.M_Modules = "troll" //巨怪商队 - ModuleHoroscope core.M_Modules = "horoscope" //星座图 - ModuleSociaty core.M_Modules = "sociaty" //公会 - ModulePay core.M_Modules = "pay" //支付 - ModuleAcademy core.M_Modules = "academy" //联盟学院 - ModulePrivilege core.M_Modules = "privilege" //特权 - ModuleGrowtask core.M_Modules = "growtask" //成长任务 - ModuleWorldtask core.M_Modules = "worldtask" //世界任务 - ModuleReddot core.M_Modules = "reddot" //红点 - ModuleCombat core.M_Modules = "combat" //关卡编辑 - ModuleEnchant core.M_Modules = "enchant" //附魔 - ModuleAutoBattle core.M_Modules = "autobattle" //自动战斗 - ModuleMline core.M_Modules = "mline" //主线模块 - ModulePvp core.M_Modules = "pvp" //实时pvp - ModulePractice core.M_Modules = "practice" //熊猫武馆 练功系统 - ModuleFitness core.M_Modules = "fitness" //熊猫武馆 每日一健 + ModuleSys core.M_Modules = "sys" //系统 + ModuleGate core.M_Modules = "gateway" //gate模块 网关服务模块 + ModuleWeb core.M_Modules = "web" //后台模块 + ModuleUser core.M_Modules = "user" //用户模块 + ModulePack core.M_Modules = "pack" //背包模块 + ModuleMail core.M_Modules = "mail" //邮件模块 + ModuleFriend core.M_Modules = "friend" //好友模块 + ModuleMgoLog core.M_Modules = "mgolog" //日志模块 + ModuleEquipment core.M_Modules = "equipment" //装备模块 + ModuleHero core.M_Modules = "hero" //英雄模块 + ModuleForum core.M_Modules = "forum" //论坛模块 + ModuleItems core.M_Modules = "items" //道具模块 + ModuleShop core.M_Modules = "shop" //商店模块 + ModuleTask core.M_Modules = "task" //任务模块 + ModuleMainline core.M_Modules = "mainline" //主线模块 + ModuleNotify core.M_Modules = "notify" //公告模块 + ModuleChat core.M_Modules = "chat" //聊天模块 + ModuleGM core.M_Modules = "gm" //gm模块 + ModulePagoda core.M_Modules = "pagoda" //魔塔模块 + ModuleMartialhall core.M_Modules = "martialhall" //武馆模块 + ModuleGourmet core.M_Modules = "gourmet" //美食馆 + ModuleRtask core.M_Modules = "rtask" //随机任务 + ModuleSmithy core.M_Modules = "smithy" //铁匠铺 + ModuleTimer core.M_Modules = "timer" //定时任务模块 + ModuleViking core.M_Modules = "viking" //维京远征 + ModuleMoonfantasy core.M_Modules = "moonfantasy" //月之秘境模块 + ModuleHunting core.M_Modules = "hunting" //狩猎 + ModuleLinestory core.M_Modules = "linestory" //支线剧情 + ModuleBattle core.M_Modules = "battle" //战斗 + ModuleLibrary core.M_Modules = "library" //藏书馆 + ModuleArena core.M_Modules = "arena" //竞技场 + ModuleTroll core.M_Modules = "troll" //巨怪商队 + ModuleHoroscope core.M_Modules = "horoscope" //星座图 + ModuleSociaty core.M_Modules = "sociaty" //公会 + ModulePay core.M_Modules = "pay" //支付 + ModuleAcademy core.M_Modules = "academy" //联盟学院 + ModulePrivilege core.M_Modules = "privilege" //特权 + ModuleGrowtask core.M_Modules = "growtask" //成长任务 + ModuleWorldtask core.M_Modules = "worldtask" //世界任务 + ModuleReddot core.M_Modules = "reddot" //红点 + ModuleCombat core.M_Modules = "combat" //关卡编辑 + ModuleEnchant core.M_Modules = "enchant" //附魔 + ModuleAutoBattle core.M_Modules = "autobattle" //自动战斗 + ModuleMline core.M_Modules = "mline" //主线模块 + ModulePvp core.M_Modules = "pvp" //实时pvp + ModulePandaTakekan core.M_Modules = "pandatakekan" //熊猫武馆 + ModuleDispatch core.M_Modules = "dispatch" //武馆派遣 + ModulePractice core.M_Modules = "practice" //熊猫武馆 练功系统 + ModuleFitness core.M_Modules = "fitness" //熊猫武馆 每日一健 ) // 数据表名定义处 @@ -233,6 +235,8 @@ const ( ///熊猫物管部 TablePandata = "pandata" + // 熊猫武馆派遣 + TableDispatch = "dispatch" ) // RPC服务接口定义处 diff --git a/modules/dispatch/api.go b/modules/dispatch/api.go new file mode 100644 index 000000000..c4cc19b86 --- /dev/null +++ b/modules/dispatch/api.go @@ -0,0 +1,17 @@ +package dispatch + +import ( + "go_dreamfactory/lego/core" + "go_dreamfactory/modules" +) + +type apiComp struct { + modules.MCompGate + module *Dispatch +} + +func(this *apiComp) Init(service core.IService, module core.IModule,comp core.IModuleComp, options core.IModuleOptions) (err error){ + _ = this.MCompGate.Init(service, module, comp, options) + this.module = module.(*Dispatch) + return +} \ No newline at end of file diff --git a/modules/dispatch/model_dispatch.go b/modules/dispatch/model_dispatch.go new file mode 100644 index 000000000..347acabc4 --- /dev/null +++ b/modules/dispatch/model_dispatch.go @@ -0,0 +1,28 @@ +package dispatch + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/lego/core" + "go_dreamfactory/modules" + + "go.mongodb.org/mongo-driver/mongo" + "go.mongodb.org/mongo-driver/x/bsonx" +) + +type modelDispatch struct { + modules.MCompModel + module *Dispatch + service core.IService +} + +func (this *modelDispatch) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) { + err = this.MCompModel.Init(service, module, comp, options) + this.TableName = comm.TableDispatch + this.module = module.(*Dispatch) + this.service = service + this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{ + Keys: bsonx.Doc{{Key: "_id", Value: bsonx.Int32(1)}}, + }) + + return +} diff --git a/modules/dispatch/module.go b/modules/dispatch/module.go new file mode 100644 index 000000000..3ab56bfb5 --- /dev/null +++ b/modules/dispatch/module.go @@ -0,0 +1,27 @@ +package dispatch + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/lego/core" + "go_dreamfactory/modules" +) + +// 派遣 +type Dispatch struct { + modules.ModuleBase + api *apiComp +} + +func NewModule() core.IModule { + return &Dispatch{} +} + +func (this *Dispatch) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error){ + err = this.ModuleBase.Init(service, module, options) + return +} + + +func (this *Dispatch) GetType() core.M_Modules { + return comm.ModuleDispatch +} diff --git a/services/worker/main.go b/services/worker/main.go index 810177926..168949c73 100644 --- a/services/worker/main.go +++ b/services/worker/main.go @@ -8,6 +8,7 @@ import ( "go_dreamfactory/modules/battle" "go_dreamfactory/modules/chat" "go_dreamfactory/modules/combat" + "go_dreamfactory/modules/dispatch" "go_dreamfactory/modules/enchant" "go_dreamfactory/modules/equipment" "go_dreamfactory/modules/forum" @@ -112,6 +113,7 @@ func main() { enchant.NewModule(), mline.NewModule(), pvp.NewModule(), + dispatch.NewModule(), ) } diff --git a/sys/configure/structs/Game.Dispatch_All.go b/sys/configure/structs/Game.Dispatch_All.go deleted file mode 100644 index c09f6442c..000000000 --- a/sys/configure/structs/Game.Dispatch_All.go +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -package cfg - -type GameDispatch_All struct { - _dataMap map[int32]*GameDispatch_AllData - _dataList []*GameDispatch_AllData -} - -func NewGameDispatch_All(_buf []map[string]interface{}) (*GameDispatch_All, error) { - _dataList := make([]*GameDispatch_AllData, 0, len(_buf)) - dataMap := make(map[int32]*GameDispatch_AllData) - for _, _ele_ := range _buf { - if _v, err2 := DeserializeGameDispatch_AllData(_ele_); err2 != nil { - return nil, err2 - } else { - _dataList = append(_dataList, _v) - dataMap[_v.Id] = _v - } - } - return &GameDispatch_All{_dataList:_dataList, _dataMap:dataMap}, nil -} - -func (table *GameDispatch_All) GetDataMap() map[int32]*GameDispatch_AllData { - return table._dataMap -} - -func (table *GameDispatch_All) GetDataList() []*GameDispatch_AllData { - return table._dataList -} - -func (table *GameDispatch_All) Get(key int32) *GameDispatch_AllData { - return table._dataMap[key] -} - - diff --git a/sys/configure/structs/Game.Dispatch_AllData.go b/sys/configure/structs/Game.Dispatch_AllData.go deleted file mode 100644 index f7dc896c4..000000000 --- a/sys/configure/structs/Game.Dispatch_AllData.go +++ /dev/null @@ -1,37 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -package cfg - -import "errors" - -type GameDispatch_AllData struct { - Id int32 - Quantity float32 -} - -const TypeId_GameDispatch_AllData = 1167514754 - -func (*GameDispatch_AllData) GetTypeId() int32 { - return 1167514754 -} - -func (_v *GameDispatch_AllData)Deserialize(_buf map[string]interface{}) (err error) { - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["quantity"].(float64); !_ok_ { err = errors.New("quantity error"); return }; _v.Quantity = float32(_tempNum_) } - return -} - -func DeserializeGameDispatch_AllData(_buf map[string]interface{}) (*GameDispatch_AllData, error) { - v := &GameDispatch_AllData{} - if err := v.Deserialize(_buf); err == nil { - return v, nil - } else { - return nil, err - } -} diff --git a/sys/configure/structs/Game.Dispatch_Reward.go b/sys/configure/structs/Game.Dispatch_Reward.go deleted file mode 100644 index ff1ae14b5..000000000 --- a/sys/configure/structs/Game.Dispatch_Reward.go +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -package cfg - -type GameDispatch_Reward struct { - _dataMap map[int32]*GameDispatch_RewardData - _dataList []*GameDispatch_RewardData -} - -func NewGameDispatch_Reward(_buf []map[string]interface{}) (*GameDispatch_Reward, error) { - _dataList := make([]*GameDispatch_RewardData, 0, len(_buf)) - dataMap := make(map[int32]*GameDispatch_RewardData) - for _, _ele_ := range _buf { - if _v, err2 := DeserializeGameDispatch_RewardData(_ele_); err2 != nil { - return nil, err2 - } else { - _dataList = append(_dataList, _v) - dataMap[_v.Id] = _v - } - } - return &GameDispatch_Reward{_dataList:_dataList, _dataMap:dataMap}, nil -} - -func (table *GameDispatch_Reward) GetDataMap() map[int32]*GameDispatch_RewardData { - return table._dataMap -} - -func (table *GameDispatch_Reward) GetDataList() []*GameDispatch_RewardData { - return table._dataList -} - -func (table *GameDispatch_Reward) Get(key int32) *GameDispatch_RewardData { - return table._dataMap[key] -} - - diff --git a/sys/configure/structs/Game.Dispatch_RewardData.go b/sys/configure/structs/Game.Dispatch_RewardData.go deleted file mode 100644 index fa0809315..000000000 --- a/sys/configure/structs/Game.Dispatch_RewardData.go +++ /dev/null @@ -1,67 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -package cfg - -import "errors" - -type GameDispatch_RewardData struct { - Id int32 - Num []int32 - Reward []*Gameatn - Day int32 -} - -const TypeId_GameDispatch_RewardData = -356577150 - -func (*GameDispatch_RewardData) GetTypeId() int32 { - return -356577150 -} - -func (_v *GameDispatch_RewardData)Deserialize(_buf map[string]interface{}) (err error) { - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } - { - var _arr_ []interface{} - var _ok_ bool - if _arr_, _ok_ = _buf["num"].([]interface{}); !_ok_ { err = errors.New("num error"); return } - - _v.Num = make([]int32, 0, len(_arr_)) - - for _, _e_ := range _arr_ { - var _list_v_ int32 - { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } - _v.Num = append(_v.Num, _list_v_) - } - } - - { - var _arr_ []interface{} - var _ok_ bool - if _arr_, _ok_ = _buf["reward"].([]interface{}); !_ok_ { err = errors.New("reward error"); return } - - _v.Reward = make([]*Gameatn, 0, len(_arr_)) - - for _, _e_ := range _arr_ { - var _list_v_ *Gameatn - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } } - _v.Reward = append(_v.Reward, _list_v_) - } - } - - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["day"].(float64); !_ok_ { err = errors.New("day error"); return }; _v.Day = int32(_tempNum_) } - return -} - -func DeserializeGameDispatch_RewardData(_buf map[string]interface{}) (*GameDispatch_RewardData, error) { - v := &GameDispatch_RewardData{} - if err := v.Deserialize(_buf); err == nil { - return v, nil - } else { - return nil, err - } -}