Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
bdd057692f
@ -34,52 +34,53 @@ const (
|
|||||||
|
|
||||||
// 模块名定义处
|
// 模块名定义处
|
||||||
const (
|
const (
|
||||||
ModuleSys core.M_Modules = "sys" //系统
|
ModuleSys core.M_Modules = "sys" //系统
|
||||||
ModuleGate core.M_Modules = "gateway" //gate模块 网关服务模块
|
ModuleGate core.M_Modules = "gateway" //gate模块 网关服务模块
|
||||||
ModuleWeb core.M_Modules = "web" //后台模块
|
ModuleWeb core.M_Modules = "web" //后台模块
|
||||||
ModuleUser core.M_Modules = "user" //用户模块
|
ModuleUser core.M_Modules = "user" //用户模块
|
||||||
ModulePack core.M_Modules = "pack" //背包模块
|
ModulePack core.M_Modules = "pack" //背包模块
|
||||||
ModuleMail core.M_Modules = "mail" //邮件模块
|
ModuleMail core.M_Modules = "mail" //邮件模块
|
||||||
ModuleFriend core.M_Modules = "friend" //好友模块
|
ModuleFriend core.M_Modules = "friend" //好友模块
|
||||||
ModuleMgoLog core.M_Modules = "mgolog" //日志模块
|
ModuleMgoLog core.M_Modules = "mgolog" //日志模块
|
||||||
ModuleEquipment core.M_Modules = "equipment" //装备模块
|
ModuleEquipment core.M_Modules = "equipment" //装备模块
|
||||||
ModuleHero core.M_Modules = "hero" //英雄模块
|
ModuleHero core.M_Modules = "hero" //英雄模块
|
||||||
ModuleForum core.M_Modules = "forum" //论坛模块
|
ModuleForum core.M_Modules = "forum" //论坛模块
|
||||||
ModuleItems core.M_Modules = "items" //道具模块
|
ModuleItems core.M_Modules = "items" //道具模块
|
||||||
ModuleShop core.M_Modules = "shop" //商店模块
|
ModuleShop core.M_Modules = "shop" //商店模块
|
||||||
ModuleTask core.M_Modules = "task" //任务模块
|
ModuleTask core.M_Modules = "task" //任务模块
|
||||||
ModuleMainline core.M_Modules = "mainline" //主线模块
|
ModuleMainline core.M_Modules = "mainline" //主线模块
|
||||||
ModuleNotify core.M_Modules = "notify" //公告模块
|
ModuleNotify core.M_Modules = "notify" //公告模块
|
||||||
ModuleChat core.M_Modules = "chat" //聊天模块
|
ModuleChat core.M_Modules = "chat" //聊天模块
|
||||||
ModuleGM core.M_Modules = "gm" //gm模块
|
ModuleGM core.M_Modules = "gm" //gm模块
|
||||||
ModulePagoda core.M_Modules = "pagoda" //魔塔模块
|
ModulePagoda core.M_Modules = "pagoda" //魔塔模块
|
||||||
ModuleMartialhall core.M_Modules = "martialhall" //武馆模块
|
ModuleMartialhall core.M_Modules = "martialhall" //武馆模块
|
||||||
ModuleGourmet core.M_Modules = "gourmet" //美食馆
|
ModuleGourmet core.M_Modules = "gourmet" //美食馆
|
||||||
ModuleRtask core.M_Modules = "rtask" //随机任务
|
ModuleRtask core.M_Modules = "rtask" //随机任务
|
||||||
ModuleSmithy core.M_Modules = "smithy" //铁匠铺
|
ModuleSmithy core.M_Modules = "smithy" //铁匠铺
|
||||||
ModuleTimer core.M_Modules = "timer" //定时任务模块
|
ModuleTimer core.M_Modules = "timer" //定时任务模块
|
||||||
ModuleViking core.M_Modules = "viking" //维京远征
|
ModuleViking core.M_Modules = "viking" //维京远征
|
||||||
ModuleMoonfantasy core.M_Modules = "moonfantasy" //月之秘境模块
|
ModuleMoonfantasy core.M_Modules = "moonfantasy" //月之秘境模块
|
||||||
ModuleHunting core.M_Modules = "hunting" //狩猎
|
ModuleHunting core.M_Modules = "hunting" //狩猎
|
||||||
ModuleLinestory core.M_Modules = "linestory" //支线剧情
|
ModuleLinestory core.M_Modules = "linestory" //支线剧情
|
||||||
ModuleBattle core.M_Modules = "battle" //战斗
|
ModuleBattle core.M_Modules = "battle" //战斗
|
||||||
ModuleLibrary core.M_Modules = "library" //藏书馆
|
ModuleLibrary core.M_Modules = "library" //藏书馆
|
||||||
ModuleArena core.M_Modules = "arena" //竞技场
|
ModuleArena core.M_Modules = "arena" //竞技场
|
||||||
ModuleTroll core.M_Modules = "troll" //巨怪商队
|
ModuleTroll core.M_Modules = "troll" //巨怪商队
|
||||||
ModuleHoroscope core.M_Modules = "horoscope" //星座图
|
ModuleHoroscope core.M_Modules = "horoscope" //星座图
|
||||||
ModuleSociaty core.M_Modules = "sociaty" //公会
|
ModuleSociaty core.M_Modules = "sociaty" //公会
|
||||||
ModulePay core.M_Modules = "pay" //支付
|
ModulePay core.M_Modules = "pay" //支付
|
||||||
ModuleAcademy core.M_Modules = "academy" //联盟学院
|
ModuleAcademy core.M_Modules = "academy" //联盟学院
|
||||||
ModulePrivilege core.M_Modules = "privilege" //特权
|
ModulePrivilege core.M_Modules = "privilege" //特权
|
||||||
ModuleGrowtask core.M_Modules = "growtask" //成长任务
|
ModuleGrowtask core.M_Modules = "growtask" //成长任务
|
||||||
ModuleWorldtask core.M_Modules = "worldtask" //世界任务
|
ModuleWorldtask core.M_Modules = "worldtask" //世界任务
|
||||||
ModuleReddot core.M_Modules = "reddot" //红点
|
ModuleReddot core.M_Modules = "reddot" //红点
|
||||||
ModuleCombat core.M_Modules = "combat" //关卡编辑
|
ModuleCombat core.M_Modules = "combat" //关卡编辑
|
||||||
ModuleEnchant core.M_Modules = "enchant" //附魔
|
ModuleEnchant core.M_Modules = "enchant" //附魔
|
||||||
ModuleAutoBattle core.M_Modules = "autobattle" //自动战斗
|
ModuleAutoBattle core.M_Modules = "autobattle" //自动战斗
|
||||||
ModuleMline core.M_Modules = "mline" //主线模块
|
ModuleMline core.M_Modules = "mline" //主线模块
|
||||||
ModulePvp core.M_Modules = "pvp" //实时pvp
|
ModulePvp core.M_Modules = "pvp" //实时pvp
|
||||||
ModulePandaTakekan core.M_Modules = "pandatakekan" //熊猫武馆
|
ModulePractice core.M_Modules = "practice" //熊猫武馆 练功系统
|
||||||
|
ModuleFitness core.M_Modules = "fitness" //熊猫武馆 每日一健
|
||||||
)
|
)
|
||||||
|
|
||||||
// 数据表名定义处
|
// 数据表名定义处
|
||||||
@ -229,6 +230,9 @@ const (
|
|||||||
TableStove = "stove"
|
TableStove = "stove"
|
||||||
// 铁匠铺图鉴
|
// 铁匠铺图鉴
|
||||||
TableAtlas = "atlas"
|
TableAtlas = "atlas"
|
||||||
|
|
||||||
|
///熊猫物管部
|
||||||
|
TablePandata = "pandata"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RPC服务接口定义处
|
// RPC服务接口定义处
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package pandatakekan
|
package fitness
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go_dreamfactory/modules"
|
"go_dreamfactory/modules"
|
||||||
@ -12,13 +12,13 @@ API
|
|||||||
type apiComp struct {
|
type apiComp struct {
|
||||||
modules.MCompGate
|
modules.MCompGate
|
||||||
service core.IService
|
service core.IService
|
||||||
module *PandaTakekan
|
module *Forum
|
||||||
}
|
}
|
||||||
|
|
||||||
//组件初始化接口
|
//组件初始化接口
|
||||||
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
this.MCompGate.Init(service, module, comp, options)
|
this.MCompGate.Init(service, module, comp, options)
|
||||||
this.module = module.(*PandaTakekan)
|
this.module = module.(*Forum)
|
||||||
this.service = service
|
this.service = service
|
||||||
return
|
return
|
||||||
}
|
}
|
25
modules/fitness/configure.go
Normal file
25
modules/fitness/configure.go
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
package fitness
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
game_equipment = "game_equipment.json"
|
||||||
|
)
|
||||||
|
|
||||||
|
/*
|
||||||
|
配置读取组件
|
||||||
|
*/
|
||||||
|
type configureComp struct {
|
||||||
|
modules.MCompConfigure
|
||||||
|
}
|
||||||
|
|
||||||
|
//组件初始化接口
|
||||||
|
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
|
this.MCompConfigure.Init(service, module, comp, options)
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
26
modules/fitness/modelFitness.go
Normal file
26
modules/fitness/modelFitness.go
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
package fitness
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
)
|
||||||
|
|
||||||
|
/*
|
||||||
|
数据读取组件
|
||||||
|
*/
|
||||||
|
type modelFitnessComp struct {
|
||||||
|
modules.MCompModel
|
||||||
|
module *Forum
|
||||||
|
}
|
||||||
|
|
||||||
|
//组件初始化接口
|
||||||
|
func (this *modelFitnessComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, opt core.IModuleOptions) (err error) {
|
||||||
|
this.TableName = comm.TableForum
|
||||||
|
this.MCompModel.Init(service, module, comp, opt)
|
||||||
|
this.module = module.(*Forum)
|
||||||
|
|
||||||
|
//创建uid索引
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
44
modules/fitness/module.go
Normal file
44
modules/fitness/module.go
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
package fitness
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
)
|
||||||
|
|
||||||
|
/*
|
||||||
|
模块名:每日一健
|
||||||
|
描述:武馆子系统 健身系统
|
||||||
|
开发:李伟
|
||||||
|
*/
|
||||||
|
func NewModule() core.IModule {
|
||||||
|
m := new(Forum)
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
type Forum struct {
|
||||||
|
modules.ModuleBase
|
||||||
|
api_comp *apiComp
|
||||||
|
configure *configureComp
|
||||||
|
modelFitness *modelFitnessComp
|
||||||
|
}
|
||||||
|
|
||||||
|
//模块名
|
||||||
|
func (this *Forum) GetType() core.M_Modules {
|
||||||
|
return comm.ModuleFitness
|
||||||
|
}
|
||||||
|
|
||||||
|
//模块初始化接口 注册用户创建角色事件
|
||||||
|
func (this *Forum) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||||
|
err = this.ModuleBase.Init(service, module, options)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//装备组件
|
||||||
|
func (this *Forum) OnInstallComp() {
|
||||||
|
this.ModuleBase.OnInstallComp()
|
||||||
|
this.api_comp = this.RegisterComp(new(apiComp)).(*apiComp)
|
||||||
|
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
||||||
|
this.modelFitness = this.RegisterComp(new(modelFitnessComp)).(*modelFitnessComp)
|
||||||
|
|
||||||
|
}
|
@ -78,21 +78,21 @@ locp:
|
|||||||
break locp
|
break locp
|
||||||
} else {
|
} else {
|
||||||
// this.gateway.Debugf("----------1 agent:%s uId:%s MainType:%s SubType:%s ", this.sessionId, this.uId, msg.MainType, msg.SubType)
|
// this.gateway.Debugf("----------1 agent:%s uId:%s MainType:%s SubType:%s ", this.sessionId, this.uId, msg.MainType, msg.SubType)
|
||||||
|
if msg.MainType == string(comm.ModuleGate) { //心跳消息 无需校验秘钥
|
||||||
|
data, _ := anypb.New(&pb.GatewayHeartbeatResp{
|
||||||
|
Timestamp: configure.Now().Unix(),
|
||||||
|
})
|
||||||
|
this.WriteMsg(&pb.UserMessage{
|
||||||
|
MainType: string(comm.ModuleGate),
|
||||||
|
SubType: "heartbeat",
|
||||||
|
Data: data,
|
||||||
|
})
|
||||||
|
this.wsConn.SetReadDeadline(time.Now().Add(time.Second * 30))
|
||||||
|
continue
|
||||||
|
}
|
||||||
var code pb.ErrorCode
|
var code pb.ErrorCode
|
||||||
code, err = this.secAuth(msg)
|
code, err = this.secAuth(msg)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if msg.MainType == string(comm.ModuleGate) { //心跳消息
|
|
||||||
data, _ := anypb.New(&pb.GatewayHeartbeatResp{
|
|
||||||
Timestamp: configure.Now().Unix(),
|
|
||||||
})
|
|
||||||
this.WriteMsg(&pb.UserMessage{
|
|
||||||
MainType: string(comm.ModuleGate),
|
|
||||||
SubType: "heartbeat",
|
|
||||||
Data: data,
|
|
||||||
})
|
|
||||||
//this.wsConn.SetReadDeadline(time.Now().Add(time.Second * 30))
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
// this.gateway.Debugf("----------2 agent:%s uId:%s MainType:%s SubType:%s ", this.sessionId, this.uId, msg.MainType, msg.SubType)
|
// this.gateway.Debugf("----------2 agent:%s uId:%s MainType:%s SubType:%s ", this.sessionId, this.uId, msg.MainType, msg.SubType)
|
||||||
if err := this.messageDistribution(msg); err != nil {
|
if err := this.messageDistribution(msg); err != nil {
|
||||||
this.gateway.Errorf("messageDistribution err:%v", err)
|
this.gateway.Errorf("messageDistribution err:%v", err)
|
||||||
|
29
modules/practice/api.go
Normal file
29
modules/practice/api.go
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
package practice
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
)
|
||||||
|
|
||||||
|
/*
|
||||||
|
API
|
||||||
|
*/
|
||||||
|
type apiComp struct {
|
||||||
|
modules.MCompGate
|
||||||
|
service core.IService
|
||||||
|
module *Practice
|
||||||
|
}
|
||||||
|
|
||||||
|
//组件初始化接口
|
||||||
|
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
|
this.MCompGate.Init(service, module, comp, options)
|
||||||
|
this.module = module.(*Practice)
|
||||||
|
this.service = service
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *apiComp) Start() (err error) {
|
||||||
|
err = this.MCompGate.Start()
|
||||||
|
return
|
||||||
|
}
|
55
modules/practice/modelPandata.go
Normal file
55
modules/practice/modelPandata.go
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
package practice
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/lego/sys/mgo"
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
|
||||||
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||||
|
"go.mongodb.org/mongo-driver/mongo"
|
||||||
|
"go.mongodb.org/mongo-driver/x/bsonx"
|
||||||
|
)
|
||||||
|
|
||||||
|
///熊猫武馆数据表
|
||||||
|
type modelPandata struct {
|
||||||
|
modules.MCompModel
|
||||||
|
module *Practice
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *modelPandata) Init(service core.IService, module core.IModule, comp core.IModuleComp, opt core.IModuleOptions) (err error) {
|
||||||
|
this.TableName = comm.TablePandata
|
||||||
|
this.MCompModel.Init(service, module, comp, opt)
|
||||||
|
this.module = module.(*Practice)
|
||||||
|
//创建uid索引
|
||||||
|
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
|
||||||
|
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
///询用户的练功房信息
|
||||||
|
func (this *modelPandata) queryUserMartialhall(uid string) (result *pb.DBPandataKekan, err error) {
|
||||||
|
result = &pb.DBPandataKekan{}
|
||||||
|
if err = this.Get(uid, result); err != nil && err != mgo.MongodbNil {
|
||||||
|
this.module.Errorln(err)
|
||||||
|
}
|
||||||
|
if err == mgo.MongodbNil {
|
||||||
|
result = &pb.DBPandataKekan{
|
||||||
|
Id: primitive.NewObjectID().Hex(),
|
||||||
|
Uid: uid,
|
||||||
|
|
||||||
|
Pillar1: &pb.DBPandataPillar{Index: 1},
|
||||||
|
Pillar2: &pb.DBPandataPillar{Index: 2},
|
||||||
|
Pillar3: &pb.DBPandataPillar{Index: 3},
|
||||||
|
Pillarf: &pb.DBPandataPillar{Index: 4},
|
||||||
|
}
|
||||||
|
if err = this.Add(uid, result); err != nil {
|
||||||
|
this.module.Errorln(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
err = nil
|
||||||
|
return
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
package pandatakekan
|
package practice
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go_dreamfactory/comm"
|
"go_dreamfactory/comm"
|
||||||
@ -8,42 +8,40 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
模块名:熊猫武馆
|
模块名:熊猫武馆 练功子系统
|
||||||
描述:熊猫武馆 主系统 打桩 以及武馆相关数据管理
|
描述:熊猫武馆 主系统 打桩 以及武馆相关数据管理
|
||||||
开发:李伟
|
开发:李伟
|
||||||
*/
|
*/
|
||||||
func NewModule() core.IModule {
|
func NewModule() core.IModule {
|
||||||
m := new(PandaTakekan)
|
m := new(Practice)
|
||||||
return m
|
return m
|
||||||
}
|
}
|
||||||
|
|
||||||
type PandaTakekan struct {
|
type Practice struct {
|
||||||
modules.ModuleBase
|
modules.ModuleBase
|
||||||
service base.IRPCXService
|
service base.IRPCXService
|
||||||
api *apiComp
|
api *apiComp
|
||||||
}
|
}
|
||||||
|
|
||||||
//模块名
|
//模块名
|
||||||
func (this *PandaTakekan) GetType() core.M_Modules {
|
func (this *Practice) GetType() core.M_Modules {
|
||||||
return comm.ModulePandaTakekan
|
return comm.ModulePractice
|
||||||
}
|
}
|
||||||
|
|
||||||
//模块初始化接口 注册用户创建角色事件
|
//模块初始化接口 注册用户创建角色事件
|
||||||
func (this *PandaTakekan) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
func (this *Practice) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||||
err = this.ModuleBase.Init(service, module, options)
|
err = this.ModuleBase.Init(service, module, options)
|
||||||
this.service = service.(base.IRPCXService)
|
this.service = service.(base.IRPCXService)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
func (this *PandaTakekan) Start() (err error) {
|
func (this *Practice) Start() (err error) {
|
||||||
err = this.ModuleBase.Start()
|
err = this.ModuleBase.Start()
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//装备组件
|
//装备组件
|
||||||
func (this *PandaTakekan) OnInstallComp() {
|
func (this *Practice) OnInstallComp() {
|
||||||
this.ModuleBase.OnInstallComp()
|
this.ModuleBase.OnInstallComp()
|
||||||
|
|
||||||
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
|
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
|
||||||
|
|
||||||
}
|
}
|
61
pb/fitness_db.pb.go
Normal file
61
pb/fitness_db.pb.go
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.28.0
|
||||||
|
// protoc v3.20.0
|
||||||
|
// source: fitness/fitness_db.proto
|
||||||
|
|
||||||
|
package pb
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
var File_fitness_fitness_db_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_fitness_fitness_db_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x18, 0x66, 0x69, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x2f, 0x66, 0x69, 0x74, 0x6e, 0x65, 0x73,
|
||||||
|
0x73, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b,
|
||||||
|
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_fitness_fitness_db_proto_goTypes = []interface{}{}
|
||||||
|
var file_fitness_fitness_db_proto_depIdxs = []int32{
|
||||||
|
0, // [0:0] is the sub-list for method output_type
|
||||||
|
0, // [0:0] is the sub-list for method input_type
|
||||||
|
0, // [0:0] is the sub-list for extension type_name
|
||||||
|
0, // [0:0] is the sub-list for extension extendee
|
||||||
|
0, // [0:0] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_fitness_fitness_db_proto_init() }
|
||||||
|
func file_fitness_fitness_db_proto_init() {
|
||||||
|
if File_fitness_fitness_db_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_fitness_fitness_db_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 0,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_fitness_fitness_db_proto_goTypes,
|
||||||
|
DependencyIndexes: file_fitness_fitness_db_proto_depIdxs,
|
||||||
|
}.Build()
|
||||||
|
File_fitness_fitness_db_proto = out.File
|
||||||
|
file_fitness_fitness_db_proto_rawDesc = nil
|
||||||
|
file_fitness_fitness_db_proto_goTypes = nil
|
||||||
|
file_fitness_fitness_db_proto_depIdxs = nil
|
||||||
|
}
|
61
pb/fitness_msg.pb.go
Normal file
61
pb/fitness_msg.pb.go
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.28.0
|
||||||
|
// protoc v3.20.0
|
||||||
|
// source: fitness/fitness_msg.proto
|
||||||
|
|
||||||
|
package pb
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
var File_fitness_fitness_msg_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_fitness_fitness_msg_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x19, 0x66, 0x69, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x2f, 0x66, 0x69, 0x74, 0x6e, 0x65, 0x73,
|
||||||
|
0x73, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e,
|
||||||
|
0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_fitness_fitness_msg_proto_goTypes = []interface{}{}
|
||||||
|
var file_fitness_fitness_msg_proto_depIdxs = []int32{
|
||||||
|
0, // [0:0] is the sub-list for method output_type
|
||||||
|
0, // [0:0] is the sub-list for method input_type
|
||||||
|
0, // [0:0] is the sub-list for extension type_name
|
||||||
|
0, // [0:0] is the sub-list for extension extendee
|
||||||
|
0, // [0:0] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_fitness_fitness_msg_proto_init() }
|
||||||
|
func file_fitness_fitness_msg_proto_init() {
|
||||||
|
if File_fitness_fitness_msg_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_fitness_fitness_msg_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 0,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_fitness_fitness_msg_proto_goTypes,
|
||||||
|
DependencyIndexes: file_fitness_fitness_msg_proto_depIdxs,
|
||||||
|
}.Build()
|
||||||
|
File_fitness_fitness_msg_proto = out.File
|
||||||
|
file_fitness_fitness_msg_proto_rawDesc = nil
|
||||||
|
file_fitness_fitness_msg_proto_goTypes = nil
|
||||||
|
file_fitness_fitness_msg_proto_depIdxs = nil
|
||||||
|
}
|
@ -229,7 +229,8 @@ type QiecuoRecord struct {
|
|||||||
TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId" bson:"targetId"` //切磋接受人
|
TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId" bson:"targetId"` //切磋接受人
|
||||||
Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status" bson:"status"` //0默认 1已发送 2已接收
|
Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status" bson:"status"` //0默认 1已发送 2已接收
|
||||||
MatchId string `protobuf:"bytes,4,opt,name=matchId,proto3" json:"matchId" bson:"matchId"` //战斗ID
|
MatchId string `protobuf:"bytes,4,opt,name=matchId,proto3" json:"matchId" bson:"matchId"` //战斗ID
|
||||||
Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp" bson:"timestamp"` //切磋发起时间戳
|
Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp" bson:"timestamp"` //切磋时间戳
|
||||||
|
EndTime int64 `protobuf:"varint,6,opt,name=endTime,proto3" json:"endTime" bson:"endTime"` //战斗结束时间戳
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *QiecuoRecord) Reset() {
|
func (x *QiecuoRecord) Reset() {
|
||||||
@ -299,6 +300,13 @@ func (x *QiecuoRecord) GetTimestamp() int64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *QiecuoRecord) GetEndTime() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.EndTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
var File_friend_friend_db_proto protoreflect.FileDescriptor
|
var File_friend_friend_db_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_friend_friend_db_proto_rawDesc = []byte{
|
var file_friend_friend_db_proto_rawDesc = []byte{
|
||||||
@ -334,7 +342,7 @@ var file_friend_friend_db_proto_rawDesc = []byte{
|
|||||||
0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x54, 0x69, 0x6d,
|
0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x54, 0x69, 0x6d,
|
||||||
0x65, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x48, 0x65, 0x72, 0x6f, 0x49,
|
0x65, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x48, 0x65, 0x72, 0x6f, 0x49,
|
||||||
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x48,
|
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x48,
|
||||||
0x65, 0x72, 0x6f, 0x49, 0x64, 0x22, 0x8c, 0x01, 0x0a, 0x0c, 0x51, 0x69, 0x65, 0x63, 0x75, 0x6f,
|
0x65, 0x72, 0x6f, 0x49, 0x64, 0x22, 0xa6, 0x01, 0x0a, 0x0c, 0x51, 0x69, 0x65, 0x63, 0x75, 0x6f,
|
||||||
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20,
|
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||||
0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x61, 0x72, 0x67,
|
0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x61, 0x72, 0x67,
|
||||||
0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67,
|
0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67,
|
||||||
@ -343,8 +351,9 @@ var file_friend_friend_db_proto_rawDesc = []byte{
|
|||||||
0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,
|
0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,
|
||||||
0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
||||||
0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73,
|
0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73,
|
||||||
0x74, 0x61, 0x6d, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
|
0x74, 0x61, 0x6d, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18,
|
||||||
0x6f, 0x74, 0x6f, 0x33,
|
0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x06,
|
||||||
|
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
469
pb/pandatakekan_db.pb.go
Normal file
469
pb/pandatakekan_db.pb.go
Normal file
@ -0,0 +1,469 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.28.0
|
||||||
|
// protoc v3.20.0
|
||||||
|
// source: pandatakekan/pandatakekan_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 PandataPillarState int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
PandataPillarState_NoUse PandataPillarState = 0 //未使用
|
||||||
|
PandataPillarState_Useing PandataPillarState = 1 //使用中
|
||||||
|
PandataPillarState_Receive PandataPillarState = 2 //待领取
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for PandataPillarState.
|
||||||
|
var (
|
||||||
|
PandataPillarState_name = map[int32]string{
|
||||||
|
0: "NoUse",
|
||||||
|
1: "Useing",
|
||||||
|
2: "Receive",
|
||||||
|
}
|
||||||
|
PandataPillarState_value = map[string]int32{
|
||||||
|
"NoUse": 0,
|
||||||
|
"Useing": 1,
|
||||||
|
"Receive": 2,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x PandataPillarState) Enum() *PandataPillarState {
|
||||||
|
p := new(PandataPillarState)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x PandataPillarState) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (PandataPillarState) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_pandatakekan_pandatakekan_db_proto_enumTypes[0].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (PandataPillarState) Type() protoreflect.EnumType {
|
||||||
|
return &file_pandatakekan_pandatakekan_db_proto_enumTypes[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x PandataPillarState) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use PandataPillarState.Descriptor instead.
|
||||||
|
func (PandataPillarState) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_pandatakekan_pandatakekan_db_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
///熊猫柱子
|
||||||
|
type DBPandataPillar 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 PandataPillarState `protobuf:"varint,3,opt,name=state,proto3,enum=PandataPillarState" 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 *DBPandataPillar) Reset() {
|
||||||
|
*x = DBPandataPillar{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_pandatakekan_pandatakekan_db_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataPillar) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DBPandataPillar) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DBPandataPillar) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_pandatakekan_pandatakekan_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 DBPandataPillar.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DBPandataPillar) Descriptor() ([]byte, []int) {
|
||||||
|
return file_pandatakekan_pandatakekan_db_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataPillar) GetIndex() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Index
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataPillar) GetIsunlock() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Isunlock
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataPillar) GetState() PandataPillarState {
|
||||||
|
if x != nil {
|
||||||
|
return x.State
|
||||||
|
}
|
||||||
|
return PandataPillarState_NoUse
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataPillar) GetHero() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Hero
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataPillar) GetStart() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Start
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataPillar) GetEnd() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.End
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataPillar) GetLastbill() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Lastbill
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataPillar) GetReward() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Reward
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
//熊猫武馆教习
|
||||||
|
type DBPandataTeacher 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 *DBPandataTeacher) Reset() {
|
||||||
|
*x = DBPandataTeacher{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_pandatakekan_pandatakekan_db_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataTeacher) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DBPandataTeacher) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DBPandataTeacher) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_pandatakekan_pandatakekan_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 DBPandataTeacher.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DBPandataTeacher) Descriptor() ([]byte, []int) {
|
||||||
|
return file_pandatakekan_pandatakekan_db_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataTeacher) GetId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataTeacher) GetCid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Cid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataTeacher) GetStudent() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Student
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
//练功房
|
||||||
|
type DBPandataKekan 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 *DBPandataPillar `protobuf:"bytes,4,opt,name=pillar1,proto3" json:"pillar1"` //柱子1
|
||||||
|
Pillar2 *DBPandataPillar `protobuf:"bytes,5,opt,name=pillar2,proto3" json:"pillar2"` //柱子2
|
||||||
|
Pillar3 *DBPandataPillar `protobuf:"bytes,6,opt,name=pillar3,proto3" json:"pillar3"` //柱子3
|
||||||
|
Pillarf *DBPandataPillar `protobuf:"bytes,7,opt,name=pillarf,proto3" json:"pillarf"` //好友柱子
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataKekan) Reset() {
|
||||||
|
*x = DBPandataKekan{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_pandatakekan_pandatakekan_db_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataKekan) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DBPandataKekan) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DBPandataKekan) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_pandatakekan_pandatakekan_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 DBPandataKekan.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DBPandataKekan) Descriptor() ([]byte, []int) {
|
||||||
|
return file_pandatakekan_pandatakekan_db_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataKekan) GetId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataKekan) GetUid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataKekan) GetPillar1() *DBPandataPillar {
|
||||||
|
if x != nil {
|
||||||
|
return x.Pillar1
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataKekan) GetPillar2() *DBPandataPillar {
|
||||||
|
if x != nil {
|
||||||
|
return x.Pillar2
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataKekan) GetPillar3() *DBPandataPillar {
|
||||||
|
if x != nil {
|
||||||
|
return x.Pillar3
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPandataKekan) GetPillarf() *DBPandataPillar {
|
||||||
|
if x != nil {
|
||||||
|
return x.Pillarf
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_pandatakekan_pandatakekan_db_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_pandatakekan_pandatakekan_db_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x22, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x6b, 0x65, 0x6b, 0x61, 0x6e, 0x2f, 0x70,
|
||||||
|
0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x6b, 0x65, 0x6b, 0x61, 0x6e, 0x5f, 0x64, 0x62, 0x2e, 0x70,
|
||||||
|
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xde, 0x01, 0x0a, 0x0f, 0x44, 0x42, 0x50, 0x61, 0x6e, 0x64, 0x61,
|
||||||
|
0x74, 0x61, 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, 0x29, 0x0a, 0x05, 0x73, 0x74,
|
||||||
|
0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x50, 0x61, 0x6e, 0x64,
|
||||||
|
0x61, 0x74, 0x61, 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, 0x4e, 0x0a, 0x10, 0x44, 0x42, 0x50, 0x61, 0x6e, 0x64, 0x61,
|
||||||
|
0x74, 0x61, 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, 0xe2, 0x01, 0x0a, 0x0e, 0x44, 0x42, 0x50, 0x61, 0x6e, 0x64,
|
||||||
|
0x61, 0x74, 0x61, 0x4b, 0x65, 0x6b, 0x61, 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, 0x2a, 0x0a, 0x07, 0x70, 0x69,
|
||||||
|
0x6c, 0x6c, 0x61, 0x72, 0x31, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x44, 0x42,
|
||||||
|
0x50, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x50, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x52, 0x07, 0x70,
|
||||||
|
0x69, 0x6c, 0x6c, 0x61, 0x72, 0x31, 0x12, 0x2a, 0x0a, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72,
|
||||||
|
0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x6e, 0x64,
|
||||||
|
0x61, 0x74, 0x61, 0x50, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61,
|
||||||
|
0x72, 0x32, 0x12, 0x2a, 0x0a, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x33, 0x18, 0x06, 0x20,
|
||||||
|
0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x50,
|
||||||
|
0x69, 0x6c, 0x6c, 0x61, 0x72, 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x33, 0x12, 0x2a,
|
||||||
|
0x0a, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x66, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
|
0x10, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x50, 0x69, 0x6c, 0x6c, 0x61,
|
||||||
|
0x72, 0x52, 0x07, 0x70, 0x69, 0x6c, 0x6c, 0x61, 0x72, 0x66, 0x2a, 0x38, 0x0a, 0x12, 0x50, 0x61,
|
||||||
|
0x6e, 0x64, 0x61, 0x74, 0x61, 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_pandatakekan_pandatakekan_db_proto_rawDescOnce sync.Once
|
||||||
|
file_pandatakekan_pandatakekan_db_proto_rawDescData = file_pandatakekan_pandatakekan_db_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_pandatakekan_pandatakekan_db_proto_rawDescGZIP() []byte {
|
||||||
|
file_pandatakekan_pandatakekan_db_proto_rawDescOnce.Do(func() {
|
||||||
|
file_pandatakekan_pandatakekan_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_pandatakekan_pandatakekan_db_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_pandatakekan_pandatakekan_db_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_pandatakekan_pandatakekan_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
|
var file_pandatakekan_pandatakekan_db_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||||
|
var file_pandatakekan_pandatakekan_db_proto_goTypes = []interface{}{
|
||||||
|
(PandataPillarState)(0), // 0: PandataPillarState
|
||||||
|
(*DBPandataPillar)(nil), // 1: DBPandataPillar
|
||||||
|
(*DBPandataTeacher)(nil), // 2: DBPandataTeacher
|
||||||
|
(*DBPandataKekan)(nil), // 3: DBPandataKekan
|
||||||
|
}
|
||||||
|
var file_pandatakekan_pandatakekan_db_proto_depIdxs = []int32{
|
||||||
|
0, // 0: DBPandataPillar.state:type_name -> PandataPillarState
|
||||||
|
1, // 1: DBPandataKekan.pillar1:type_name -> DBPandataPillar
|
||||||
|
1, // 2: DBPandataKekan.pillar2:type_name -> DBPandataPillar
|
||||||
|
1, // 3: DBPandataKekan.pillar3:type_name -> DBPandataPillar
|
||||||
|
1, // 4: DBPandataKekan.pillarf:type_name -> DBPandataPillar
|
||||||
|
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_pandatakekan_pandatakekan_db_proto_init() }
|
||||||
|
func file_pandatakekan_pandatakekan_db_proto_init() {
|
||||||
|
if File_pandatakekan_pandatakekan_db_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_pandatakekan_pandatakekan_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DBPandataPillar); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_pandatakekan_pandatakekan_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DBPandataTeacher); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_pandatakekan_pandatakekan_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DBPandataKekan); 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_pandatakekan_pandatakekan_db_proto_rawDesc,
|
||||||
|
NumEnums: 1,
|
||||||
|
NumMessages: 3,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_pandatakekan_pandatakekan_db_proto_goTypes,
|
||||||
|
DependencyIndexes: file_pandatakekan_pandatakekan_db_proto_depIdxs,
|
||||||
|
EnumInfos: file_pandatakekan_pandatakekan_db_proto_enumTypes,
|
||||||
|
MessageInfos: file_pandatakekan_pandatakekan_db_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_pandatakekan_pandatakekan_db_proto = out.File
|
||||||
|
file_pandatakekan_pandatakekan_db_proto_rawDesc = nil
|
||||||
|
file_pandatakekan_pandatakekan_db_proto_goTypes = nil
|
||||||
|
file_pandatakekan_pandatakekan_db_proto_depIdxs = nil
|
||||||
|
}
|
203
pb/pandatakekan_msg.pb.go
Normal file
203
pb/pandatakekan_msg.pb.go
Normal file
@ -0,0 +1,203 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.28.0
|
||||||
|
// protoc v3.20.0
|
||||||
|
// source: pandatakekan/pandatakekan_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 PandataKekanInfoReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PandataKekanInfoReq) Reset() {
|
||||||
|
*x = PandataKekanInfoReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_pandatakekan_pandatakekan_msg_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PandataKekanInfoReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PandataKekanInfoReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *PandataKekanInfoReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_pandatakekan_pandatakekan_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 PandataKekanInfoReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*PandataKekanInfoReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_pandatakekan_pandatakekan_msg_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
///信息请求 回应
|
||||||
|
type PandataKekanInfoResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Info *DBPandataKekan `protobuf:"bytes,1,opt,name=info,proto3" json:"info"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PandataKekanInfoResp) Reset() {
|
||||||
|
*x = PandataKekanInfoResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_pandatakekan_pandatakekan_msg_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PandataKekanInfoResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PandataKekanInfoResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *PandataKekanInfoResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_pandatakekan_pandatakekan_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 PandataKekanInfoResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*PandataKekanInfoResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_pandatakekan_pandatakekan_msg_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PandataKekanInfoResp) GetInfo() *DBPandataKekan {
|
||||||
|
if x != nil {
|
||||||
|
return x.Info
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_pandatakekan_pandatakekan_msg_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_pandatakekan_pandatakekan_msg_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x23, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x6b, 0x65, 0x6b, 0x61, 0x6e, 0x2f, 0x70,
|
||||||
|
0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x6b, 0x65, 0x6b, 0x61, 0x6e, 0x5f, 0x6d, 0x73, 0x67, 0x2e,
|
||||||
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x6b, 0x65,
|
||||||
|
0x6b, 0x61, 0x6e, 0x2f, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x6b, 0x65, 0x6b, 0x61, 0x6e,
|
||||||
|
0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x15, 0x0a, 0x13, 0x50, 0x61, 0x6e,
|
||||||
|
0x64, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x6b, 0x61, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71,
|
||||||
|
0x22, 0x3b, 0x0a, 0x14, 0x50, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x6b, 0x61, 0x6e,
|
||||||
|
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, 0x61, 0x6e, 0x64, 0x61,
|
||||||
|
0x74, 0x61, 0x4b, 0x65, 0x6b, 0x61, 0x6e, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x42, 0x06, 0x5a,
|
||||||
|
0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_pandatakekan_pandatakekan_msg_proto_rawDescOnce sync.Once
|
||||||
|
file_pandatakekan_pandatakekan_msg_proto_rawDescData = file_pandatakekan_pandatakekan_msg_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_pandatakekan_pandatakekan_msg_proto_rawDescGZIP() []byte {
|
||||||
|
file_pandatakekan_pandatakekan_msg_proto_rawDescOnce.Do(func() {
|
||||||
|
file_pandatakekan_pandatakekan_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_pandatakekan_pandatakekan_msg_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_pandatakekan_pandatakekan_msg_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_pandatakekan_pandatakekan_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||||
|
var file_pandatakekan_pandatakekan_msg_proto_goTypes = []interface{}{
|
||||||
|
(*PandataKekanInfoReq)(nil), // 0: PandataKekanInfoReq
|
||||||
|
(*PandataKekanInfoResp)(nil), // 1: PandataKekanInfoResp
|
||||||
|
(*DBPandataKekan)(nil), // 2: DBPandataKekan
|
||||||
|
}
|
||||||
|
var file_pandatakekan_pandatakekan_msg_proto_depIdxs = []int32{
|
||||||
|
2, // 0: PandataKekanInfoResp.info:type_name -> DBPandataKekan
|
||||||
|
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_pandatakekan_pandatakekan_msg_proto_init() }
|
||||||
|
func file_pandatakekan_pandatakekan_msg_proto_init() {
|
||||||
|
if File_pandatakekan_pandatakekan_msg_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
file_pandatakekan_pandatakekan_db_proto_init()
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_pandatakekan_pandatakekan_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*PandataKekanInfoReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_pandatakekan_pandatakekan_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*PandataKekanInfoResp); 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_pandatakekan_pandatakekan_msg_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 2,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_pandatakekan_pandatakekan_msg_proto_goTypes,
|
||||||
|
DependencyIndexes: file_pandatakekan_pandatakekan_msg_proto_depIdxs,
|
||||||
|
MessageInfos: file_pandatakekan_pandatakekan_msg_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_pandatakekan_pandatakekan_msg_proto = out.File
|
||||||
|
file_pandatakekan_pandatakekan_msg_proto_rawDesc = nil
|
||||||
|
file_pandatakekan_pandatakekan_msg_proto_goTypes = nil
|
||||||
|
file_pandatakekan_pandatakekan_msg_proto_depIdxs = nil
|
||||||
|
}
|
469
pb/practice_db.pb.go
Normal file
469
pb/practice_db.pb.go
Normal file
@ -0,0 +1,469 @@
|
|||||||
|
// 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
|
||||||
|
}
|
731
pb/practice_msg.pb.go
Normal file
731
pb/practice_msg.pb.go
Normal file
@ -0,0 +1,731 @@
|
|||||||
|
// 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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user