diff --git a/comm/const.go b/comm/const.go index 93ecf22ad..5cbc8d74b 100644 --- a/comm/const.go +++ b/comm/const.go @@ -91,6 +91,7 @@ const ( ModuleWtask core.M_Modules = "wtask" //世界任务 ModulePasson core.M_Modules = "passon" //传功房 ModuleWarorder core.M_Modules = "warorder" //战令 + ModuleUnionGve core.M_Modules = "uniongve" //工会boos战 ) // 数据表名定义处 @@ -289,6 +290,9 @@ const ( ///记录用户爬塔排行数据 TableRaceRecord = "pagodarace" + + ///工会战 + TableUniongve = "uniongve" ) // RPC服务接口定义处 diff --git a/modules/uniongve/api.go b/modules/uniongve/api.go new file mode 100644 index 000000000..d83afdf69 --- /dev/null +++ b/modules/uniongve/api.go @@ -0,0 +1,20 @@ +package uniongve + +import ( + "go_dreamfactory/lego/base" + "go_dreamfactory/lego/core" + "go_dreamfactory/modules" +) + +type apiComp struct { + modules.MCompGate + service base.IRPCXService + module *UnionGve +} + +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.service = service.(base.IRPCXService) + this.module = module.(*UnionGve) + return +} diff --git a/modules/uniongve/api_info.go b/modules/uniongve/api_info.go new file mode 100644 index 000000000..4e914b5b4 --- /dev/null +++ b/modules/uniongve/api_info.go @@ -0,0 +1,25 @@ +package uniongve + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/pb" +) + +// 参数校验 +func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.UniongveInfoReq) (errdata *pb.ErrorData) { + + return +} + +// 获取工会boos战信息 +func (this *apiComp) Info(session comm.IUserSession, req *pb.UniongveInfoReq) (errdata *pb.ErrorData) { + var ( + info *pb.DBUnionGve + ) + if errdata = this.InfoCheck(session, req); errdata != nil { + return + } + this.module.modelUniongve.getUnionGve(req.Unionid) + session.SendMsg(string(this.module.GetType()), "info", &pb.UniongveInfoResp{Info: info}) + return +} diff --git a/modules/uniongve/comp_configure.go b/modules/uniongve/comp_configure.go new file mode 100644 index 000000000..f2300873a --- /dev/null +++ b/modules/uniongve/comp_configure.go @@ -0,0 +1,19 @@ +package uniongve + +import ( + "go_dreamfactory/lego/core" + "go_dreamfactory/lego/core/cbase" +) + +const () + +// /配置管理基础组件 +type MCompConfigure struct { + cbase.ModuleCompBase +} + +// 组件初始化接口 +func (this *MCompConfigure) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) { + err = this.ModuleCompBase.Init(service, module, comp, options) + return +} diff --git a/modules/uniongve/modelUniongve.go b/modules/uniongve/modelUniongve.go new file mode 100644 index 000000000..4ffd6f39d --- /dev/null +++ b/modules/uniongve/modelUniongve.go @@ -0,0 +1,40 @@ +package uniongve + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/lego/core" + "go_dreamfactory/lego/sys/mgo" + "go_dreamfactory/modules" + "go_dreamfactory/pb" +) + +type ModelUniongve struct { + modules.MCompModel + module *UnionGve +} + +func (this *ModelUniongve) 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.TableUniongve + this.module = module.(*UnionGve) + return +} + +// 获取用户全部的埋点数据 +func (this *ModelUniongve) getUnionGve(unionid string) (results *pb.DBUnionGve, err error) { + results = &pb.DBUnionGve{} + if err = this.Get(unionid, results); err != nil && err != mgo.MongodbNil { + this.module.Errorln(err) + return + } + if err == mgo.MongodbNil { + err = nil + results = &pb.DBUnionGve{ + Unionid: unionid, + Currstage: 0, + Boos: make([]*pb.DBUnionGveBoss, 0), + } + err = this.Add(unionid, results) + } + return +} diff --git a/modules/uniongve/module.go b/modules/uniongve/module.go new file mode 100644 index 000000000..7ab0db47f --- /dev/null +++ b/modules/uniongve/module.go @@ -0,0 +1,44 @@ +package uniongve + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/lego/core" + "go_dreamfactory/modules" +) + +func NewModule() core.IModule { + m := new(UnionGve) + return m +} + +type UnionGve struct { + modules.ModuleBase + api *apiComp + modelUniongve *ModelUniongve + configure *MCompConfigure +} + +// 模块名 +func (this *UnionGve) GetType() core.M_Modules { + return comm.ModuleUnionGve +} + +// 模块初始化接口 注册用户创建角色事件 +func (this *UnionGve) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) { + err = this.ModuleBase.Init(service, module, options) + return +} + +// 模块初始化接口 注册用户创建角色事件 +func (this *UnionGve) Start() (err error) { + err = this.ModuleBase.Start() + return +} + +// 装备组件 +func (this *UnionGve) OnInstallComp() { + this.ModuleBase.OnInstallComp() + this.api = this.RegisterComp(new(apiComp)).(*apiComp) + this.configure = this.RegisterComp(new(MCompConfigure)).(*MCompConfigure) + this.modelUniongve = this.RegisterComp(new(ModelUniongve)).(*ModelUniongve) +} diff --git a/pb/uniongve_db.pb.go b/pb/uniongve_db.pb.go new file mode 100644 index 000000000..596ed044b --- /dev/null +++ b/pb/uniongve_db.pb.go @@ -0,0 +1,330 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0 +// protoc v3.20.0 +// source: uniongve/uniongve_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) +) + +//工会战Boos +type DBUnionGve struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Unionid string `protobuf:"bytes,1,opt,name=unionid,proto3" json:"unionid"` //工会id + Notice string `protobuf:"bytes,2,opt,name=notice,proto3" json:"notice"` //公告 + Currstage int32 `protobuf:"varint,3,opt,name=currstage,proto3" json:"currstage"` //当前第几阶段 + Boos []*DBUnionGveBoss `protobuf:"bytes,4,rep,name=boos,proto3" json:"boos"` //boos列表 +} + +func (x *DBUnionGve) Reset() { + *x = DBUnionGve{} + if protoimpl.UnsafeEnabled { + mi := &file_uniongve_uniongve_db_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DBUnionGve) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DBUnionGve) ProtoMessage() {} + +func (x *DBUnionGve) ProtoReflect() protoreflect.Message { + mi := &file_uniongve_uniongve_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 DBUnionGve.ProtoReflect.Descriptor instead. +func (*DBUnionGve) Descriptor() ([]byte, []int) { + return file_uniongve_uniongve_db_proto_rawDescGZIP(), []int{0} +} + +func (x *DBUnionGve) GetUnionid() string { + if x != nil { + return x.Unionid + } + return "" +} + +func (x *DBUnionGve) GetNotice() string { + if x != nil { + return x.Notice + } + return "" +} + +func (x *DBUnionGve) GetCurrstage() int32 { + if x != nil { + return x.Currstage + } + return 0 +} + +func (x *DBUnionGve) GetBoos() []*DBUnionGveBoss { + if x != nil { + return x.Boos + } + return nil +} + +//工会boos +type DBUnionGveBoss struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Boosid int32 `protobuf:"varint,1,opt,name=boosid,proto3" json:"boosid"` + Hp int32 `protobuf:"varint,2,opt,name=hp,proto3" json:"hp"` + Record []*DBGveRecord `protobuf:"bytes,3,rep,name=record,proto3" json:"record"` +} + +func (x *DBUnionGveBoss) Reset() { + *x = DBUnionGveBoss{} + if protoimpl.UnsafeEnabled { + mi := &file_uniongve_uniongve_db_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DBUnionGveBoss) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DBUnionGveBoss) ProtoMessage() {} + +func (x *DBUnionGveBoss) ProtoReflect() protoreflect.Message { + mi := &file_uniongve_uniongve_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 DBUnionGveBoss.ProtoReflect.Descriptor instead. +func (*DBUnionGveBoss) Descriptor() ([]byte, []int) { + return file_uniongve_uniongve_db_proto_rawDescGZIP(), []int{1} +} + +func (x *DBUnionGveBoss) GetBoosid() int32 { + if x != nil { + return x.Boosid + } + return 0 +} + +func (x *DBUnionGveBoss) GetHp() int32 { + if x != nil { + return x.Hp + } + return 0 +} + +func (x *DBUnionGveBoss) GetRecord() []*DBGveRecord { + if x != nil { + return x.Record + } + return nil +} + +//战斗记录 +type DBGveRecord struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` + Formation []string `protobuf:"bytes,2,rep,name=formation,proto3" json:"formation"` +} + +func (x *DBGveRecord) Reset() { + *x = DBGveRecord{} + if protoimpl.UnsafeEnabled { + mi := &file_uniongve_uniongve_db_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DBGveRecord) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DBGveRecord) ProtoMessage() {} + +func (x *DBGveRecord) ProtoReflect() protoreflect.Message { + mi := &file_uniongve_uniongve_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 DBGveRecord.ProtoReflect.Descriptor instead. +func (*DBGveRecord) Descriptor() ([]byte, []int) { + return file_uniongve_uniongve_db_proto_rawDescGZIP(), []int{2} +} + +func (x *DBGveRecord) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *DBGveRecord) GetFormation() []string { + if x != nil { + return x.Formation + } + return nil +} + +var File_uniongve_uniongve_db_proto protoreflect.FileDescriptor + +var file_uniongve_uniongve_db_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x67, 0x76, 0x65, 0x2f, 0x75, 0x6e, 0x69, 0x6f, 0x6e, + 0x67, 0x76, 0x65, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x81, 0x01, 0x0a, + 0x0a, 0x44, 0x42, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x47, 0x76, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x75, + 0x6e, 0x69, 0x6f, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x6e, + 0x69, 0x6f, 0x6e, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x63, 0x75, 0x72, 0x72, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x09, 0x63, 0x75, 0x72, 0x72, 0x73, 0x74, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x04, 0x62, + 0x6f, 0x6f, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x55, 0x6e, + 0x69, 0x6f, 0x6e, 0x47, 0x76, 0x65, 0x42, 0x6f, 0x73, 0x73, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x73, + 0x22, 0x5e, 0x0a, 0x0e, 0x44, 0x42, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x47, 0x76, 0x65, 0x42, 0x6f, + 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x6f, 0x6f, 0x73, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x06, 0x62, 0x6f, 0x6f, 0x73, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x70, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x68, 0x70, 0x12, 0x24, 0x0a, 0x06, 0x72, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x47, + 0x76, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x06, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x22, 0x3d, 0x0a, 0x0b, 0x44, 0x42, 0x47, 0x76, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, + 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, + 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, + 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_uniongve_uniongve_db_proto_rawDescOnce sync.Once + file_uniongve_uniongve_db_proto_rawDescData = file_uniongve_uniongve_db_proto_rawDesc +) + +func file_uniongve_uniongve_db_proto_rawDescGZIP() []byte { + file_uniongve_uniongve_db_proto_rawDescOnce.Do(func() { + file_uniongve_uniongve_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_uniongve_uniongve_db_proto_rawDescData) + }) + return file_uniongve_uniongve_db_proto_rawDescData +} + +var file_uniongve_uniongve_db_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_uniongve_uniongve_db_proto_goTypes = []interface{}{ + (*DBUnionGve)(nil), // 0: DBUnionGve + (*DBUnionGveBoss)(nil), // 1: DBUnionGveBoss + (*DBGveRecord)(nil), // 2: DBGveRecord +} +var file_uniongve_uniongve_db_proto_depIdxs = []int32{ + 1, // 0: DBUnionGve.boos:type_name -> DBUnionGveBoss + 2, // 1: DBUnionGveBoss.record:type_name -> DBGveRecord + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_uniongve_uniongve_db_proto_init() } +func file_uniongve_uniongve_db_proto_init() { + if File_uniongve_uniongve_db_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_uniongve_uniongve_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DBUnionGve); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uniongve_uniongve_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DBUnionGveBoss); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uniongve_uniongve_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DBGveRecord); 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_uniongve_uniongve_db_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uniongve_uniongve_db_proto_goTypes, + DependencyIndexes: file_uniongve_uniongve_db_proto_depIdxs, + MessageInfos: file_uniongve_uniongve_db_proto_msgTypes, + }.Build() + File_uniongve_uniongve_db_proto = out.File + file_uniongve_uniongve_db_proto_rawDesc = nil + file_uniongve_uniongve_db_proto_goTypes = nil + file_uniongve_uniongve_db_proto_depIdxs = nil +} diff --git a/pb/uniongve_msg.pb.go b/pb/uniongve_msg.pb.go new file mode 100644 index 000000000..85657be03 --- /dev/null +++ b/pb/uniongve_msg.pb.go @@ -0,0 +1,671 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0 +// protoc v3.20.0 +// source: uniongve/uniongve_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) +) + +//工会boos战斗 信息请求 +type UniongveInfoReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Unionid string `protobuf:"bytes,1,opt,name=unionid,proto3" json:"unionid"` +} + +func (x *UniongveInfoReq) Reset() { + *x = UniongveInfoReq{} + if protoimpl.UnsafeEnabled { + mi := &file_uniongve_uniongve_msg_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UniongveInfoReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UniongveInfoReq) ProtoMessage() {} + +func (x *UniongveInfoReq) ProtoReflect() protoreflect.Message { + mi := &file_uniongve_uniongve_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 UniongveInfoReq.ProtoReflect.Descriptor instead. +func (*UniongveInfoReq) Descriptor() ([]byte, []int) { + return file_uniongve_uniongve_msg_proto_rawDescGZIP(), []int{0} +} + +func (x *UniongveInfoReq) GetUnionid() string { + if x != nil { + return x.Unionid + } + return "" +} + +type UniongveInfoResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Info *DBUnionGve `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` +} + +func (x *UniongveInfoResp) Reset() { + *x = UniongveInfoResp{} + if protoimpl.UnsafeEnabled { + mi := &file_uniongve_uniongve_msg_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UniongveInfoResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UniongveInfoResp) ProtoMessage() {} + +func (x *UniongveInfoResp) ProtoReflect() protoreflect.Message { + mi := &file_uniongve_uniongve_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 UniongveInfoResp.ProtoReflect.Descriptor instead. +func (*UniongveInfoResp) Descriptor() ([]byte, []int) { + return file_uniongve_uniongve_msg_proto_rawDescGZIP(), []int{1} +} + +func (x *UniongveInfoResp) GetInfo() *DBUnionGve { + if x != nil { + return x.Info + } + return nil +} + +//挑战请求 +type UniongveChallengeReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Unionid string `protobuf:"bytes,1,opt,name=unionid,proto3" json:"unionid"` + Boosid int32 `protobuf:"varint,2,opt,name=boosid,proto3" json:"boosid"` + Battle *BattleFormation `protobuf:"bytes,3,opt,name=battle,proto3" json:"battle"` //战斗类型 +} + +func (x *UniongveChallengeReq) Reset() { + *x = UniongveChallengeReq{} + if protoimpl.UnsafeEnabled { + mi := &file_uniongve_uniongve_msg_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UniongveChallengeReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UniongveChallengeReq) ProtoMessage() {} + +func (x *UniongveChallengeReq) ProtoReflect() protoreflect.Message { + mi := &file_uniongve_uniongve_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 UniongveChallengeReq.ProtoReflect.Descriptor instead. +func (*UniongveChallengeReq) Descriptor() ([]byte, []int) { + return file_uniongve_uniongve_msg_proto_rawDescGZIP(), []int{2} +} + +func (x *UniongveChallengeReq) GetUnionid() string { + if x != nil { + return x.Unionid + } + return "" +} + +func (x *UniongveChallengeReq) GetBoosid() int32 { + if x != nil { + return x.Boosid + } + return 0 +} + +func (x *UniongveChallengeReq) GetBattle() *BattleFormation { + if x != nil { + return x.Battle + } + return nil +} + +//挑战回应 +type UniongveChallengeResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Unionid string `protobuf:"bytes,1,opt,name=unionid,proto3" json:"unionid"` + Boosid int32 `protobuf:"varint,2,opt,name=boosid,proto3" json:"boosid"` + Info *BattleInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info"` //战斗信息 +} + +func (x *UniongveChallengeResp) Reset() { + *x = UniongveChallengeResp{} + if protoimpl.UnsafeEnabled { + mi := &file_uniongve_uniongve_msg_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UniongveChallengeResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UniongveChallengeResp) ProtoMessage() {} + +func (x *UniongveChallengeResp) ProtoReflect() protoreflect.Message { + mi := &file_uniongve_uniongve_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 UniongveChallengeResp.ProtoReflect.Descriptor instead. +func (*UniongveChallengeResp) Descriptor() ([]byte, []int) { + return file_uniongve_uniongve_msg_proto_rawDescGZIP(), []int{3} +} + +func (x *UniongveChallengeResp) GetUnionid() string { + if x != nil { + return x.Unionid + } + return "" +} + +func (x *UniongveChallengeResp) GetBoosid() int32 { + if x != nil { + return x.Boosid + } + return 0 +} + +func (x *UniongveChallengeResp) GetInfo() *BattleInfo { + if x != nil { + return x.Info + } + return nil +} + +//战斗 完成请求 +type UniongveChallengeFinishRep struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BattleConfId int32 `protobuf:"varint,1,opt,name=battleConfId,proto3" json:"battleConfId"` //战斗配表ID + Info *BattleInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info"` //战斗信息 +} + +func (x *UniongveChallengeFinishRep) Reset() { + *x = UniongveChallengeFinishRep{} + if protoimpl.UnsafeEnabled { + mi := &file_uniongve_uniongve_msg_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UniongveChallengeFinishRep) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UniongveChallengeFinishRep) ProtoMessage() {} + +func (x *UniongveChallengeFinishRep) ProtoReflect() protoreflect.Message { + mi := &file_uniongve_uniongve_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 UniongveChallengeFinishRep.ProtoReflect.Descriptor instead. +func (*UniongveChallengeFinishRep) Descriptor() ([]byte, []int) { + return file_uniongve_uniongve_msg_proto_rawDescGZIP(), []int{4} +} + +func (x *UniongveChallengeFinishRep) GetBattleConfId() int32 { + if x != nil { + return x.BattleConfId + } + return 0 +} + +func (x *UniongveChallengeFinishRep) GetInfo() *BattleInfo { + if x != nil { + return x.Info + } + return nil +} + +//战斗 完成请求 回应 +type UniongveChallengeFinishResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BattleConfId int32 `protobuf:"varint,1,opt,name=battleConfId,proto3" json:"battleConfId"` //战斗配表ID + Report *BattleReport `protobuf:"bytes,2,opt,name=report,proto3" json:"report"` //战报 +} + +func (x *UniongveChallengeFinishResp) Reset() { + *x = UniongveChallengeFinishResp{} + if protoimpl.UnsafeEnabled { + mi := &file_uniongve_uniongve_msg_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UniongveChallengeFinishResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UniongveChallengeFinishResp) ProtoMessage() {} + +func (x *UniongveChallengeFinishResp) ProtoReflect() protoreflect.Message { + mi := &file_uniongve_uniongve_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 UniongveChallengeFinishResp.ProtoReflect.Descriptor instead. +func (*UniongveChallengeFinishResp) Descriptor() ([]byte, []int) { + return file_uniongve_uniongve_msg_proto_rawDescGZIP(), []int{5} +} + +func (x *UniongveChallengeFinishResp) GetBattleConfId() int32 { + if x != nil { + return x.BattleConfId + } + return 0 +} + +func (x *UniongveChallengeFinishResp) GetReport() *BattleReport { + if x != nil { + return x.Report + } + return nil +} + +//工会战 阶段变化 +type UniongveStageChangePush struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Info *DBUnionGve `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` +} + +func (x *UniongveStageChangePush) Reset() { + *x = UniongveStageChangePush{} + if protoimpl.UnsafeEnabled { + mi := &file_uniongve_uniongve_msg_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UniongveStageChangePush) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UniongveStageChangePush) ProtoMessage() {} + +func (x *UniongveStageChangePush) ProtoReflect() protoreflect.Message { + mi := &file_uniongve_uniongve_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 UniongveStageChangePush.ProtoReflect.Descriptor instead. +func (*UniongveStageChangePush) Descriptor() ([]byte, []int) { + return file_uniongve_uniongve_msg_proto_rawDescGZIP(), []int{6} +} + +func (x *UniongveStageChangePush) GetInfo() *DBUnionGve { + if x != nil { + return x.Info + } + return nil +} + +//工会战 bos变化 +type UniongveBoosChangePush struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Info *DBUnionGve `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` +} + +func (x *UniongveBoosChangePush) Reset() { + *x = UniongveBoosChangePush{} + if protoimpl.UnsafeEnabled { + mi := &file_uniongve_uniongve_msg_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UniongveBoosChangePush) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UniongveBoosChangePush) ProtoMessage() {} + +func (x *UniongveBoosChangePush) ProtoReflect() protoreflect.Message { + mi := &file_uniongve_uniongve_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 UniongveBoosChangePush.ProtoReflect.Descriptor instead. +func (*UniongveBoosChangePush) Descriptor() ([]byte, []int) { + return file_uniongve_uniongve_msg_proto_rawDescGZIP(), []int{7} +} + +func (x *UniongveBoosChangePush) GetInfo() *DBUnionGve { + if x != nil { + return x.Info + } + return nil +} + +var File_uniongve_uniongve_msg_proto protoreflect.FileDescriptor + +var file_uniongve_uniongve_msg_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x67, 0x76, 0x65, 0x2f, 0x75, 0x6e, 0x69, 0x6f, 0x6e, + 0x67, 0x76, 0x65, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x75, + 0x6e, 0x69, 0x6f, 0x6e, 0x67, 0x76, 0x65, 0x2f, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x67, 0x76, 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, 0x2b, 0x0a, 0x0f, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x67, 0x76, 0x65, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x69, 0x64, 0x22, + 0x33, 0x0a, 0x10, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x67, 0x76, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x47, 0x76, 0x65, 0x52, 0x04, + 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x72, 0x0a, 0x14, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x67, 0x76, 0x65, + 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, + 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, + 0x6e, 0x69, 0x6f, 0x6e, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x6f, 0x6f, 0x73, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x6f, 0x6f, 0x73, 0x69, 0x64, 0x12, 0x28, + 0x0a, 0x06, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, + 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x06, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x22, 0x6a, 0x0a, 0x15, 0x55, 0x6e, 0x69, 0x6f, + 0x6e, 0x67, 0x76, 0x65, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x62, + 0x6f, 0x6f, 0x73, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x6f, 0x6f, + 0x73, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0b, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, + 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x61, 0x0a, 0x1a, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x67, 0x76, 0x65, + 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, + 0x65, 0x70, 0x12, 0x22, 0x0a, 0x0c, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, + 0x43, 0x6f, 0x6e, 0x66, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x68, 0x0a, 0x1b, 0x55, 0x6e, 0x69, 0x6f, 0x6e, + 0x67, 0x76, 0x65, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x46, 0x69, 0x6e, 0x69, + 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x22, 0x0a, 0x0c, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, + 0x43, 0x6f, 0x6e, 0x66, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x62, 0x61, + 0x74, 0x74, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 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, 0x3a, 0x0a, 0x17, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x67, 0x76, 0x65, 0x53, 0x74, 0x61, + 0x67, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1f, 0x0a, 0x04, + 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x55, + 0x6e, 0x69, 0x6f, 0x6e, 0x47, 0x76, 0x65, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x39, 0x0a, + 0x16, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x67, 0x76, 0x65, 0x42, 0x6f, 0x6f, 0x73, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1f, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x47, + 0x76, 0x65, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_uniongve_uniongve_msg_proto_rawDescOnce sync.Once + file_uniongve_uniongve_msg_proto_rawDescData = file_uniongve_uniongve_msg_proto_rawDesc +) + +func file_uniongve_uniongve_msg_proto_rawDescGZIP() []byte { + file_uniongve_uniongve_msg_proto_rawDescOnce.Do(func() { + file_uniongve_uniongve_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_uniongve_uniongve_msg_proto_rawDescData) + }) + return file_uniongve_uniongve_msg_proto_rawDescData +} + +var file_uniongve_uniongve_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_uniongve_uniongve_msg_proto_goTypes = []interface{}{ + (*UniongveInfoReq)(nil), // 0: UniongveInfoReq + (*UniongveInfoResp)(nil), // 1: UniongveInfoResp + (*UniongveChallengeReq)(nil), // 2: UniongveChallengeReq + (*UniongveChallengeResp)(nil), // 3: UniongveChallengeResp + (*UniongveChallengeFinishRep)(nil), // 4: UniongveChallengeFinishRep + (*UniongveChallengeFinishResp)(nil), // 5: UniongveChallengeFinishResp + (*UniongveStageChangePush)(nil), // 6: UniongveStageChangePush + (*UniongveBoosChangePush)(nil), // 7: UniongveBoosChangePush + (*DBUnionGve)(nil), // 8: DBUnionGve + (*BattleFormation)(nil), // 9: BattleFormation + (*BattleInfo)(nil), // 10: BattleInfo + (*BattleReport)(nil), // 11: BattleReport +} +var file_uniongve_uniongve_msg_proto_depIdxs = []int32{ + 8, // 0: UniongveInfoResp.info:type_name -> DBUnionGve + 9, // 1: UniongveChallengeReq.battle:type_name -> BattleFormation + 10, // 2: UniongveChallengeResp.info:type_name -> BattleInfo + 10, // 3: UniongveChallengeFinishRep.info:type_name -> BattleInfo + 11, // 4: UniongveChallengeFinishResp.report:type_name -> BattleReport + 8, // 5: UniongveStageChangePush.info:type_name -> DBUnionGve + 8, // 6: UniongveBoosChangePush.info:type_name -> DBUnionGve + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_uniongve_uniongve_msg_proto_init() } +func file_uniongve_uniongve_msg_proto_init() { + if File_uniongve_uniongve_msg_proto != nil { + return + } + file_uniongve_uniongve_db_proto_init() + file_battle_battle_msg_proto_init() + if !protoimpl.UnsafeEnabled { + file_uniongve_uniongve_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UniongveInfoReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uniongve_uniongve_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UniongveInfoResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uniongve_uniongve_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UniongveChallengeReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uniongve_uniongve_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UniongveChallengeResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uniongve_uniongve_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UniongveChallengeFinishRep); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uniongve_uniongve_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UniongveChallengeFinishResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uniongve_uniongve_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UniongveStageChangePush); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uniongve_uniongve_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UniongveBoosChangePush); 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_uniongve_uniongve_msg_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uniongve_uniongve_msg_proto_goTypes, + DependencyIndexes: file_uniongve_uniongve_msg_proto_depIdxs, + MessageInfos: file_uniongve_uniongve_msg_proto_msgTypes, + }.Build() + File_uniongve_uniongve_msg_proto = out.File + file_uniongve_uniongve_msg_proto_rawDesc = nil + file_uniongve_uniongve_msg_proto_goTypes = nil + file_uniongve_uniongve_msg_proto_depIdxs = nil +} diff --git a/services/worker/main.go b/services/worker/main.go index 8cbb25dd8..a8273a96d 100644 --- a/services/worker/main.go +++ b/services/worker/main.go @@ -47,6 +47,7 @@ import ( "go_dreamfactory/modules/sys" "go_dreamfactory/modules/task" "go_dreamfactory/modules/tools" + "go_dreamfactory/modules/uniongve" "go_dreamfactory/modules/user" "go_dreamfactory/modules/viking" "go_dreamfactory/modules/warorder" @@ -132,6 +133,7 @@ func main() { wtask.NewModule(), passon.NewModule(), warorder.NewModule(), + uniongve.NewModule(), ) }