diff --git a/modules/smithy/api_getlist.go b/modules/smithy/api_getlist.go index f95832ef1..3b66b7061 100644 --- a/modules/smithy/api_getlist.go +++ b/modules/smithy/api_getlist.go @@ -15,7 +15,7 @@ func (this *apiComp) GetListCheck(session comm.IUserSession, req *pb.SmithyGetLi ///获取美食城基本信息 func (this *apiComp) GetList(session comm.IUserSession, req *pb.SmithyGetListReq) (code pb.ErrorCode, data proto.Message) { - + this.AtlasList(session, &pb.SmithyAtlasListReq{}) code = this.GetListCheck(session, req) if code != pb.ErrorCode_Success { return // 参数校验失败直接返回 diff --git a/modules/smithy/model_atlas.go b/modules/smithy/model_atlas.go index 5c96ed25b..4e5102ba6 100644 --- a/modules/smithy/model_atlas.go +++ b/modules/smithy/model_atlas.go @@ -29,7 +29,14 @@ func (this *modelAtlas) Init(service core.IService, module core.IModule, comp co } func (this *modelAtlas) getSmithyAtlasList(uid string) (result *pb.DBAtlas, err error) { - result = &pb.DBAtlas{} + result = &pb.DBAtlas{ + Id: "", + Uid: uid, + Atlas: map[string]*pb.ForgeList{}, + Collect: map[string]*pb.CollectData{}, + Score: 0, + Award: 0, + } if err = this.Get(uid, result); err != nil { if mongo.ErrNoDocuments == err { result.Id = primitive.NewObjectID().Hex() diff --git a/modules/smithy/model_stove.go b/modules/smithy/model_stove.go index e278827a5..22b501184 100644 --- a/modules/smithy/model_stove.go +++ b/modules/smithy/model_stove.go @@ -147,14 +147,8 @@ func (this *modelStove) calculationRecoveryT(uid string, stove *pb.DBStove) { // 通过技能获取额外的提升 func (this *modelStove) StoveToolsQualityProbability(stove *pb.DBStove) int32 { - if v, ok := stove.Skill[comm.SmithyToolsSkill1]; ok { - if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, v); conf != nil { - return conf.Value - } else { - if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, 0); conf != nil { - return conf.Value - } - } + if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, stove.Skill[comm.SmithyToolsSkill1]); conf != nil { + return conf.Value } return 0 } @@ -162,14 +156,8 @@ func (this *modelStove) StoveToolsQualityProbability(stove *pb.DBStove) int32 { // 所有装备售价提升{0}% func (this *modelStove) StoveToolsSellUp(uid string) int32 { if stove, err := this.module.modelStove.getSmithyStoveList(uid); err == nil { - if v, ok := stove.Skill[comm.SmithyToolsSkill2]; ok { - if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, v); conf != nil { - return conf.Value - } else { - if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, 0); conf != nil { - return conf.Value - } - } + if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, stove.Skill[comm.SmithyToolsSkill2]); conf != nil { + return conf.Value } } return 0 @@ -177,14 +165,8 @@ func (this *modelStove) StoveToolsSellUp(uid string) int32 { // 所有图纸炉温消耗减少 func (this *modelStove) StoveToolsTemperature(stove *pb.DBStove) int32 { - if v, ok := stove.Skill[comm.SmithyToolsSkill3]; ok { - if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, v); conf != nil { - return conf.Value - } else { - if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, 0); conf != nil { - return conf.Value - } - } + if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, stove.Skill[comm.SmithyToolsSkill3]); conf != nil { + return conf.Value } return 0 } @@ -192,14 +174,8 @@ func (this *modelStove) StoveToolsTemperature(stove *pb.DBStove) int32 { //每日顾客数量提升至{0}人 func (this *modelStove) StoveSkillAddCustomer(uid string) int32 { if stove, err := this.module.modelStove.getSmithyStoveList(uid); err == nil { - if v, ok := stove.Skill[comm.SmithyToolsSkill4]; ok { - if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, v); conf != nil { - return conf.Value - } - } else { - if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, 0); conf != nil { - return conf.Value - } + if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, stove.Skill[comm.SmithyToolsSkill4]); conf != nil { + return conf.Value } } return 0 @@ -208,10 +184,8 @@ func (this *modelStove) StoveSkillAddCustomer(uid string) int32 { //顾客购买装备数量上限提高至{0}件 func (this *modelStove) StoveSkillBuyEquip(uid string) int32 { if stove, err := this.module.modelStove.getSmithyStoveList(uid); err == nil { - if v, ok := stove.Skill[comm.SmithyToolsSkill5]; ok { - if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, v); conf != nil { - return conf.Value - } + if conf := this.module.configure.GetSmithySkill(comm.SmithyToolsSkill1, stove.Skill[comm.SmithyToolsSkill5]); conf != nil { + return conf.Value } } return 0 diff --git a/pb/practice_db.pb.go b/pb/practice_db.pb.go deleted file mode 100644 index 28c9f6c95..000000000 --- a/pb/practice_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: practice/practice_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 PracticePillarState int32 - -const ( - PracticePillarState_NoUse PracticePillarState = 0 //未使用 - PracticePillarState_Useing PracticePillarState = 1 //使用中 - PracticePillarState_Receive PracticePillarState = 2 //待领取 -) - -// Enum value maps for PracticePillarState. -var ( - PracticePillarState_name = map[int32]string{ - 0: "NoUse", - 1: "Useing", - 2: "Receive", - } - PracticePillarState_value = map[string]int32{ - "NoUse": 0, - "Useing": 1, - "Receive": 2, - } -) - -func (x PracticePillarState) Enum() *PracticePillarState { - p := new(PracticePillarState) - *p = x - return p -} - -func (x PracticePillarState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PracticePillarState) Descriptor() protoreflect.EnumDescriptor { - return file_practice_practice_db_proto_enumTypes[0].Descriptor() -} - -func (PracticePillarState) Type() protoreflect.EnumType { - return &file_practice_practice_db_proto_enumTypes[0] -} - -func (x PracticePillarState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PracticePillarState.Descriptor instead. -func (PracticePillarState) EnumDescriptor() ([]byte, []int) { - return file_practice_practice_db_proto_rawDescGZIP(), []int{0} -} - -///熊猫柱子 -type DBPracticePillar 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 PracticePillarState `protobuf:"varint,3,opt,name=state,proto3,enum=PracticePillarState" 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 *DBPracticePillar) Reset() { - *x = DBPracticePillar{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_db_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DBPracticePillar) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DBPracticePillar) ProtoMessage() {} - -func (x *DBPracticePillar) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_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 DBPracticePillar.ProtoReflect.Descriptor instead. -func (*DBPracticePillar) Descriptor() ([]byte, []int) { - return file_practice_practice_db_proto_rawDescGZIP(), []int{0} -} - -func (x *DBPracticePillar) GetIndex() int32 { - if x != nil { - return x.Index - } - return 0 -} - -func (x *DBPracticePillar) GetIsunlock() bool { - if x != nil { - return x.Isunlock - } - return false -} - -func (x *DBPracticePillar) GetState() PracticePillarState { - if x != nil { - return x.State - } - return PracticePillarState_NoUse -} - -func (x *DBPracticePillar) GetHero() string { - if x != nil { - return x.Hero - } - return "" -} - -func (x *DBPracticePillar) GetStart() int64 { - if x != nil { - return x.Start - } - return 0 -} - -func (x *DBPracticePillar) GetEnd() int64 { - if x != nil { - return x.End - } - return 0 -} - -func (x *DBPracticePillar) GetLastbill() int64 { - if x != nil { - return x.Lastbill - } - return 0 -} - -func (x *DBPracticePillar) GetReward() int32 { - if x != nil { - return x.Reward - } - return 0 -} - -//熊猫武馆教习 -type DBPracticeTeacher 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 *DBPracticeTeacher) Reset() { - *x = DBPracticeTeacher{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_db_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DBPracticeTeacher) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DBPracticeTeacher) ProtoMessage() {} - -func (x *DBPracticeTeacher) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_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 DBPracticeTeacher.ProtoReflect.Descriptor instead. -func (*DBPracticeTeacher) Descriptor() ([]byte, []int) { - return file_practice_practice_db_proto_rawDescGZIP(), []int{1} -} - -func (x *DBPracticeTeacher) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *DBPracticeTeacher) GetCid() string { - if x != nil { - return x.Cid - } - return "" -} - -func (x *DBPracticeTeacher) GetStudent() string { - if x != nil { - return x.Student - } - return "" -} - -//练功房 -type DBPracticeRoom 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 *DBPracticePillar `protobuf:"bytes,4,opt,name=pillar1,proto3" json:"pillar1"` //柱子1 - Pillar2 *DBPracticePillar `protobuf:"bytes,5,opt,name=pillar2,proto3" json:"pillar2"` //柱子2 - Pillar3 *DBPracticePillar `protobuf:"bytes,6,opt,name=pillar3,proto3" json:"pillar3"` //柱子3 - Pillarf *DBPracticePillar `protobuf:"bytes,7,opt,name=pillarf,proto3" json:"pillarf"` //好友柱子 -} - -func (x *DBPracticeRoom) Reset() { - *x = DBPracticeRoom{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_db_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DBPracticeRoom) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DBPracticeRoom) ProtoMessage() {} - -func (x *DBPracticeRoom) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_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 DBPracticeRoom.ProtoReflect.Descriptor instead. -func (*DBPracticeRoom) Descriptor() ([]byte, []int) { - return file_practice_practice_db_proto_rawDescGZIP(), []int{2} -} - -func (x *DBPracticeRoom) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *DBPracticeRoom) GetUid() string { - if x != nil { - return x.Uid - } - return "" -} - -func (x *DBPracticeRoom) GetPillar1() *DBPracticePillar { - if x != nil { - return x.Pillar1 - } - return nil -} - -func (x *DBPracticeRoom) GetPillar2() *DBPracticePillar { - if x != nil { - return x.Pillar2 - } - return nil -} - -func (x *DBPracticeRoom) GetPillar3() *DBPracticePillar { - if x != nil { - return x.Pillar3 - } - return nil -} - -func (x *DBPracticeRoom) GetPillarf() *DBPracticePillar { - if x != nil { - return x.Pillarf - } - return nil -} - -var File_practice_practice_db_proto protoreflect.FileDescriptor - -var file_practice_practice_db_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x70, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x61, 0x63, 0x74, - 0x69, 0x63, 0x65, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe0, 0x01, 0x0a, - 0x10, 0x44, 0x42, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 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, 0x2a, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 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, - 0x4f, 0x0a, 0x11, 0x44, 0x42, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 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, 0xe6, 0x01, 0x0a, 0x0e, 0x44, 0x42, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x52, - 0x6f, 0x6f, 0x6d, 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, 0x2b, 0x0a, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x31, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x44, 0x42, 0x50, 0x72, 0x61, 0x63, 0x74, - 0x69, 0x63, 0x65, 0x50, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, - 0x72, 0x31, 0x12, 0x2b, 0x0a, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x32, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x44, 0x42, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, - 0x50, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x32, 0x12, - 0x2b, 0x0a, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x33, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x11, 0x2e, 0x44, 0x42, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x50, 0x69, 0x6c, - 0x6c, 0x61, 0x72, 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x33, 0x12, 0x2b, 0x0a, 0x07, - 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x66, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, - 0x44, 0x42, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x50, 0x69, 0x6c, 0x6c, 0x61, 0x72, - 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x66, 0x2a, 0x39, 0x0a, 0x13, 0x50, 0x72, 0x61, - 0x63, 0x74, 0x69, 0x63, 0x65, 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_practice_practice_db_proto_rawDescOnce sync.Once - file_practice_practice_db_proto_rawDescData = file_practice_practice_db_proto_rawDesc -) - -func file_practice_practice_db_proto_rawDescGZIP() []byte { - file_practice_practice_db_proto_rawDescOnce.Do(func() { - file_practice_practice_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_practice_practice_db_proto_rawDescData) - }) - return file_practice_practice_db_proto_rawDescData -} - -var file_practice_practice_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_practice_practice_db_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_practice_practice_db_proto_goTypes = []interface{}{ - (PracticePillarState)(0), // 0: PracticePillarState - (*DBPracticePillar)(nil), // 1: DBPracticePillar - (*DBPracticeTeacher)(nil), // 2: DBPracticeTeacher - (*DBPracticeRoom)(nil), // 3: DBPracticeRoom -} -var file_practice_practice_db_proto_depIdxs = []int32{ - 0, // 0: DBPracticePillar.state:type_name -> PracticePillarState - 1, // 1: DBPracticeRoom.pillar1:type_name -> DBPracticePillar - 1, // 2: DBPracticeRoom.pillar2:type_name -> DBPracticePillar - 1, // 3: DBPracticeRoom.pillar3:type_name -> DBPracticePillar - 1, // 4: DBPracticeRoom.pillarf:type_name -> DBPracticePillar - 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_practice_practice_db_proto_init() } -func file_practice_practice_db_proto_init() { - if File_practice_practice_db_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_practice_practice_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DBPracticePillar); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_practice_practice_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DBPracticeTeacher); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_practice_practice_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DBPracticeRoom); 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_practice_practice_db_proto_rawDesc, - NumEnums: 1, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_practice_practice_db_proto_goTypes, - DependencyIndexes: file_practice_practice_db_proto_depIdxs, - EnumInfos: file_practice_practice_db_proto_enumTypes, - MessageInfos: file_practice_practice_db_proto_msgTypes, - }.Build() - File_practice_practice_db_proto = out.File - file_practice_practice_db_proto_rawDesc = nil - file_practice_practice_db_proto_goTypes = nil - file_practice_practice_db_proto_depIdxs = nil -} diff --git a/pb/practice_msg.pb.go b/pb/practice_msg.pb.go deleted file mode 100644 index 8d9f27d66..000000000 --- a/pb/practice_msg.pb.go +++ /dev/null @@ -1,731 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.0 -// protoc v3.20.0 -// source: practice/practice_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 PracticeInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PracticeInfoReq) Reset() { - *x = PracticeInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_msg_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PracticeInfoReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PracticeInfoReq) ProtoMessage() {} - -func (x *PracticeInfoReq) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_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 PracticeInfoReq.ProtoReflect.Descriptor instead. -func (*PracticeInfoReq) Descriptor() ([]byte, []int) { - return file_practice_practice_msg_proto_rawDescGZIP(), []int{0} -} - -///信息请求 回应 -type PracticeInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Info *DBPracticeRoom `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` -} - -func (x *PracticeInfoResp) Reset() { - *x = PracticeInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_msg_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PracticeInfoResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PracticeInfoResp) ProtoMessage() {} - -func (x *PracticeInfoResp) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_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 PracticeInfoResp.ProtoReflect.Descriptor instead. -func (*PracticeInfoResp) Descriptor() ([]byte, []int) { - return file_practice_practice_msg_proto_rawDescGZIP(), []int{1} -} - -func (x *PracticeInfoResp) GetInfo() *DBPracticeRoom { - if x != nil { - return x.Info - } - return nil -} - -///解锁请求 -type PracticeUnLockReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PracticeUnLockReq) Reset() { - *x = PracticeUnLockReq{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_msg_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PracticeUnLockReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PracticeUnLockReq) ProtoMessage() {} - -func (x *PracticeUnLockReq) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_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 PracticeUnLockReq.ProtoReflect.Descriptor instead. -func (*PracticeUnLockReq) Descriptor() ([]byte, []int) { - return file_practice_practice_msg_proto_rawDescGZIP(), []int{2} -} - -type PracticeUnLockResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PracticeUnLockResp) Reset() { - *x = PracticeUnLockResp{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_msg_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PracticeUnLockResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PracticeUnLockResp) ProtoMessage() {} - -func (x *PracticeUnLockResp) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_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 PracticeUnLockResp.ProtoReflect.Descriptor instead. -func (*PracticeUnLockResp) Descriptor() ([]byte, []int) { - return file_practice_practice_msg_proto_rawDescGZIP(), []int{3} -} - -///练功请求 -type PracticePracticeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PracticePracticeReq) Reset() { - *x = PracticePracticeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_msg_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PracticePracticeReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PracticePracticeReq) ProtoMessage() {} - -func (x *PracticePracticeReq) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_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 PracticePracticeReq.ProtoReflect.Descriptor instead. -func (*PracticePracticeReq) Descriptor() ([]byte, []int) { - return file_practice_practice_msg_proto_rawDescGZIP(), []int{4} -} - -type PracticePracticeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PracticePracticeResp) Reset() { - *x = PracticePracticeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_msg_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PracticePracticeResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PracticePracticeResp) ProtoMessage() {} - -func (x *PracticePracticeResp) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_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 PracticePracticeResp.ProtoReflect.Descriptor instead. -func (*PracticePracticeResp) Descriptor() ([]byte, []int) { - return file_practice_practice_msg_proto_rawDescGZIP(), []int{5} -} - -///蹭馆请求 -type PracticeLootReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PracticeLootReq) Reset() { - *x = PracticeLootReq{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_msg_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PracticeLootReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PracticeLootReq) ProtoMessage() {} - -func (x *PracticeLootReq) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_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 PracticeLootReq.ProtoReflect.Descriptor instead. -func (*PracticeLootReq) Descriptor() ([]byte, []int) { - return file_practice_practice_msg_proto_rawDescGZIP(), []int{6} -} - -type PracticeLootResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PracticeLootResp) Reset() { - *x = PracticeLootResp{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_msg_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PracticeLootResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PracticeLootResp) ProtoMessage() {} - -func (x *PracticeLootResp) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_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 PracticeLootResp.ProtoReflect.Descriptor instead. -func (*PracticeLootResp) Descriptor() ([]byte, []int) { - return file_practice_practice_msg_proto_rawDescGZIP(), []int{7} -} - -///驱逐 -type PracticeExpulsionReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PracticeExpulsionReq) Reset() { - *x = PracticeExpulsionReq{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_msg_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PracticeExpulsionReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PracticeExpulsionReq) ProtoMessage() {} - -func (x *PracticeExpulsionReq) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_msg_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PracticeExpulsionReq.ProtoReflect.Descriptor instead. -func (*PracticeExpulsionReq) Descriptor() ([]byte, []int) { - return file_practice_practice_msg_proto_rawDescGZIP(), []int{8} -} - -type PracticeExpulsionResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PracticeExpulsionResp) Reset() { - *x = PracticeExpulsionResp{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_msg_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PracticeExpulsionResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PracticeExpulsionResp) ProtoMessage() {} - -func (x *PracticeExpulsionResp) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_msg_proto_msgTypes[9] - 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 PracticeExpulsionResp.ProtoReflect.Descriptor instead. -func (*PracticeExpulsionResp) Descriptor() ([]byte, []int) { - return file_practice_practice_msg_proto_rawDescGZIP(), []int{9} -} - -///领取收益 -type PracticeReceiveReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PracticeReceiveReq) Reset() { - *x = PracticeReceiveReq{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_msg_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PracticeReceiveReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PracticeReceiveReq) ProtoMessage() {} - -func (x *PracticeReceiveReq) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_msg_proto_msgTypes[10] - 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 PracticeReceiveReq.ProtoReflect.Descriptor instead. -func (*PracticeReceiveReq) Descriptor() ([]byte, []int) { - return file_practice_practice_msg_proto_rawDescGZIP(), []int{10} -} - -type PracticeReceiveResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PracticeReceiveResp) Reset() { - *x = PracticeReceiveResp{} - if protoimpl.UnsafeEnabled { - mi := &file_practice_practice_msg_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PracticeReceiveResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PracticeReceiveResp) ProtoMessage() {} - -func (x *PracticeReceiveResp) ProtoReflect() protoreflect.Message { - mi := &file_practice_practice_msg_proto_msgTypes[11] - 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 PracticeReceiveResp.ProtoReflect.Descriptor instead. -func (*PracticeReceiveResp) Descriptor() ([]byte, []int) { - return file_practice_practice_msg_proto_rawDescGZIP(), []int{11} -} - -var File_practice_practice_msg_proto protoreflect.FileDescriptor - -var file_practice_practice_msg_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x70, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x61, 0x63, 0x74, - 0x69, 0x63, 0x65, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x70, - 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, - 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x11, 0x0a, 0x0f, 0x50, 0x72, 0x61, - 0x63, 0x74, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x22, 0x37, 0x0a, 0x10, - 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 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, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x52, 0x6f, 0x6f, 0x6d, 0x52, - 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x13, 0x0a, 0x11, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, - 0x65, 0x55, 0x6e, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x22, 0x14, 0x0a, 0x12, 0x50, 0x72, - 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x55, 0x6e, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, - 0x22, 0x15, 0x0a, 0x13, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x50, 0x72, 0x61, 0x63, - 0x74, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x22, 0x16, 0x0a, 0x14, 0x50, 0x72, 0x61, 0x63, 0x74, - 0x69, 0x63, 0x65, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, - 0x11, 0x0a, 0x0f, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x4c, 0x6f, 0x6f, 0x74, 0x52, - 0x65, 0x71, 0x22, 0x12, 0x0a, 0x10, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x4c, 0x6f, - 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x16, 0x0a, 0x14, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, - 0x63, 0x65, 0x45, 0x78, 0x70, 0x75, 0x6c, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x22, 0x17, - 0x0a, 0x15, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x45, 0x78, 0x70, 0x75, 0x6c, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x14, 0x0a, 0x12, 0x50, 0x72, 0x61, 0x63, 0x74, - 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x22, 0x15, 0x0a, - 0x13, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_practice_practice_msg_proto_rawDescOnce sync.Once - file_practice_practice_msg_proto_rawDescData = file_practice_practice_msg_proto_rawDesc -) - -func file_practice_practice_msg_proto_rawDescGZIP() []byte { - file_practice_practice_msg_proto_rawDescOnce.Do(func() { - file_practice_practice_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_practice_practice_msg_proto_rawDescData) - }) - return file_practice_practice_msg_proto_rawDescData -} - -var file_practice_practice_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_practice_practice_msg_proto_goTypes = []interface{}{ - (*PracticeInfoReq)(nil), // 0: PracticeInfoReq - (*PracticeInfoResp)(nil), // 1: PracticeInfoResp - (*PracticeUnLockReq)(nil), // 2: PracticeUnLockReq - (*PracticeUnLockResp)(nil), // 3: PracticeUnLockResp - (*PracticePracticeReq)(nil), // 4: PracticePracticeReq - (*PracticePracticeResp)(nil), // 5: PracticePracticeResp - (*PracticeLootReq)(nil), // 6: PracticeLootReq - (*PracticeLootResp)(nil), // 7: PracticeLootResp - (*PracticeExpulsionReq)(nil), // 8: PracticeExpulsionReq - (*PracticeExpulsionResp)(nil), // 9: PracticeExpulsionResp - (*PracticeReceiveReq)(nil), // 10: PracticeReceiveReq - (*PracticeReceiveResp)(nil), // 11: PracticeReceiveResp - (*DBPracticeRoom)(nil), // 12: DBPracticeRoom -} -var file_practice_practice_msg_proto_depIdxs = []int32{ - 12, // 0: PracticeInfoResp.info:type_name -> DBPracticeRoom - 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_practice_practice_msg_proto_init() } -func file_practice_practice_msg_proto_init() { - if File_practice_practice_msg_proto != nil { - return - } - file_practice_practice_db_proto_init() - if !protoimpl.UnsafeEnabled { - file_practice_practice_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PracticeInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_practice_practice_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PracticeInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_practice_practice_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PracticeUnLockReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_practice_practice_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PracticeUnLockResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_practice_practice_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PracticePracticeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_practice_practice_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PracticePracticeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_practice_practice_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PracticeLootReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_practice_practice_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PracticeLootResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_practice_practice_msg_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PracticeExpulsionReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_practice_practice_msg_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PracticeExpulsionResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_practice_practice_msg_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PracticeReceiveReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_practice_practice_msg_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PracticeReceiveResp); 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_practice_practice_msg_proto_rawDesc, - NumEnums: 0, - NumMessages: 12, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_practice_practice_msg_proto_goTypes, - DependencyIndexes: file_practice_practice_msg_proto_depIdxs, - MessageInfos: file_practice_practice_msg_proto_msgTypes, - }.Build() - File_practice_practice_msg_proto = out.File - file_practice_practice_msg_proto_rawDesc = nil - file_practice_practice_msg_proto_goTypes = nil - file_practice_practice_msg_proto_depIdxs = nil -}