405 lines
13 KiB
Go
405 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: martialhall/martialhall_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 PillarState int32
|
|
|
|
const (
|
|
PillarState_NoUse PillarState = 0 //未使用
|
|
PillarState_Useing PillarState = 1 //使用中
|
|
PillarState_Receive PillarState = 2 //待领取
|
|
)
|
|
|
|
// Enum value maps for PillarState.
|
|
var (
|
|
PillarState_name = map[int32]string{
|
|
0: "NoUse",
|
|
1: "Useing",
|
|
2: "Receive",
|
|
}
|
|
PillarState_value = map[string]int32{
|
|
"NoUse": 0,
|
|
"Useing": 1,
|
|
"Receive": 2,
|
|
}
|
|
)
|
|
|
|
func (x PillarState) Enum() *PillarState {
|
|
p := new(PillarState)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x PillarState) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (PillarState) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_martialhall_martialhall_db_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (PillarState) Type() protoreflect.EnumType {
|
|
return &file_martialhall_martialhall_db_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x PillarState) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use PillarState.Descriptor instead.
|
|
func (PillarState) EnumDescriptor() ([]byte, []int) {
|
|
return file_martialhall_martialhall_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
///练功柱子
|
|
type DBPillar 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 PillarState `protobuf:"varint,3,opt,name=state,proto3,enum=PillarState" 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 *DBPillar) Reset() {
|
|
*x = DBPillar{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_martialhall_martialhall_db_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBPillar) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBPillar) ProtoMessage() {}
|
|
|
|
func (x *DBPillar) ProtoReflect() protoreflect.Message {
|
|
mi := &file_martialhall_martialhall_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 DBPillar.ProtoReflect.Descriptor instead.
|
|
func (*DBPillar) Descriptor() ([]byte, []int) {
|
|
return file_martialhall_martialhall_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DBPillar) GetIndex() int32 {
|
|
if x != nil {
|
|
return x.Index
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBPillar) GetIsunlock() bool {
|
|
if x != nil {
|
|
return x.Isunlock
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DBPillar) GetState() PillarState {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return PillarState_NoUse
|
|
}
|
|
|
|
func (x *DBPillar) GetHero() string {
|
|
if x != nil {
|
|
return x.Hero
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBPillar) GetStart() int64 {
|
|
if x != nil {
|
|
return x.Start
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBPillar) GetEnd() int64 {
|
|
if x != nil {
|
|
return x.End
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBPillar) GetLastbill() int64 {
|
|
if x != nil {
|
|
return x.Lastbill
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBPillar) GetReward() int32 {
|
|
if x != nil {
|
|
return x.Reward
|
|
}
|
|
return 0
|
|
}
|
|
|
|
//练功房
|
|
type DBMartialhall 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
|
|
Lv int32 `protobuf:"varint,3,opt,name=lv,proto3" json:"lv"` //武馆等级
|
|
Pillar1 *DBPillar `protobuf:"bytes,4,opt,name=pillar1,proto3" json:"pillar1"` //柱子1
|
|
Pillar2 *DBPillar `protobuf:"bytes,5,opt,name=pillar2,proto3" json:"pillar2"` //柱子2
|
|
Pillar3 *DBPillar `protobuf:"bytes,6,opt,name=pillar3,proto3" json:"pillar3"` //柱子3
|
|
Pillar4 *DBPillar `protobuf:"bytes,7,opt,name=pillar4,proto3" json:"pillar4"` //柱子4
|
|
Pillar5 *DBPillar `protobuf:"bytes,8,opt,name=pillar5,proto3" json:"pillar5"` //柱子5
|
|
}
|
|
|
|
func (x *DBMartialhall) Reset() {
|
|
*x = DBMartialhall{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_martialhall_martialhall_db_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBMartialhall) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBMartialhall) ProtoMessage() {}
|
|
|
|
func (x *DBMartialhall) ProtoReflect() protoreflect.Message {
|
|
mi := &file_martialhall_martialhall_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 DBMartialhall.ProtoReflect.Descriptor instead.
|
|
func (*DBMartialhall) Descriptor() ([]byte, []int) {
|
|
return file_martialhall_martialhall_db_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *DBMartialhall) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBMartialhall) GetUid() string {
|
|
if x != nil {
|
|
return x.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBMartialhall) GetLv() int32 {
|
|
if x != nil {
|
|
return x.Lv
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBMartialhall) GetPillar1() *DBPillar {
|
|
if x != nil {
|
|
return x.Pillar1
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBMartialhall) GetPillar2() *DBPillar {
|
|
if x != nil {
|
|
return x.Pillar2
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBMartialhall) GetPillar3() *DBPillar {
|
|
if x != nil {
|
|
return x.Pillar3
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBMartialhall) GetPillar4() *DBPillar {
|
|
if x != nil {
|
|
return x.Pillar4
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBMartialhall) GetPillar5() *DBPillar {
|
|
if x != nil {
|
|
return x.Pillar5
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_martialhall_martialhall_db_proto protoreflect.FileDescriptor
|
|
|
|
var file_martialhall_martialhall_db_proto_rawDesc = []byte{
|
|
0x0a, 0x20, 0x6d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x2f, 0x6d, 0x61,
|
|
0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x22, 0xd0, 0x01, 0x0a, 0x08, 0x44, 0x42, 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, 0x22, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e,
|
|
0x32, 0x0c, 0x2e, 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, 0xfa, 0x01, 0x0a, 0x0d, 0x44, 0x42, 0x4d, 0x61, 0x72, 0x74,
|
|
0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 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, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18,
|
|
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x23, 0x0a, 0x07, 0x70, 0x69, 0x6c,
|
|
0x6c, 0x61, 0x72, 0x31, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42, 0x50,
|
|
0x69, 0x6c, 0x6c, 0x61, 0x72, 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x31, 0x12, 0x23,
|
|
0x0a, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
0x09, 0x2e, 0x44, 0x42, 0x50, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c,
|
|
0x61, 0x72, 0x32, 0x12, 0x23, 0x0a, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x33, 0x18, 0x06,
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42, 0x50, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x52,
|
|
0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x33, 0x12, 0x23, 0x0a, 0x07, 0x70, 0x69, 0x6c, 0x6c,
|
|
0x61, 0x72, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42, 0x50, 0x69,
|
|
0x6c, 0x6c, 0x61, 0x72, 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x34, 0x12, 0x23, 0x0a,
|
|
0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x35, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09,
|
|
0x2e, 0x44, 0x42, 0x50, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61,
|
|
0x72, 0x35, 0x2a, 0x31, 0x0a, 0x0b, 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_martialhall_martialhall_db_proto_rawDescOnce sync.Once
|
|
file_martialhall_martialhall_db_proto_rawDescData = file_martialhall_martialhall_db_proto_rawDesc
|
|
)
|
|
|
|
func file_martialhall_martialhall_db_proto_rawDescGZIP() []byte {
|
|
file_martialhall_martialhall_db_proto_rawDescOnce.Do(func() {
|
|
file_martialhall_martialhall_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_martialhall_martialhall_db_proto_rawDescData)
|
|
})
|
|
return file_martialhall_martialhall_db_proto_rawDescData
|
|
}
|
|
|
|
var file_martialhall_martialhall_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_martialhall_martialhall_db_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_martialhall_martialhall_db_proto_goTypes = []interface{}{
|
|
(PillarState)(0), // 0: PillarState
|
|
(*DBPillar)(nil), // 1: DBPillar
|
|
(*DBMartialhall)(nil), // 2: DBMartialhall
|
|
}
|
|
var file_martialhall_martialhall_db_proto_depIdxs = []int32{
|
|
0, // 0: DBPillar.state:type_name -> PillarState
|
|
1, // 1: DBMartialhall.pillar1:type_name -> DBPillar
|
|
1, // 2: DBMartialhall.pillar2:type_name -> DBPillar
|
|
1, // 3: DBMartialhall.pillar3:type_name -> DBPillar
|
|
1, // 4: DBMartialhall.pillar4:type_name -> DBPillar
|
|
1, // 5: DBMartialhall.pillar5:type_name -> DBPillar
|
|
6, // [6:6] is the sub-list for method output_type
|
|
6, // [6:6] is the sub-list for method input_type
|
|
6, // [6:6] is the sub-list for extension type_name
|
|
6, // [6:6] is the sub-list for extension extendee
|
|
0, // [0:6] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_martialhall_martialhall_db_proto_init() }
|
|
func file_martialhall_martialhall_db_proto_init() {
|
|
if File_martialhall_martialhall_db_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_martialhall_martialhall_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBPillar); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_martialhall_martialhall_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBMartialhall); 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_martialhall_martialhall_db_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_martialhall_martialhall_db_proto_goTypes,
|
|
DependencyIndexes: file_martialhall_martialhall_db_proto_depIdxs,
|
|
EnumInfos: file_martialhall_martialhall_db_proto_enumTypes,
|
|
MessageInfos: file_martialhall_martialhall_db_proto_msgTypes,
|
|
}.Build()
|
|
File_martialhall_martialhall_db_proto = out.File
|
|
file_martialhall_martialhall_db_proto_rawDesc = nil
|
|
file_martialhall_martialhall_db_proto_goTypes = nil
|
|
file_martialhall_martialhall_db_proto_depIdxs = nil
|
|
}
|