go_dreamfactory/pb/warorder_db.pb.go
2023-08-09 20:29:56 +08:00

475 lines
16 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.0
// source: warorder/warorder_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 DBWarorders 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" bson:"uid"` //玩家ID
Warorder map[int32]*Warorder `protobuf:"bytes,3,rep,name=warorder,proto3" json:"warorder" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //普通战令
Dreamwarorder map[int32]*DreamWarorder `protobuf:"bytes,4,rep,name=dreamwarorder,proto3" json:"dreamwarorder" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //月梦战令
}
func (x *DBWarorders) Reset() {
*x = DBWarorders{}
if protoimpl.UnsafeEnabled {
mi := &file_warorder_warorder_db_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DBWarorders) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DBWarorders) ProtoMessage() {}
func (x *DBWarorders) ProtoReflect() protoreflect.Message {
mi := &file_warorder_warorder_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 DBWarorders.ProtoReflect.Descriptor instead.
func (*DBWarorders) Descriptor() ([]byte, []int) {
return file_warorder_warorder_db_proto_rawDescGZIP(), []int{0}
}
func (x *DBWarorders) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DBWarorders) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *DBWarorders) GetWarorder() map[int32]*Warorder {
if x != nil {
return x.Warorder
}
return nil
}
func (x *DBWarorders) GetDreamwarorder() map[int32]*DreamWarorder {
if x != nil {
return x.Dreamwarorder
}
return nil
}
//战令代码
type Warorder struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Opentime int64 `protobuf:"varint,1,opt,name=opentime,proto3" json:"opentime"`
Endtime int64 `protobuf:"varint,2,opt,name=endtime,proto3" json:"endtime"`
Freeprogress int32 `protobuf:"varint,3,opt,name=freeprogress,proto3" json:"freeprogress"` //已领取天数
Payprogress int32 `protobuf:"varint,4,opt,name=payprogress,proto3" json:"payprogress"`
Vip bool `protobuf:"varint,5,opt,name=vip,proto3" json:"vip"`
}
func (x *Warorder) Reset() {
*x = Warorder{}
if protoimpl.UnsafeEnabled {
mi := &file_warorder_warorder_db_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Warorder) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Warorder) ProtoMessage() {}
func (x *Warorder) ProtoReflect() protoreflect.Message {
mi := &file_warorder_warorder_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 Warorder.ProtoReflect.Descriptor instead.
func (*Warorder) Descriptor() ([]byte, []int) {
return file_warorder_warorder_db_proto_rawDescGZIP(), []int{1}
}
func (x *Warorder) GetOpentime() int64 {
if x != nil {
return x.Opentime
}
return 0
}
func (x *Warorder) GetEndtime() int64 {
if x != nil {
return x.Endtime
}
return 0
}
func (x *Warorder) GetFreeprogress() int32 {
if x != nil {
return x.Freeprogress
}
return 0
}
func (x *Warorder) GetPayprogress() int32 {
if x != nil {
return x.Payprogress
}
return 0
}
func (x *Warorder) GetVip() bool {
if x != nil {
return x.Vip
}
return false
}
//如梦战令
type DreamWarorder struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Opentime int64 `protobuf:"varint,1,opt,name=opentime,proto3" json:"opentime"`
Endtime int64 `protobuf:"varint,2,opt,name=endtime,proto3" json:"endtime"`
Vip int32 `protobuf:"varint,3,opt,name=vip,proto3" json:"vip"`
Exp int32 `protobuf:"varint,4,opt,name=exp,proto3" json:"exp"`
Lv int32 `protobuf:"varint,5,opt,name=lv,proto3" json:"lv"`
Daytime int64 `protobuf:"varint,6,opt,name=daytime,proto3" json:"daytime"`
Daytasks []int32 `protobuf:"varint,7,rep,packed,name=daytasks,proto3" json:"daytasks"`
Weektime int64 `protobuf:"varint,8,opt,name=weektime,proto3" json:"weektime"`
Weektasks []int32 `protobuf:"varint,9,rep,packed,name=weektasks,proto3" json:"weektasks"`
Completetasks []int32 `protobuf:"varint,10,rep,packed,name=completetasks,proto3" json:"completetasks"`
Freeprogress int32 `protobuf:"varint,11,opt,name=freeprogress,proto3" json:"freeprogress"` //已领取天数
Payprogress int32 `protobuf:"varint,12,opt,name=payprogress,proto3" json:"payprogress"`
Weekexp int32 `protobuf:"varint,13,opt,name=weekexp,proto3" json:"weekexp"` //本周以获取经验
}
func (x *DreamWarorder) Reset() {
*x = DreamWarorder{}
if protoimpl.UnsafeEnabled {
mi := &file_warorder_warorder_db_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DreamWarorder) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DreamWarorder) ProtoMessage() {}
func (x *DreamWarorder) ProtoReflect() protoreflect.Message {
mi := &file_warorder_warorder_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 DreamWarorder.ProtoReflect.Descriptor instead.
func (*DreamWarorder) Descriptor() ([]byte, []int) {
return file_warorder_warorder_db_proto_rawDescGZIP(), []int{2}
}
func (x *DreamWarorder) GetOpentime() int64 {
if x != nil {
return x.Opentime
}
return 0
}
func (x *DreamWarorder) GetEndtime() int64 {
if x != nil {
return x.Endtime
}
return 0
}
func (x *DreamWarorder) GetVip() int32 {
if x != nil {
return x.Vip
}
return 0
}
func (x *DreamWarorder) GetExp() int32 {
if x != nil {
return x.Exp
}
return 0
}
func (x *DreamWarorder) GetLv() int32 {
if x != nil {
return x.Lv
}
return 0
}
func (x *DreamWarorder) GetDaytime() int64 {
if x != nil {
return x.Daytime
}
return 0
}
func (x *DreamWarorder) GetDaytasks() []int32 {
if x != nil {
return x.Daytasks
}
return nil
}
func (x *DreamWarorder) GetWeektime() int64 {
if x != nil {
return x.Weektime
}
return 0
}
func (x *DreamWarorder) GetWeektasks() []int32 {
if x != nil {
return x.Weektasks
}
return nil
}
func (x *DreamWarorder) GetCompletetasks() []int32 {
if x != nil {
return x.Completetasks
}
return nil
}
func (x *DreamWarorder) GetFreeprogress() int32 {
if x != nil {
return x.Freeprogress
}
return 0
}
func (x *DreamWarorder) GetPayprogress() int32 {
if x != nil {
return x.Payprogress
}
return 0
}
func (x *DreamWarorder) GetWeekexp() int32 {
if x != nil {
return x.Weekexp
}
return 0
}
var File_warorder_warorder_db_proto protoreflect.FileDescriptor
var file_warorder_warorder_db_proto_rawDesc = []byte{
0x0a, 0x1a, 0x77, 0x61, 0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2f, 0x77, 0x61, 0x72, 0x6f, 0x72,
0x64, 0x65, 0x72, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x02, 0x0a,
0x0b, 0x44, 0x42, 0x57, 0x61, 0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 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, 0x36,
0x0a, 0x08, 0x77, 0x61, 0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x1a, 0x2e, 0x44, 0x42, 0x57, 0x61, 0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x57,
0x61, 0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x77, 0x61,
0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x0d, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x77,
0x61, 0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
0x44, 0x42, 0x57, 0x61, 0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x44, 0x72, 0x65, 0x61,
0x6d, 0x77, 0x61, 0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d,
0x64, 0x72, 0x65, 0x61, 0x6d, 0x77, 0x61, 0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x1a, 0x46, 0x0a,
0x0d, 0x57, 0x61, 0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 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, 0x57, 0x61, 0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x50, 0x0a, 0x12, 0x44, 0x72, 0x65, 0x61, 0x6d, 0x77, 0x61,
0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x24, 0x0a,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44,
0x72, 0x65, 0x61, 0x6d, 0x57, 0x61, 0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x98, 0x01, 0x0a, 0x08, 0x57, 0x61, 0x72, 0x6f,
0x72, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x69, 0x6d, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x69, 0x6d, 0x65,
0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x66, 0x72,
0x65, 0x65, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
0x52, 0x0c, 0x66, 0x72, 0x65, 0x65, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20,
0x0a, 0x0b, 0x70, 0x61, 0x79, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20,
0x01, 0x28, 0x05, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73,
0x12, 0x10, 0x0a, 0x03, 0x76, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x76,
0x69, 0x70, 0x22, 0xef, 0x02, 0x0a, 0x0d, 0x44, 0x72, 0x65, 0x61, 0x6d, 0x57, 0x61, 0x72, 0x6f,
0x72, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x69, 0x6d, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x69, 0x6d, 0x65,
0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x69,
0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x76, 0x69, 0x70, 0x12, 0x10, 0x0a, 0x03,
0x65, 0x78, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x78, 0x70, 0x12, 0x0e,
0x0a, 0x02, 0x6c, 0x76, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x18,
0x0a, 0x07, 0x64, 0x61, 0x79, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52,
0x07, 0x64, 0x61, 0x79, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x79, 0x74,
0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x64, 0x61, 0x79, 0x74,
0x61, 0x73, 0x6b, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x65, 0x65, 0x6b, 0x74, 0x69, 0x6d, 0x65,
0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x77, 0x65, 0x65, 0x6b, 0x74, 0x69, 0x6d, 0x65,
0x12, 0x1c, 0x0a, 0x09, 0x77, 0x65, 0x65, 0x6b, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x09, 0x20,
0x03, 0x28, 0x05, 0x52, 0x09, 0x77, 0x65, 0x65, 0x6b, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x24,
0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18,
0x0a, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x74,
0x61, 0x73, 0x6b, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x66, 0x72, 0x65, 0x65, 0x70, 0x72, 0x6f, 0x67,
0x72, 0x65, 0x73, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x66, 0x72, 0x65, 0x65,
0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x79, 0x70,
0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x70,
0x61, 0x79, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x65,
0x65, 0x6b, 0x65, 0x78, 0x70, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x77, 0x65, 0x65,
0x6b, 0x65, 0x78, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_warorder_warorder_db_proto_rawDescOnce sync.Once
file_warorder_warorder_db_proto_rawDescData = file_warorder_warorder_db_proto_rawDesc
)
func file_warorder_warorder_db_proto_rawDescGZIP() []byte {
file_warorder_warorder_db_proto_rawDescOnce.Do(func() {
file_warorder_warorder_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_warorder_warorder_db_proto_rawDescData)
})
return file_warorder_warorder_db_proto_rawDescData
}
var file_warorder_warorder_db_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_warorder_warorder_db_proto_goTypes = []interface{}{
(*DBWarorders)(nil), // 0: DBWarorders
(*Warorder)(nil), // 1: Warorder
(*DreamWarorder)(nil), // 2: DreamWarorder
nil, // 3: DBWarorders.WarorderEntry
nil, // 4: DBWarorders.DreamwarorderEntry
}
var file_warorder_warorder_db_proto_depIdxs = []int32{
3, // 0: DBWarorders.warorder:type_name -> DBWarorders.WarorderEntry
4, // 1: DBWarorders.dreamwarorder:type_name -> DBWarorders.DreamwarorderEntry
1, // 2: DBWarorders.WarorderEntry.value:type_name -> Warorder
2, // 3: DBWarorders.DreamwarorderEntry.value:type_name -> DreamWarorder
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_warorder_warorder_db_proto_init() }
func file_warorder_warorder_db_proto_init() {
if File_warorder_warorder_db_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_warorder_warorder_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DBWarorders); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_warorder_warorder_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Warorder); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_warorder_warorder_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DreamWarorder); 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_warorder_warorder_db_proto_rawDesc,
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_warorder_warorder_db_proto_goTypes,
DependencyIndexes: file_warorder_warorder_db_proto_depIdxs,
MessageInfos: file_warorder_warorder_db_proto_msgTypes,
}.Build()
File_warorder_warorder_db_proto = out.File
file_warorder_warorder_db_proto_rawDesc = nil
file_warorder_warorder_db_proto_goTypes = nil
file_warorder_warorder_db_proto_depIdxs = nil
}