上传武馆模块代码
This commit is contained in:
parent
8f80f08d5f
commit
e845ed0adc
@ -28,24 +28,25 @@ const (
|
||||
|
||||
//模块名定义处
|
||||
const (
|
||||
ModuleGate core.M_Modules = "gateway" //gate模块 网关服务模块
|
||||
ModuleWeb core.M_Modules = "web" //后台模块
|
||||
ModuleUser core.M_Modules = "user" //用户模块
|
||||
ModulePack core.M_Modules = "pack" //背包模块
|
||||
ModuleMail core.M_Modules = "mail" //邮件模块
|
||||
ModuleFriend core.M_Modules = "friend" //好友模块
|
||||
ModuleMgoLog core.M_Modules = "mgolog" //日志模块
|
||||
ModuleEquipment core.M_Modules = "equipment" //装备模块
|
||||
ModuleHero core.M_Modules = "hero" //英雄模块
|
||||
ModuleForum core.M_Modules = "forum" //论坛模块
|
||||
ModuleItems core.M_Modules = "items" //道具模块
|
||||
ModuleShop core.M_Modules = "shop" //商店模块
|
||||
ModuleTask core.M_Modules = "task" //任务模块
|
||||
ModuleMainline core.M_Modules = "mainline" //主线模块
|
||||
ModuleNotify core.M_Modules = "notify" //公告模块
|
||||
ModuleChat core.M_Modules = "chat" //装备模块
|
||||
ModuleGM core.M_Modules = "gm" //gm模块
|
||||
ModulePagoda core.M_Modules = "pagoda" //魔塔模块
|
||||
ModuleGate core.M_Modules = "gateway" //gate模块 网关服务模块
|
||||
ModuleWeb core.M_Modules = "web" //后台模块
|
||||
ModuleUser core.M_Modules = "user" //用户模块
|
||||
ModulePack core.M_Modules = "pack" //背包模块
|
||||
ModuleMail core.M_Modules = "mail" //邮件模块
|
||||
ModuleFriend core.M_Modules = "friend" //好友模块
|
||||
ModuleMgoLog core.M_Modules = "mgolog" //日志模块
|
||||
ModuleEquipment core.M_Modules = "equipment" //装备模块
|
||||
ModuleHero core.M_Modules = "hero" //英雄模块
|
||||
ModuleForum core.M_Modules = "forum" //论坛模块
|
||||
ModuleItems core.M_Modules = "items" //道具模块
|
||||
ModuleShop core.M_Modules = "shop" //商店模块
|
||||
ModuleTask core.M_Modules = "task" //任务模块
|
||||
ModuleMainline core.M_Modules = "mainline" //主线模块
|
||||
ModuleNotify core.M_Modules = "notify" //公告模块
|
||||
ModuleChat core.M_Modules = "chat" //装备模块
|
||||
ModuleGM core.M_Modules = "gm" //gm模块
|
||||
ModulePagoda core.M_Modules = "pagoda" //魔塔模块
|
||||
ModuleMartialhall core.M_Modules = "martialhall" //武馆模块
|
||||
)
|
||||
|
||||
//数据表名定义处
|
||||
|
29
modules/martialhall/api.go
Normal file
29
modules/martialhall/api.go
Normal file
@ -0,0 +1,29 @@
|
||||
package martialhall
|
||||
|
||||
import (
|
||||
"go_dreamfactory/modules"
|
||||
|
||||
"go_dreamfactory/lego/core"
|
||||
)
|
||||
|
||||
/*
|
||||
API
|
||||
*/
|
||||
type apiComp struct {
|
||||
modules.MCompGate
|
||||
service core.IService
|
||||
module *Chat
|
||||
}
|
||||
|
||||
//组件初始化接口
|
||||
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.(*Chat)
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
||||
func (this *apiComp) Start() (err error) {
|
||||
err = this.MCompGate.Start()
|
||||
return
|
||||
}
|
23
modules/martialhall/configure.go
Normal file
23
modules/martialhall/configure.go
Normal file
@ -0,0 +1,23 @@
|
||||
package martialhall
|
||||
|
||||
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.ModuleCompBase.Init(service, module, comp, options)
|
||||
|
||||
return
|
||||
}
|
49
modules/martialhall/module.go
Normal file
49
modules/martialhall/module.go
Normal file
@ -0,0 +1,49 @@
|
||||
package martialhall
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/lego/base"
|
||||
"go_dreamfactory/lego/core"
|
||||
"go_dreamfactory/modules"
|
||||
)
|
||||
|
||||
/*
|
||||
模块名:武馆
|
||||
描述:练功房相关业务
|
||||
开发:李伟
|
||||
*/
|
||||
func NewModule() core.IModule {
|
||||
m := new(Chat)
|
||||
return m
|
||||
}
|
||||
|
||||
type Chat struct {
|
||||
modules.ModuleBase
|
||||
service base.IRPCXService //rpc服务对象 通过这个对象可以发布服务和调用其他服务的接口
|
||||
api_comp *apiComp
|
||||
configure *configureComp
|
||||
}
|
||||
|
||||
//模块名
|
||||
func (this *Chat) GetType() core.M_Modules {
|
||||
return comm.ModuleChat
|
||||
}
|
||||
|
||||
//模块初始化接口 注册用户创建角色事件
|
||||
func (this *Chat) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
||||
func (this *Chat) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
return
|
||||
}
|
||||
|
||||
//装备组件
|
||||
func (this *Chat) OnInstallComp() {
|
||||
this.ModuleBase.OnInstallComp()
|
||||
this.api_comp = this.RegisterComp(new(apiComp)).(*apiComp)
|
||||
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
||||
}
|
62
pb/martialhall_db.pb.go
Normal file
62
pb/martialhall_db.pb.go
Normal file
@ -0,0 +1,62 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.20.0
|
||||
// source: martialhall/martialhall_db.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
)
|
||||
|
||||
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_martialhall_martialhall_db_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_martialhall_martialhall_db_proto_rawDesc = []byte{
|
||||
0x0a, 0x20, 0x6d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x2f, 0x6d, 0x61,
|
||||
0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x33,
|
||||
}
|
||||
|
||||
var file_martialhall_martialhall_db_proto_goTypes = []interface{}{}
|
||||
var file_martialhall_martialhall_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_martialhall_martialhall_db_proto_init() }
|
||||
func file_martialhall_martialhall_db_proto_init() {
|
||||
if File_martialhall_martialhall_db_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_martialhall_martialhall_db_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 0,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_martialhall_martialhall_db_proto_goTypes,
|
||||
DependencyIndexes: file_martialhall_martialhall_db_proto_depIdxs,
|
||||
}.Build()
|
||||
File_martialhall_martialhall_db_proto = out.File
|
||||
file_martialhall_martialhall_db_proto_rawDesc = nil
|
||||
file_martialhall_martialhall_db_proto_goTypes = nil
|
||||
file_martialhall_martialhall_db_proto_depIdxs = nil
|
||||
}
|
616
pb/martialhall_msg.pb.go
Normal file
616
pb/martialhall_msg.pb.go
Normal file
@ -0,0 +1,616 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.20.0
|
||||
// source: martialhall/martialhall_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 MartialhallIntoReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *MartialhallIntoReq) Reset() {
|
||||
*x = MartialhallIntoReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_martialhall_martialhall_msg_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MartialhallIntoReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MartialhallIntoReq) ProtoMessage() {}
|
||||
|
||||
func (x *MartialhallIntoReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_martialhall_martialhall_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 MartialhallIntoReq.ProtoReflect.Descriptor instead.
|
||||
func (*MartialhallIntoReq) Descriptor() ([]byte, []int) {
|
||||
return file_martialhall_martialhall_msg_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
///武馆进入请求 回应
|
||||
type MartialhallIntoResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *MartialhallIntoResp) Reset() {
|
||||
*x = MartialhallIntoResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_martialhall_martialhall_msg_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MartialhallIntoResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MartialhallIntoResp) ProtoMessage() {}
|
||||
|
||||
func (x *MartialhallIntoResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_martialhall_martialhall_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 MartialhallIntoResp.ProtoReflect.Descriptor instead.
|
||||
func (*MartialhallIntoResp) Descriptor() ([]byte, []int) {
|
||||
return file_martialhall_martialhall_msg_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
///用户进入武馆推送
|
||||
type MartialhallUserIntoPush struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *MartialhallUserIntoPush) Reset() {
|
||||
*x = MartialhallUserIntoPush{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_martialhall_martialhall_msg_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MartialhallUserIntoPush) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MartialhallUserIntoPush) ProtoMessage() {}
|
||||
|
||||
func (x *MartialhallUserIntoPush) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_martialhall_martialhall_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 MartialhallUserIntoPush.ProtoReflect.Descriptor instead.
|
||||
func (*MartialhallUserIntoPush) Descriptor() ([]byte, []int) {
|
||||
return file_martialhall_martialhall_msg_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
///用户离开武馆推送
|
||||
type MartialhallUserLeavePush struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *MartialhallUserLeavePush) Reset() {
|
||||
*x = MartialhallUserLeavePush{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_martialhall_martialhall_msg_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MartialhallUserLeavePush) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MartialhallUserLeavePush) ProtoMessage() {}
|
||||
|
||||
func (x *MartialhallUserLeavePush) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_martialhall_martialhall_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 MartialhallUserLeavePush.ProtoReflect.Descriptor instead.
|
||||
func (*MartialhallUserLeavePush) Descriptor() ([]byte, []int) {
|
||||
return file_martialhall_martialhall_msg_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
///练功请求
|
||||
type MartialhallPracticeReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *MartialhallPracticeReq) Reset() {
|
||||
*x = MartialhallPracticeReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_martialhall_martialhall_msg_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MartialhallPracticeReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MartialhallPracticeReq) ProtoMessage() {}
|
||||
|
||||
func (x *MartialhallPracticeReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_martialhall_martialhall_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 MartialhallPracticeReq.ProtoReflect.Descriptor instead.
|
||||
func (*MartialhallPracticeReq) Descriptor() ([]byte, []int) {
|
||||
return file_martialhall_martialhall_msg_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
///练功请求 回应
|
||||
type MartialhallPracticeResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *MartialhallPracticeResp) Reset() {
|
||||
*x = MartialhallPracticeResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_martialhall_martialhall_msg_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MartialhallPracticeResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MartialhallPracticeResp) ProtoMessage() {}
|
||||
|
||||
func (x *MartialhallPracticeResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_martialhall_martialhall_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 MartialhallPracticeResp.ProtoReflect.Descriptor instead.
|
||||
func (*MartialhallPracticeResp) Descriptor() ([]byte, []int) {
|
||||
return file_martialhall_martialhall_msg_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
///领取 请求
|
||||
type MartialhallReceiveReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *MartialhallReceiveReq) Reset() {
|
||||
*x = MartialhallReceiveReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_martialhall_martialhall_msg_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MartialhallReceiveReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MartialhallReceiveReq) ProtoMessage() {}
|
||||
|
||||
func (x *MartialhallReceiveReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_martialhall_martialhall_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 MartialhallReceiveReq.ProtoReflect.Descriptor instead.
|
||||
func (*MartialhallReceiveReq) Descriptor() ([]byte, []int) {
|
||||
return file_martialhall_martialhall_msg_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
///领取 回应
|
||||
type MartialhallReceiveResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *MartialhallReceiveResp) Reset() {
|
||||
*x = MartialhallReceiveResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_martialhall_martialhall_msg_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MartialhallReceiveResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MartialhallReceiveResp) ProtoMessage() {}
|
||||
|
||||
func (x *MartialhallReceiveResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_martialhall_martialhall_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 MartialhallReceiveResp.ProtoReflect.Descriptor instead.
|
||||
func (*MartialhallReceiveResp) Descriptor() ([]byte, []int) {
|
||||
return file_martialhall_martialhall_msg_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
///升级 请求
|
||||
type MartialhallUpgradeReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *MartialhallUpgradeReq) Reset() {
|
||||
*x = MartialhallUpgradeReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_martialhall_martialhall_msg_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MartialhallUpgradeReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MartialhallUpgradeReq) ProtoMessage() {}
|
||||
|
||||
func (x *MartialhallUpgradeReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_martialhall_martialhall_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 MartialhallUpgradeReq.ProtoReflect.Descriptor instead.
|
||||
func (*MartialhallUpgradeReq) Descriptor() ([]byte, []int) {
|
||||
return file_martialhall_martialhall_msg_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
///升级 请求回应
|
||||
type MartialhallUpgradeResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *MartialhallUpgradeResp) Reset() {
|
||||
*x = MartialhallUpgradeResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_martialhall_martialhall_msg_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MartialhallUpgradeResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MartialhallUpgradeResp) ProtoMessage() {}
|
||||
|
||||
func (x *MartialhallUpgradeResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_martialhall_martialhall_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 MartialhallUpgradeResp.ProtoReflect.Descriptor instead.
|
||||
func (*MartialhallUpgradeResp) Descriptor() ([]byte, []int) {
|
||||
return file_martialhall_martialhall_msg_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
var File_martialhall_martialhall_msg_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_martialhall_martialhall_msg_proto_rawDesc = []byte{
|
||||
0x0a, 0x21, 0x6d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x2f, 0x6d, 0x61,
|
||||
0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61,
|
||||
0x6c, 0x6c, 0x49, 0x6e, 0x74, 0x6f, 0x52, 0x65, 0x71, 0x22, 0x15, 0x0a, 0x13, 0x4d, 0x61, 0x72,
|
||||
0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x49, 0x6e, 0x74, 0x6f, 0x52, 0x65, 0x73, 0x70,
|
||||
0x22, 0x19, 0x0a, 0x17, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x55,
|
||||
0x73, 0x65, 0x72, 0x49, 0x6e, 0x74, 0x6f, 0x50, 0x75, 0x73, 0x68, 0x22, 0x1a, 0x0a, 0x18, 0x4d,
|
||||
0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x65,
|
||||
0x61, 0x76, 0x65, 0x50, 0x75, 0x73, 0x68, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x61, 0x72, 0x74, 0x69,
|
||||
0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x52, 0x65,
|
||||
0x71, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c,
|
||||
0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x17, 0x0a, 0x15,
|
||||
0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x63, 0x65, 0x69,
|
||||
0x76, 0x65, 0x52, 0x65, 0x71, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c,
|
||||
0x68, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22,
|
||||
0x17, 0x0a, 0x15, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x55, 0x70,
|
||||
0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x61, 0x72, 0x74,
|
||||
0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65,
|
||||
0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_martialhall_martialhall_msg_proto_rawDescOnce sync.Once
|
||||
file_martialhall_martialhall_msg_proto_rawDescData = file_martialhall_martialhall_msg_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_martialhall_martialhall_msg_proto_rawDescGZIP() []byte {
|
||||
file_martialhall_martialhall_msg_proto_rawDescOnce.Do(func() {
|
||||
file_martialhall_martialhall_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_martialhall_martialhall_msg_proto_rawDescData)
|
||||
})
|
||||
return file_martialhall_martialhall_msg_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_martialhall_martialhall_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||
var file_martialhall_martialhall_msg_proto_goTypes = []interface{}{
|
||||
(*MartialhallIntoReq)(nil), // 0: MartialhallIntoReq
|
||||
(*MartialhallIntoResp)(nil), // 1: MartialhallIntoResp
|
||||
(*MartialhallUserIntoPush)(nil), // 2: MartialhallUserIntoPush
|
||||
(*MartialhallUserLeavePush)(nil), // 3: MartialhallUserLeavePush
|
||||
(*MartialhallPracticeReq)(nil), // 4: MartialhallPracticeReq
|
||||
(*MartialhallPracticeResp)(nil), // 5: MartialhallPracticeResp
|
||||
(*MartialhallReceiveReq)(nil), // 6: MartialhallReceiveReq
|
||||
(*MartialhallReceiveResp)(nil), // 7: MartialhallReceiveResp
|
||||
(*MartialhallUpgradeReq)(nil), // 8: MartialhallUpgradeReq
|
||||
(*MartialhallUpgradeResp)(nil), // 9: MartialhallUpgradeResp
|
||||
}
|
||||
var file_martialhall_martialhall_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_martialhall_martialhall_msg_proto_init() }
|
||||
func file_martialhall_martialhall_msg_proto_init() {
|
||||
if File_martialhall_martialhall_msg_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_martialhall_martialhall_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MartialhallIntoReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_martialhall_martialhall_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MartialhallIntoResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_martialhall_martialhall_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MartialhallUserIntoPush); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_martialhall_martialhall_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MartialhallUserLeavePush); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_martialhall_martialhall_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MartialhallPracticeReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_martialhall_martialhall_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MartialhallPracticeResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_martialhall_martialhall_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MartialhallReceiveReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_martialhall_martialhall_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MartialhallReceiveResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_martialhall_martialhall_msg_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MartialhallUpgradeReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_martialhall_martialhall_msg_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MartialhallUpgradeResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_martialhall_martialhall_msg_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 10,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_martialhall_martialhall_msg_proto_goTypes,
|
||||
DependencyIndexes: file_martialhall_martialhall_msg_proto_depIdxs,
|
||||
MessageInfos: file_martialhall_martialhall_msg_proto_msgTypes,
|
||||
}.Build()
|
||||
File_martialhall_martialhall_msg_proto = out.File
|
||||
file_martialhall_martialhall_msg_proto_rawDesc = nil
|
||||
file_martialhall_martialhall_msg_proto_goTypes = nil
|
||||
file_martialhall_martialhall_msg_proto_depIdxs = nil
|
||||
}
|
Loading…
Reference in New Issue
Block a user