主线关卡

This commit is contained in:
meixiongfeng 2022-07-05 18:47:01 +08:00
parent e071cf0d44
commit 469f2274c6
24 changed files with 286692 additions and 0 deletions

File diff suppressed because it is too large Load Diff

93991
bin/json/game_storyeasy.json Normal file

File diff suppressed because it is too large Load Diff

93991
bin/json/game_storyhard.json Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -41,6 +41,7 @@ const (
ModuleItems core.M_Modules = "items" //道具模块
ModuleShop core.M_Modules = "shop" //商店模块
ModuleTask core.M_Modules = "task" //任务模块
ModuleStory core.M_Modules = "story" //主线模块
)
//RPC服务接口定义处

30
modules/story/api.go Normal file
View File

@ -0,0 +1,30 @@
package story
import (
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
)
const (
StoryGetListResp = "getlist"
)
type apiComp struct {
modules.MCompGate
service core.IService
module *Story
}
//组件初始化接口
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
err = this.MCompGate.Init(service, module, comp, options)
this.module = module.(*Story)
this.service = service
return
}
func (this *apiComp) Start() (err error) {
err = this.MCompGate.Start()
return
}

View File

@ -0,0 +1,25 @@
package story
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
"google.golang.org/protobuf/proto"
)
//参数校验
func (this *apiComp) GetlistCheck(session comm.IUserSession, req *pb.StoryGetListReq) (code pb.ErrorCode) {
return
}
///获取用户道具
func (this *apiComp) Getlist(session comm.IUserSession, req *pb.StoryGetListReq) (code pb.ErrorCode, data proto.Message) {
defer func() {
session.SendMsg(string(this.module.GetType()), StoryGetListResp, &pb.StoryGetListResp{})
}()
return
}

View File

@ -0,0 +1,138 @@
package story
import (
"go_dreamfactory/lego/core"
"go_dreamfactory/lego/core/cbase"
"go_dreamfactory/lego/sys/log"
"go_dreamfactory/sys/configure"
cfg "go_dreamfactory/sys/configure/structs"
)
const (
game_storychapter = "game_storychapter.json"
game_storyeasy = "game_storyeasy.json"
game_storyhard = "game_storyhard.json"
game_storypurgatory = "game_storypurgatory.json"
)
///配置管理基础组件
type MCompConfigure struct {
cbase.ModuleCompBase
}
//组件初始化接口
func (this *MCompConfigure) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
err = this.ModuleCompBase.Init(service, module, comp, options)
err = this.LoadMultiConfigure(map[string]interface{}{
game_storychapter: cfg.NewGame_storyChapter,
game_storyeasy: cfg.NewGame_storyEasy,
game_storyhard: cfg.NewGame_storyHard,
game_storypurgatory: cfg.NewGame_storyPurgatory,
})
return
}
//加载多个配置文件
func (this *MCompConfigure) LoadMultiConfigure(confs map[string]interface{}) (err error) {
for k, v := range confs {
err = configure.RegisterConfigure(k, v)
if err != nil {
log.Errorf("配置文件:%s解析失败!", k)
break
}
}
return
}
//读取配置数据
func (this *MCompConfigure) GetConfigure(name string) (v interface{}, err error) {
return configure.GetConfigure(name)
}
func (this *MCompConfigure) GetStoryChapter(id int32) (data *cfg.Game_storyChapterData) {
if v, err := this.GetConfigure(game_storychapter); err != nil {
log.Errorf("get global conf err:%v", err)
return
} else {
var (
configure *cfg.Game_storyChapter
ok bool
)
if configure, ok = v.(*cfg.Game_storyChapter); !ok {
log.Errorf("%T no is *cfg.Game_global", v)
return
}
if data, ok = configure.GetDataMap()[id]; ok {
return
}
}
return
}
// 获取简单的关卡配置信息
func (this *MCompConfigure) GetStoryEasyChapter(id int32) (data *cfg.Game_storyEasyData) {
if v, err := this.GetConfigure(game_storyeasy); err != nil {
log.Errorf("get global conf err:%v", err)
return
} else {
var (
configure *cfg.Game_storyEasy
ok bool
)
if configure, ok = v.(*cfg.Game_storyEasy); !ok {
log.Errorf("%T no is *cfg.Game_global", v)
return
}
if data, ok = configure.GetDataMap()[id]; ok {
return
}
}
return
}
// 获取炼狱级别难度的关卡配置
func (this *MCompConfigure) GetStoryPurgatoryChapter(id int32) (data *cfg.Game_storyPurgatoryData) {
if v, err := this.GetConfigure(game_storypurgatory); err != nil {
log.Errorf("get global conf err:%v", err)
return
} else {
var (
configure *cfg.Game_storyPurgatory
ok bool
)
if configure, ok = v.(*cfg.Game_storyPurgatory); !ok {
log.Errorf("%T no is *cfg.Game_global", v)
return
}
if data, ok = configure.GetDataMap()[id]; ok {
return
}
}
return
}
// 获取困难的关卡配置
func (this *MCompConfigure) GetStoryHardChapter(id int32) (data *cfg.Game_storyHardData) {
if v, err := this.GetConfigure(game_storyhard); err != nil {
log.Errorf("get global conf err:%v", err)
return
} else {
var (
configure *cfg.Game_storyHard
ok bool
)
if configure, ok = v.(*cfg.Game_storyHard); !ok {
log.Errorf("%T no is *cfg.Game_global", v)
return
}
if data, ok = configure.GetDataMap()[id]; ok {
return
}
}
return
}

View File

@ -0,0 +1,20 @@
package story
import (
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
)
const ( //Redis
TableStory core.SqlTable = "story"
)
type ModelStory struct {
modules.MCompModel
}
func (this *ModelStory) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
err = this.MCompModel.Init(service, module, comp, options)
this.TableName = string(TableStory)
return
}

33
modules/story/module.go Normal file
View File

@ -0,0 +1,33 @@
package story
import (
"go_dreamfactory/comm"
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
)
type Story struct {
modules.ModuleBase
modelStory *ModelStory
api *apiComp
}
func NewModule() core.IModule {
return &Story{}
}
func (this *Story) GetType() core.M_Modules {
return comm.ModuleStory
}
func (this *Story) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
err = this.ModuleBase.Init(service, module, options)
return
}
func (this *Story) OnInstallComp() {
this.ModuleBase.OnInstallComp()
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
this.modelStory = this.RegisterComp(new(ModelStory)).(*ModelStory)
}

1
pb.bat
View File

@ -16,4 +16,5 @@ protoc --proto_path=%SRC% --go_out=%TAR% --go_opt=paths=import %SRC%\mail\*.pro
protoc --proto_path=%SRC% --go_out=%TAR% --go_opt=paths=import %SRC%\equipment\*.proto
protoc --proto_path=%SRC% --go_out=%TAR% --go_opt=paths=import %SRC%\hero\*.proto
protoc --proto_path=%SRC% --go_out=%TAR% --go_opt=paths=import %SRC%\shop\*.proto
protoc --proto_path=%SRC% --go_out=%TAR% --go_opt=paths=import %SRC%\story\*.proto
pause

View File

@ -0,0 +1,12 @@
syntax = "proto3";
option go_package = ".;pb";
message DBStory {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
string uuid = 3; //@go_tags(`bson:"uuid"`) uuid
int32 storyId = 4; //@go_tags(`bson:"storyId"`) 线ID
int32 intensity = 5; //@go_tags(`bson:"intensity"`)
int32 awaredID = 6; //@go_tags(`bson:"awaredID"`) ID
int32 progress = 7; // @go_tags(`bson:"progress"`)
}

View File

@ -0,0 +1,10 @@
syntax = "proto3";
option go_package = ".;pb";
import "story/story_db.proto";
//
message StoryGetListReq {
}
//
message StoryGetListResp { DBStory data = 1; }

198
pb/story_db.pb.go Normal file
View File

@ -0,0 +1,198 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.0
// source: story/story_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 DBStory struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid" bson:"uid"` //用户ID
Uuid string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid" bson:"uuid"` //玩家唯一uuid
StoryId int32 `protobuf:"varint,4,opt,name=storyId,proto3" json:"storyId" bson:"storyId"` //主线关卡ID
Intensity int32 `protobuf:"varint,5,opt,name=intensity,proto3" json:"intensity" bson:"intensity"` //难度类型
AwaredID int32 `protobuf:"varint,6,opt,name=awaredID,proto3" json:"awaredID" bson:"awaredID"` //领奖ID
Progress int32 `protobuf:"varint,7,opt,name=progress,proto3" json:"progress" bson:"progress"` // 通关进度
}
func (x *DBStory) Reset() {
*x = DBStory{}
if protoimpl.UnsafeEnabled {
mi := &file_story_story_db_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DBStory) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DBStory) ProtoMessage() {}
func (x *DBStory) ProtoReflect() protoreflect.Message {
mi := &file_story_story_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 DBStory.ProtoReflect.Descriptor instead.
func (*DBStory) Descriptor() ([]byte, []int) {
return file_story_story_db_proto_rawDescGZIP(), []int{0}
}
func (x *DBStory) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DBStory) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *DBStory) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *DBStory) GetStoryId() int32 {
if x != nil {
return x.StoryId
}
return 0
}
func (x *DBStory) GetIntensity() int32 {
if x != nil {
return x.Intensity
}
return 0
}
func (x *DBStory) GetAwaredID() int32 {
if x != nil {
return x.AwaredID
}
return 0
}
func (x *DBStory) GetProgress() int32 {
if x != nil {
return x.Progress
}
return 0
}
var File_story_story_db_proto protoreflect.FileDescriptor
var file_story_story_db_proto_rawDesc = []byte{
0x0a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x64, 0x62,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x01, 0x0a, 0x07, 0x44, 0x42, 0x53, 0x74, 0x6f,
0x72, 0x79, 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, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x6f, 0x72,
0x79, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x79,
0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x79, 0x18,
0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x79,
0x12, 0x1a, 0x0a, 0x08, 0x61, 0x77, 0x61, 0x72, 0x65, 0x64, 0x49, 0x44, 0x18, 0x06, 0x20, 0x01,
0x28, 0x05, 0x52, 0x08, 0x61, 0x77, 0x61, 0x72, 0x65, 0x64, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08,
0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08,
0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_story_story_db_proto_rawDescOnce sync.Once
file_story_story_db_proto_rawDescData = file_story_story_db_proto_rawDesc
)
func file_story_story_db_proto_rawDescGZIP() []byte {
file_story_story_db_proto_rawDescOnce.Do(func() {
file_story_story_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_story_story_db_proto_rawDescData)
})
return file_story_story_db_proto_rawDescData
}
var file_story_story_db_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_story_story_db_proto_goTypes = []interface{}{
(*DBStory)(nil), // 0: DBStory
}
var file_story_story_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_story_story_db_proto_init() }
func file_story_story_db_proto_init() {
if File_story_story_db_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_story_story_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DBStory); 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_story_story_db_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_story_story_db_proto_goTypes,
DependencyIndexes: file_story_story_db_proto_depIdxs,
MessageInfos: file_story_story_db_proto_msgTypes,
}.Build()
File_story_story_db_proto = out.File
file_story_story_db_proto_rawDesc = nil
file_story_story_db_proto_goTypes = nil
file_story_story_db_proto_depIdxs = nil
}

201
pb/story_msg.pb.go Normal file
View File

@ -0,0 +1,201 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.0
// source: story/story_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 StoryGetListReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *StoryGetListReq) Reset() {
*x = StoryGetListReq{}
if protoimpl.UnsafeEnabled {
mi := &file_story_story_msg_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StoryGetListReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StoryGetListReq) ProtoMessage() {}
func (x *StoryGetListReq) ProtoReflect() protoreflect.Message {
mi := &file_story_story_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 StoryGetListReq.ProtoReflect.Descriptor instead.
func (*StoryGetListReq) Descriptor() ([]byte, []int) {
return file_story_story_msg_proto_rawDescGZIP(), []int{0}
}
// 返回进度信息
type StoryGetListResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data *DBStory `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
}
func (x *StoryGetListResp) Reset() {
*x = StoryGetListResp{}
if protoimpl.UnsafeEnabled {
mi := &file_story_story_msg_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StoryGetListResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StoryGetListResp) ProtoMessage() {}
func (x *StoryGetListResp) ProtoReflect() protoreflect.Message {
mi := &file_story_story_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 StoryGetListResp.ProtoReflect.Descriptor instead.
func (*StoryGetListResp) Descriptor() ([]byte, []int) {
return file_story_story_msg_proto_rawDescGZIP(), []int{1}
}
func (x *StoryGetListResp) GetData() *DBStory {
if x != nil {
return x.Data
}
return nil
}
var File_story_story_msg_proto protoreflect.FileDescriptor
var file_story_story_msg_proto_rawDesc = []byte{
0x0a, 0x15, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6d, 0x73,
0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x73,
0x74, 0x6f, 0x72, 0x79, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x11, 0x0a,
0x0f, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71,
0x22, 0x30, 0x0a, 0x10, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74,
0x52, 0x65, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x08, 0x2e, 0x44, 0x42, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61,
0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_story_story_msg_proto_rawDescOnce sync.Once
file_story_story_msg_proto_rawDescData = file_story_story_msg_proto_rawDesc
)
func file_story_story_msg_proto_rawDescGZIP() []byte {
file_story_story_msg_proto_rawDescOnce.Do(func() {
file_story_story_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_story_story_msg_proto_rawDescData)
})
return file_story_story_msg_proto_rawDescData
}
var file_story_story_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_story_story_msg_proto_goTypes = []interface{}{
(*StoryGetListReq)(nil), // 0: StoryGetListReq
(*StoryGetListResp)(nil), // 1: StoryGetListResp
(*DBStory)(nil), // 2: DBStory
}
var file_story_story_msg_proto_depIdxs = []int32{
2, // 0: StoryGetListResp.data:type_name -> DBStory
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_story_story_msg_proto_init() }
func file_story_story_msg_proto_init() {
if File_story_story_msg_proto != nil {
return
}
file_story_story_db_proto_init()
if !protoimpl.UnsafeEnabled {
file_story_story_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StoryGetListReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_story_story_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StoryGetListResp); 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_story_story_msg_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_story_story_msg_proto_goTypes,
DependencyIndexes: file_story_story_msg_proto_depIdxs,
MessageInfos: file_story_story_msg_proto_msgTypes,
}.Build()
File_story_story_msg_proto = out.File
file_story_story_msg_proto_rawDesc = nil
file_story_story_msg_proto_goTypes = nil
file_story_story_msg_proto_depIdxs = nil
}

View File

@ -8,6 +8,7 @@ import (
"go_dreamfactory/modules/hero"
"go_dreamfactory/modules/items"
"go_dreamfactory/modules/mail"
"go_dreamfactory/modules/story"
"go_dreamfactory/modules/task"
"go_dreamfactory/modules/user"
"go_dreamfactory/services"
@ -46,6 +47,7 @@ func main() {
hero.NewModule(),
equipment.NewModule(),
task.NewModule(),
story.NewModule(),
)
}

View File

@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
type Game_storyChapter struct {
_dataMap map[int32]*Game_storyChapterData
_dataList []*Game_storyChapterData
}
func NewGame_storyChapter(_buf []map[string]interface{}) (*Game_storyChapter, error) {
_dataList := make([]*Game_storyChapterData, 0, len(_buf))
dataMap := make(map[int32]*Game_storyChapterData)
for _, _ele_ := range _buf {
if _v, err2 := NewGame_storyChapterData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &Game_storyChapter{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *Game_storyChapter) GetDataMap() map[int32]*Game_storyChapterData {
return table._dataMap
}
func (table *Game_storyChapter) GetDataList() []*Game_storyChapterData {
return table._dataList
}
func (table *Game_storyChapter) Get(key int32) *Game_storyChapterData {
return table._dataMap[key]
}

View File

@ -0,0 +1,52 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
import "errors"
type Game_storyChapterData struct {
Id int32
Name string
Intensity string
Map string
Desc string
Icon string
Text string
Fubendata []int32
}
func (Game_storyChapterData) GetTypeId() int {
return -920674338
}
func NewGame_storyChapterData(_buf map[string]interface{}) (_v *Game_storyChapterData, err error) {
_v = &Game_storyChapterData{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
{ var _ok_ bool; if _v.Intensity, _ok_ = _buf["Intensity"].(string); !_ok_ { err = errors.New("Intensity error"); return } }
{ var _ok_ bool; if _v.Map, _ok_ = _buf["map"].(string); !_ok_ { err = errors.New("map error"); return } }
{ var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } }
{ var _ok_ bool; if _v.Icon, _ok_ = _buf["icon"].(string); !_ok_ { err = errors.New("icon error"); return } }
{ var _ok_ bool; if _v.Text, _ok_ = _buf["text"].(string); !_ok_ { err = errors.New("text error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["fubendata"].([]interface{}); !_ok_ { err = errors.New("fubendata error"); return }
_v.Fubendata = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
_v.Fubendata = append(_v.Fubendata, _list_v_)
}
}
return
}

View File

@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
type Game_storyEasy struct {
_dataMap map[int32]*Game_storyEasyData
_dataList []*Game_storyEasyData
}
func NewGame_storyEasy(_buf []map[string]interface{}) (*Game_storyEasy, error) {
_dataList := make([]*Game_storyEasyData, 0, len(_buf))
dataMap := make(map[int32]*Game_storyEasyData)
for _, _ele_ := range _buf {
if _v, err2 := NewGame_storyEasyData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Order] = _v
}
}
return &Game_storyEasy{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *Game_storyEasy) GetDataMap() map[int32]*Game_storyEasyData {
return table._dataMap
}
func (table *Game_storyEasy) GetDataList() []*Game_storyEasyData {
return table._dataList
}
func (table *Game_storyEasy) Get(key int32) *Game_storyEasyData {
return table._dataMap[key]
}

View File

@ -0,0 +1,112 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
import "errors"
type Game_storyEasyData struct {
Order int32
Gqshu int32
Id int32
Nextid int32
Zhangshu int32
Area int32
Fubentype int32
Zuobiao []int32
Model string
Texiao string
Desc string
Armnum int32
Guaiwulv int32
Guaiwuhppro float32
Guaiwuatkpro float32
Guaiwudefpro float32
Guaiwulv1 int32
Guaiwuhppro1 float32
Guaiwuatkpro1 float32
Guaiwudefpro1 float32
Boci1 []int32
Boci2 []int32
Aname string
Zhandouchangjing string
Cjtexiao string
}
func (Game_storyEasyData) GetTypeId() int {
return -1625602587
}
func NewGame_storyEasyData(_buf map[string]interface{}) (_v *Game_storyEasyData, err error) {
_v = &Game_storyEasyData{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["order"].(float64); !_ok_ { err = errors.New("order error"); return }; _v.Order = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["gqshu"].(float64); !_ok_ { err = errors.New("gqshu error"); return }; _v.Gqshu = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["nextid"].(float64); !_ok_ { err = errors.New("nextid error"); return }; _v.Nextid = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["zhangshu"].(float64); !_ok_ { err = errors.New("zhangshu error"); return }; _v.Zhangshu = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["area"].(float64); !_ok_ { err = errors.New("area error"); return }; _v.Area = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["fubentype"].(float64); !_ok_ { err = errors.New("fubentype error"); return }; _v.Fubentype = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["zuobiao"].([]interface{}); !_ok_ { err = errors.New("zuobiao error"); return }
_v.Zuobiao = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
_v.Zuobiao = append(_v.Zuobiao, _list_v_)
}
}
{ var _ok_ bool; if _v.Model, _ok_ = _buf["model"].(string); !_ok_ { err = errors.New("model error"); return } }
{ var _ok_ bool; if _v.Texiao, _ok_ = _buf["texiao"].(string); !_ok_ { err = errors.New("texiao error"); return } }
{ var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["armnum"].(float64); !_ok_ { err = errors.New("armnum error"); return }; _v.Armnum = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwulv"].(float64); !_ok_ { err = errors.New("guaiwulv error"); return }; _v.Guaiwulv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuhppro"].(float64); !_ok_ { err = errors.New("guaiwuhppro error"); return }; _v.Guaiwuhppro = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuatkpro"].(float64); !_ok_ { err = errors.New("guaiwuatkpro error"); return }; _v.Guaiwuatkpro = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwudefpro"].(float64); !_ok_ { err = errors.New("guaiwudefpro error"); return }; _v.Guaiwudefpro = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwulv1"].(float64); !_ok_ { err = errors.New("guaiwulv1 error"); return }; _v.Guaiwulv1 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuhppro1"].(float64); !_ok_ { err = errors.New("guaiwuhppro1 error"); return }; _v.Guaiwuhppro1 = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuatkpro1"].(float64); !_ok_ { err = errors.New("guaiwuatkpro1 error"); return }; _v.Guaiwuatkpro1 = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwudefpro1"].(float64); !_ok_ { err = errors.New("guaiwudefpro1 error"); return }; _v.Guaiwudefpro1 = float32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["boci1"].([]interface{}); !_ok_ { err = errors.New("boci1 error"); return }
_v.Boci1 = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
_v.Boci1 = append(_v.Boci1, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["boci2"].([]interface{}); !_ok_ { err = errors.New("boci2 error"); return }
_v.Boci2 = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
_v.Boci2 = append(_v.Boci2, _list_v_)
}
}
{ var _ok_ bool; if _v.Aname, _ok_ = _buf["aname"].(string); !_ok_ { err = errors.New("aname error"); return } }
{ var _ok_ bool; if _v.Zhandouchangjing, _ok_ = _buf["zhandouchangjing"].(string); !_ok_ { err = errors.New("zhandouchangjing error"); return } }
{ var _ok_ bool; if _v.Cjtexiao, _ok_ = _buf["cjtexiao"].(string); !_ok_ { err = errors.New("cjtexiao error"); return } }
return
}

View File

@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
type Game_storyHard struct {
_dataMap map[int32]*Game_storyHardData
_dataList []*Game_storyHardData
}
func NewGame_storyHard(_buf []map[string]interface{}) (*Game_storyHard, error) {
_dataList := make([]*Game_storyHardData, 0, len(_buf))
dataMap := make(map[int32]*Game_storyHardData)
for _, _ele_ := range _buf {
if _v, err2 := NewGame_storyHardData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Order] = _v
}
}
return &Game_storyHard{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *Game_storyHard) GetDataMap() map[int32]*Game_storyHardData {
return table._dataMap
}
func (table *Game_storyHard) GetDataList() []*Game_storyHardData {
return table._dataList
}
func (table *Game_storyHard) Get(key int32) *Game_storyHardData {
return table._dataMap[key]
}

View File

@ -0,0 +1,112 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
import "errors"
type Game_storyHardData struct {
Order int32
Gqshu int32
Id int32
Nextid int32
Zhangshu int32
Area int32
Fubentype int32
Zuobiao []int32
Model string
Texiao string
Desc string
Armnum int32
Guaiwulv int32
Guaiwuhppro float32
Guaiwuatkpro float32
Guaiwudefpro float32
Guaiwulv1 int32
Guaiwuhppro1 float32
Guaiwuatkpro1 float32
Guaiwudefpro1 float32
Boci1 []int32
Boci2 []int32
Aname string
Zhandouchangjing string
Cjtexiao string
}
func (Game_storyHardData) GetTypeId() int {
return -740161970
}
func NewGame_storyHardData(_buf map[string]interface{}) (_v *Game_storyHardData, err error) {
_v = &Game_storyHardData{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["order"].(float64); !_ok_ { err = errors.New("order error"); return }; _v.Order = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["gqshu"].(float64); !_ok_ { err = errors.New("gqshu error"); return }; _v.Gqshu = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["nextid"].(float64); !_ok_ { err = errors.New("nextid error"); return }; _v.Nextid = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["zhangshu"].(float64); !_ok_ { err = errors.New("zhangshu error"); return }; _v.Zhangshu = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["area"].(float64); !_ok_ { err = errors.New("area error"); return }; _v.Area = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["fubentype"].(float64); !_ok_ { err = errors.New("fubentype error"); return }; _v.Fubentype = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["zuobiao"].([]interface{}); !_ok_ { err = errors.New("zuobiao error"); return }
_v.Zuobiao = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
_v.Zuobiao = append(_v.Zuobiao, _list_v_)
}
}
{ var _ok_ bool; if _v.Model, _ok_ = _buf["model"].(string); !_ok_ { err = errors.New("model error"); return } }
{ var _ok_ bool; if _v.Texiao, _ok_ = _buf["texiao"].(string); !_ok_ { err = errors.New("texiao error"); return } }
{ var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["armnum"].(float64); !_ok_ { err = errors.New("armnum error"); return }; _v.Armnum = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwulv"].(float64); !_ok_ { err = errors.New("guaiwulv error"); return }; _v.Guaiwulv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuhppro"].(float64); !_ok_ { err = errors.New("guaiwuhppro error"); return }; _v.Guaiwuhppro = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuatkpro"].(float64); !_ok_ { err = errors.New("guaiwuatkpro error"); return }; _v.Guaiwuatkpro = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwudefpro"].(float64); !_ok_ { err = errors.New("guaiwudefpro error"); return }; _v.Guaiwudefpro = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwulv1"].(float64); !_ok_ { err = errors.New("guaiwulv1 error"); return }; _v.Guaiwulv1 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuhppro1"].(float64); !_ok_ { err = errors.New("guaiwuhppro1 error"); return }; _v.Guaiwuhppro1 = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuatkpro1"].(float64); !_ok_ { err = errors.New("guaiwuatkpro1 error"); return }; _v.Guaiwuatkpro1 = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwudefpro1"].(float64); !_ok_ { err = errors.New("guaiwudefpro1 error"); return }; _v.Guaiwudefpro1 = float32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["boci1"].([]interface{}); !_ok_ { err = errors.New("boci1 error"); return }
_v.Boci1 = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
_v.Boci1 = append(_v.Boci1, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["boci2"].([]interface{}); !_ok_ { err = errors.New("boci2 error"); return }
_v.Boci2 = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
_v.Boci2 = append(_v.Boci2, _list_v_)
}
}
{ var _ok_ bool; if _v.Aname, _ok_ = _buf["aname"].(string); !_ok_ { err = errors.New("aname error"); return } }
{ var _ok_ bool; if _v.Zhandouchangjing, _ok_ = _buf["zhandouchangjing"].(string); !_ok_ { err = errors.New("zhandouchangjing error"); return } }
{ var _ok_ bool; if _v.Cjtexiao, _ok_ = _buf["cjtexiao"].(string); !_ok_ { err = errors.New("cjtexiao error"); return } }
return
}

View File

@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
type Game_storyPurgatory struct {
_dataMap map[int32]*Game_storyPurgatoryData
_dataList []*Game_storyPurgatoryData
}
func NewGame_storyPurgatory(_buf []map[string]interface{}) (*Game_storyPurgatory, error) {
_dataList := make([]*Game_storyPurgatoryData, 0, len(_buf))
dataMap := make(map[int32]*Game_storyPurgatoryData)
for _, _ele_ := range _buf {
if _v, err2 := NewGame_storyPurgatoryData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Order] = _v
}
}
return &Game_storyPurgatory{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *Game_storyPurgatory) GetDataMap() map[int32]*Game_storyPurgatoryData {
return table._dataMap
}
func (table *Game_storyPurgatory) GetDataList() []*Game_storyPurgatoryData {
return table._dataList
}
func (table *Game_storyPurgatory) Get(key int32) *Game_storyPurgatoryData {
return table._dataMap[key]
}

View File

@ -0,0 +1,112 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
import "errors"
type Game_storyPurgatoryData struct {
Order int32
Gqshu int32
Id int32
Nextid int32
Zhangshu int32
Area int32
Fubentype int32
Zuobiao []int32
Model string
Texiao string
Desc string
Armnum int32
Guaiwulv int32
Guaiwuhppro float32
Guaiwuatkpro float32
Guaiwudefpro float32
Guaiwulv1 int32
Guaiwuhppro1 float32
Guaiwuatkpro1 float32
Guaiwudefpro1 float32
Boci1 []int32
Boci2 []int32
Aname string
Zhandouchangjing string
Cjtexiao string
}
func (Game_storyPurgatoryData) GetTypeId() int {
return -1826304262
}
func NewGame_storyPurgatoryData(_buf map[string]interface{}) (_v *Game_storyPurgatoryData, err error) {
_v = &Game_storyPurgatoryData{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["order"].(float64); !_ok_ { err = errors.New("order error"); return }; _v.Order = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["gqshu"].(float64); !_ok_ { err = errors.New("gqshu error"); return }; _v.Gqshu = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["nextid"].(float64); !_ok_ { err = errors.New("nextid error"); return }; _v.Nextid = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["zhangshu"].(float64); !_ok_ { err = errors.New("zhangshu error"); return }; _v.Zhangshu = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["area"].(float64); !_ok_ { err = errors.New("area error"); return }; _v.Area = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["fubentype"].(float64); !_ok_ { err = errors.New("fubentype error"); return }; _v.Fubentype = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["zuobiao"].([]interface{}); !_ok_ { err = errors.New("zuobiao error"); return }
_v.Zuobiao = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
_v.Zuobiao = append(_v.Zuobiao, _list_v_)
}
}
{ var _ok_ bool; if _v.Model, _ok_ = _buf["model"].(string); !_ok_ { err = errors.New("model error"); return } }
{ var _ok_ bool; if _v.Texiao, _ok_ = _buf["texiao"].(string); !_ok_ { err = errors.New("texiao error"); return } }
{ var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["armnum"].(float64); !_ok_ { err = errors.New("armnum error"); return }; _v.Armnum = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwulv"].(float64); !_ok_ { err = errors.New("guaiwulv error"); return }; _v.Guaiwulv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuhppro"].(float64); !_ok_ { err = errors.New("guaiwuhppro error"); return }; _v.Guaiwuhppro = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuatkpro"].(float64); !_ok_ { err = errors.New("guaiwuatkpro error"); return }; _v.Guaiwuatkpro = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwudefpro"].(float64); !_ok_ { err = errors.New("guaiwudefpro error"); return }; _v.Guaiwudefpro = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwulv1"].(float64); !_ok_ { err = errors.New("guaiwulv1 error"); return }; _v.Guaiwulv1 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuhppro1"].(float64); !_ok_ { err = errors.New("guaiwuhppro1 error"); return }; _v.Guaiwuhppro1 = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuatkpro1"].(float64); !_ok_ { err = errors.New("guaiwuatkpro1 error"); return }; _v.Guaiwuatkpro1 = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwudefpro1"].(float64); !_ok_ { err = errors.New("guaiwudefpro1 error"); return }; _v.Guaiwudefpro1 = float32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["boci1"].([]interface{}); !_ok_ { err = errors.New("boci1 error"); return }
_v.Boci1 = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
_v.Boci1 = append(_v.Boci1, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["boci2"].([]interface{}); !_ok_ { err = errors.New("boci2 error"); return }
_v.Boci2 = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
_v.Boci2 = append(_v.Boci2, _list_v_)
}
}
{ var _ok_ bool; if _v.Aname, _ok_ = _buf["aname"].(string); !_ok_ { err = errors.New("aname error"); return } }
{ var _ok_ bool; if _v.Zhandouchangjing, _ok_ = _buf["zhandouchangjing"].(string); !_ok_ { err = errors.New("zhandouchangjing error"); return } }
{ var _ok_ bool; if _v.Cjtexiao, _ok_ = _buf["cjtexiao"].(string); !_ok_ { err = errors.New("cjtexiao error"); return } }
return
}