387 lines
13 KiB
Go
387 lines
13 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.20.0
|
|
// source: expedition/expedition_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 DBExpedition struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Guildid string `protobuf:"bytes,1,opt,name=guildid,proto3" json:"guildid" bson:"_id"`
|
|
Lv int32 `protobuf:"varint,2,opt,name=lv,proto3" json:"lv"` //当前第几阶段
|
|
Refresh int64 `protobuf:"varint,3,opt,name=refresh,proto3" json:"refresh"` //最后刷新时间
|
|
Indexboos int32 `protobuf:"varint,4,opt,name=indexboos,proto3" json:"indexboos"` //当前boos
|
|
Boos []*DBExpeditionBoos `protobuf:"bytes,5,rep,name=boos,proto3" json:"boos"` //boos列表
|
|
}
|
|
|
|
func (x *DBExpedition) Reset() {
|
|
*x = DBExpedition{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_expedition_expedition_db_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBExpedition) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBExpedition) ProtoMessage() {}
|
|
|
|
func (x *DBExpedition) ProtoReflect() protoreflect.Message {
|
|
mi := &file_expedition_expedition_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 DBExpedition.ProtoReflect.Descriptor instead.
|
|
func (*DBExpedition) Descriptor() ([]byte, []int) {
|
|
return file_expedition_expedition_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DBExpedition) GetGuildid() string {
|
|
if x != nil {
|
|
return x.Guildid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBExpedition) GetLv() int32 {
|
|
if x != nil {
|
|
return x.Lv
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBExpedition) GetRefresh() int64 {
|
|
if x != nil {
|
|
return x.Refresh
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBExpedition) GetIndexboos() int32 {
|
|
if x != nil {
|
|
return x.Indexboos
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBExpedition) GetBoos() []*DBExpeditionBoos {
|
|
if x != nil {
|
|
return x.Boos
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DBExpeditionBoos 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"`
|
|
Crusaded bool `protobuf:"varint,3,opt,name=crusaded,proto3" json:"crusaded"` //是否讨伐完毕
|
|
Killtime int64 `protobuf:"varint,4,opt,name=killtime,proto3" json:"killtime"` //击杀时间
|
|
Members map[string]*DBExpeditionMember `protobuf:"bytes,5,rep,name=members,proto3" json:"members" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (x *DBExpeditionBoos) Reset() {
|
|
*x = DBExpeditionBoos{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_expedition_expedition_db_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBExpeditionBoos) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBExpeditionBoos) ProtoMessage() {}
|
|
|
|
func (x *DBExpeditionBoos) ProtoReflect() protoreflect.Message {
|
|
mi := &file_expedition_expedition_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 DBExpeditionBoos.ProtoReflect.Descriptor instead.
|
|
func (*DBExpeditionBoos) Descriptor() ([]byte, []int) {
|
|
return file_expedition_expedition_db_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *DBExpeditionBoos) GetBoosid() int32 {
|
|
if x != nil {
|
|
return x.Boosid
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBExpeditionBoos) GetHp() int32 {
|
|
if x != nil {
|
|
return x.Hp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBExpeditionBoos) GetCrusaded() bool {
|
|
if x != nil {
|
|
return x.Crusaded
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DBExpeditionBoos) GetKilltime() int64 {
|
|
if x != nil {
|
|
return x.Killtime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBExpeditionBoos) GetMembers() map[string]*DBExpeditionMember {
|
|
if x != nil {
|
|
return x.Members
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//工会成员信息
|
|
type DBExpeditionMember struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` //用户id
|
|
Heros []string `protobuf:"bytes,2,rep,name=heros,proto3" json:"heros"` //上阵英雄
|
|
Totalpower int32 `protobuf:"varint,3,opt,name=totalpower,proto3" json:"totalpower"` //总战力
|
|
State int32 `protobuf:"varint,4,opt,name=state,proto3" json:"state"` //状态 0未参与 1参与 2已领取
|
|
}
|
|
|
|
func (x *DBExpeditionMember) Reset() {
|
|
*x = DBExpeditionMember{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_expedition_expedition_db_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBExpeditionMember) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBExpeditionMember) ProtoMessage() {}
|
|
|
|
func (x *DBExpeditionMember) ProtoReflect() protoreflect.Message {
|
|
mi := &file_expedition_expedition_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 DBExpeditionMember.ProtoReflect.Descriptor instead.
|
|
func (*DBExpeditionMember) Descriptor() ([]byte, []int) {
|
|
return file_expedition_expedition_db_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *DBExpeditionMember) GetUid() string {
|
|
if x != nil {
|
|
return x.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBExpeditionMember) GetHeros() []string {
|
|
if x != nil {
|
|
return x.Heros
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBExpeditionMember) GetTotalpower() int32 {
|
|
if x != nil {
|
|
return x.Totalpower
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBExpeditionMember) GetState() int32 {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_expedition_expedition_db_proto protoreflect.FileDescriptor
|
|
|
|
var file_expedition_expedition_db_proto_rawDesc = []byte{
|
|
0x0a, 0x1e, 0x65, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x65, 0x78, 0x70,
|
|
0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
0x22, 0x97, 0x01, 0x0a, 0x0c, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f,
|
|
0x6e, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6c,
|
|
0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x18, 0x0a, 0x07, 0x72,
|
|
0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x72, 0x65,
|
|
0x66, 0x72, 0x65, 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x62, 0x6f,
|
|
0x6f, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x62,
|
|
0x6f, 0x6f, 0x73, 0x12, 0x25, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28,
|
|
0x0b, 0x32, 0x11, 0x2e, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x42, 0x6f, 0x6f, 0x73, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x73, 0x22, 0xfd, 0x01, 0x0a, 0x10, 0x44,
|
|
0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x6f, 0x6f, 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, 0x1a, 0x0a, 0x08, 0x63, 0x72, 0x75, 0x73, 0x61,
|
|
0x64, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x72, 0x75, 0x73, 0x61,
|
|
0x64, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x69, 0x6c, 0x6c, 0x74, 0x69, 0x6d, 0x65, 0x18,
|
|
0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6b, 0x69, 0x6c, 0x6c, 0x74, 0x69, 0x6d, 0x65, 0x12,
|
|
0x38, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
|
|
0x32, 0x1e, 0x2e, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x42,
|
|
0x6f, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
|
0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x1a, 0x4f, 0x0a, 0x0c, 0x4d, 0x65, 0x6d,
|
|
0x62, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x29, 0x0a, 0x05, 0x76,
|
|
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x45,
|
|
0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52,
|
|
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x72, 0x0a, 0x12, 0x44, 0x42,
|
|
0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72,
|
|
0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
|
|
0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
|
|
0x09, 0x52, 0x05, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61,
|
|
0x6c, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x6f,
|
|
0x74, 0x61, 0x6c, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74,
|
|
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x42, 0x06,
|
|
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_expedition_expedition_db_proto_rawDescOnce sync.Once
|
|
file_expedition_expedition_db_proto_rawDescData = file_expedition_expedition_db_proto_rawDesc
|
|
)
|
|
|
|
func file_expedition_expedition_db_proto_rawDescGZIP() []byte {
|
|
file_expedition_expedition_db_proto_rawDescOnce.Do(func() {
|
|
file_expedition_expedition_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_expedition_expedition_db_proto_rawDescData)
|
|
})
|
|
return file_expedition_expedition_db_proto_rawDescData
|
|
}
|
|
|
|
var file_expedition_expedition_db_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_expedition_expedition_db_proto_goTypes = []interface{}{
|
|
(*DBExpedition)(nil), // 0: DBExpedition
|
|
(*DBExpeditionBoos)(nil), // 1: DBExpeditionBoos
|
|
(*DBExpeditionMember)(nil), // 2: DBExpeditionMember
|
|
nil, // 3: DBExpeditionBoos.MembersEntry
|
|
}
|
|
var file_expedition_expedition_db_proto_depIdxs = []int32{
|
|
1, // 0: DBExpedition.boos:type_name -> DBExpeditionBoos
|
|
3, // 1: DBExpeditionBoos.members:type_name -> DBExpeditionBoos.MembersEntry
|
|
2, // 2: DBExpeditionBoos.MembersEntry.value:type_name -> DBExpeditionMember
|
|
3, // [3:3] is the sub-list for method output_type
|
|
3, // [3:3] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_expedition_expedition_db_proto_init() }
|
|
func file_expedition_expedition_db_proto_init() {
|
|
if File_expedition_expedition_db_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_expedition_expedition_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBExpedition); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_expedition_expedition_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBExpeditionBoos); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_expedition_expedition_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBExpeditionMember); 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_expedition_expedition_db_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_expedition_expedition_db_proto_goTypes,
|
|
DependencyIndexes: file_expedition_expedition_db_proto_depIdxs,
|
|
MessageInfos: file_expedition_expedition_db_proto_msgTypes,
|
|
}.Build()
|
|
File_expedition_expedition_db_proto = out.File
|
|
file_expedition_expedition_db_proto_rawDesc = nil
|
|
file_expedition_expedition_db_proto_goTypes = nil
|
|
file_expedition_expedition_db_proto_depIdxs = nil
|
|
}
|