306 lines
10 KiB
Go
306 lines
10 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.20.0
|
|
// source: dragon/dragon_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 PlayData struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count"`
|
|
Cdendtime int64 `protobuf:"varint,2,opt,name=cdendtime,proto3" json:"cdendtime"` // cd 结束时间
|
|
}
|
|
|
|
func (x *PlayData) Reset() {
|
|
*x = PlayData{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_dragon_dragon_db_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *PlayData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PlayData) ProtoMessage() {}
|
|
|
|
func (x *PlayData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_dragon_dragon_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 PlayData.ProtoReflect.Descriptor instead.
|
|
func (*PlayData) Descriptor() ([]byte, []int) {
|
|
return file_dragon_dragon_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *PlayData) GetCount() int32 {
|
|
if x != nil {
|
|
return x.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PlayData) GetCdendtime() int64 {
|
|
if x != nil {
|
|
return x.Cdendtime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DBDragon struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID
|
|
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"`
|
|
Dragonid string `protobuf:"bytes,3,opt,name=dragonid,proto3" json:"dragonid"` // 坐骑配置id
|
|
Lv int32 `protobuf:"varint,4,opt,name=lv,proto3" json:"lv"` //等级
|
|
Exp int32 `protobuf:"varint,5,opt,name=exp,proto3" json:"exp"` // 经验
|
|
Property map[string]int32 `protobuf:"bytes,6,rep,name=property,proto3" json:"property" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 坐骑属性
|
|
Play map[int32]*PlayData `protobuf:"bytes,7,rep,name=play,proto3" json:"play" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // 坐骑训练次数
|
|
Rtime int64 `protobuf:"varint,8,opt,name=rtime,proto3" json:"rtime"` // 刷新时间 用来清除 每日训练次数
|
|
// map<string,int32> lvitem = 9; // 等前端同步删除此字段
|
|
Itemlv int32 `protobuf:"varint,10,opt,name=itemlv,proto3" json:"itemlv"` // 道具提升等级
|
|
}
|
|
|
|
func (x *DBDragon) Reset() {
|
|
*x = DBDragon{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_dragon_dragon_db_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBDragon) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBDragon) ProtoMessage() {}
|
|
|
|
func (x *DBDragon) ProtoReflect() protoreflect.Message {
|
|
mi := &file_dragon_dragon_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 DBDragon.ProtoReflect.Descriptor instead.
|
|
func (*DBDragon) Descriptor() ([]byte, []int) {
|
|
return file_dragon_dragon_db_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *DBDragon) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBDragon) GetUid() string {
|
|
if x != nil {
|
|
return x.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBDragon) GetDragonid() string {
|
|
if x != nil {
|
|
return x.Dragonid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBDragon) GetLv() int32 {
|
|
if x != nil {
|
|
return x.Lv
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBDragon) GetExp() int32 {
|
|
if x != nil {
|
|
return x.Exp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBDragon) GetProperty() map[string]int32 {
|
|
if x != nil {
|
|
return x.Property
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBDragon) GetPlay() map[int32]*PlayData {
|
|
if x != nil {
|
|
return x.Play
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBDragon) GetRtime() int64 {
|
|
if x != nil {
|
|
return x.Rtime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBDragon) GetItemlv() int32 {
|
|
if x != nil {
|
|
return x.Itemlv
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_dragon_dragon_db_proto protoreflect.FileDescriptor
|
|
|
|
var file_dragon_dragon_db_proto_rawDesc = []byte{
|
|
0x0a, 0x16, 0x64, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2f, 0x64, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x5f,
|
|
0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3e, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x79,
|
|
0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20,
|
|
0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x64,
|
|
0x65, 0x6e, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63,
|
|
0x64, 0x65, 0x6e, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x22, 0xf7, 0x02, 0x0a, 0x08, 0x44, 0x42, 0x44,
|
|
0x72, 0x61, 0x67, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x72, 0x61, 0x67, 0x6f,
|
|
0x6e, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x72, 0x61, 0x67, 0x6f,
|
|
0x6e, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52,
|
|
0x02, 0x6c, 0x76, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05,
|
|
0x52, 0x03, 0x65, 0x78, 0x70, 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
|
|
0x79, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x44, 0x42, 0x44, 0x72, 0x61, 0x67,
|
|
0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
|
0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x27, 0x0a, 0x04, 0x70, 0x6c,
|
|
0x61, 0x79, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x72, 0x61,
|
|
0x67, 0x6f, 0x6e, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x70,
|
|
0x6c, 0x61, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01,
|
|
0x28, 0x03, 0x52, 0x05, 0x72, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x74, 0x65,
|
|
0x6d, 0x6c, 0x76, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x69, 0x74, 0x65, 0x6d, 0x6c,
|
|
0x76, 0x1a, 0x3b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74,
|
|
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
|
|
0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x42,
|
|
0x0a, 0x09, 0x50, 0x6c, 0x61, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
|
|
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a,
|
|
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x50,
|
|
0x6c, 0x61, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
|
|
0x38, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_dragon_dragon_db_proto_rawDescOnce sync.Once
|
|
file_dragon_dragon_db_proto_rawDescData = file_dragon_dragon_db_proto_rawDesc
|
|
)
|
|
|
|
func file_dragon_dragon_db_proto_rawDescGZIP() []byte {
|
|
file_dragon_dragon_db_proto_rawDescOnce.Do(func() {
|
|
file_dragon_dragon_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_dragon_dragon_db_proto_rawDescData)
|
|
})
|
|
return file_dragon_dragon_db_proto_rawDescData
|
|
}
|
|
|
|
var file_dragon_dragon_db_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_dragon_dragon_db_proto_goTypes = []interface{}{
|
|
(*PlayData)(nil), // 0: PlayData
|
|
(*DBDragon)(nil), // 1: DBDragon
|
|
nil, // 2: DBDragon.PropertyEntry
|
|
nil, // 3: DBDragon.PlayEntry
|
|
}
|
|
var file_dragon_dragon_db_proto_depIdxs = []int32{
|
|
2, // 0: DBDragon.property:type_name -> DBDragon.PropertyEntry
|
|
3, // 1: DBDragon.play:type_name -> DBDragon.PlayEntry
|
|
0, // 2: DBDragon.PlayEntry.value:type_name -> PlayData
|
|
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_dragon_dragon_db_proto_init() }
|
|
func file_dragon_dragon_db_proto_init() {
|
|
if File_dragon_dragon_db_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_dragon_dragon_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*PlayData); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_dragon_dragon_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBDragon); 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_dragon_dragon_db_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_dragon_dragon_db_proto_goTypes,
|
|
DependencyIndexes: file_dragon_dragon_db_proto_depIdxs,
|
|
MessageInfos: file_dragon_dragon_db_proto_msgTypes,
|
|
}.Build()
|
|
File_dragon_dragon_db_proto = out.File
|
|
file_dragon_dragon_db_proto_rawDesc = nil
|
|
file_dragon_dragon_db_proto_goTypes = nil
|
|
file_dragon_dragon_db_proto_depIdxs = nil
|
|
}
|