上传配置同步

This commit is contained in:
liwei1dao 2022-11-04 09:57:55 +08:00
parent cd2398e67f
commit 2d1f2c5a77
5 changed files with 433 additions and 26 deletions

287
bin/json/game_recharge.json Normal file
View File

@ -0,0 +1,287 @@
[
{
"id": 1,
"editionid": "debug",
"recharge_type": 1,
"monetaryunit": "¥",
"amount": "6",
"vipexp": "vipexp",
"vipexp_num": 60,
"diamond": "diamond",
"diamond_num": 60,
"diamond_num_double": 120,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 2,
"editionid": "debug",
"recharge_type": 1,
"monetaryunit": "¥",
"amount": "30",
"vipexp": "vipexp",
"vipexp_num": 300,
"diamond": "diamond",
"diamond_num": 300,
"diamond_num_double": 600,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 3,
"editionid": "debug",
"recharge_type": 1,
"monetaryunit": "¥",
"amount": "68",
"vipexp": "vipexp",
"vipexp_num": 680,
"diamond": "diamond",
"diamond_num": 680,
"diamond_num_double": 1360,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 4,
"editionid": "debug",
"recharge_type": 1,
"monetaryunit": "¥",
"amount": "98",
"vipexp": "vipexp",
"vipexp_num": 0,
"diamond": "0",
"diamond_num": 0,
"diamond_num_double": 0,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 5,
"editionid": "debug",
"recharge_type": 1,
"monetaryunit": "¥",
"amount": "128",
"vipexp": "vipexp",
"vipexp_num": 0,
"diamond": "0",
"diamond_num": 0,
"diamond_num_double": 0,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 6,
"editionid": "debug",
"recharge_type": 1,
"monetaryunit": "¥",
"amount": "198",
"vipexp": "vipexp",
"vipexp_num": 0,
"diamond": "0",
"diamond_num": 0,
"diamond_num_double": 0,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 7,
"editionid": "debug",
"recharge_type": 1,
"monetaryunit": "¥",
"amount": "328",
"vipexp": "vipexp",
"vipexp_num": 0,
"diamond": "0",
"diamond_num": 0,
"diamond_num_double": 0,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 8,
"editionid": "debug",
"recharge_type": 1,
"monetaryunit": "¥",
"amount": "648",
"vipexp": "vipexp",
"vipexp_num": 0,
"diamond": "0",
"diamond_num": 0,
"diamond_num_double": 0,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 9,
"editionid": "debug",
"recharge_type": 2,
"monetaryunit": "¥",
"amount": "6",
"vipexp": "vipexp",
"vipexp_num": 60,
"diamond": "diamond",
"diamond_num": 60,
"diamond_num_double": 120,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 10,
"editionid": "debug",
"recharge_type": 2,
"monetaryunit": "¥",
"amount": "6",
"vipexp": "vipexp",
"vipexp_num": 60,
"diamond": "diamond",
"diamond_num": 60,
"diamond_num_double": 120,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 11,
"editionid": "debug",
"recharge_type": 2,
"monetaryunit": "¥",
"amount": "6",
"vipexp": "vipexp",
"vipexp_num": 60,
"diamond": "diamond",
"diamond_num": 60,
"diamond_num_double": 120,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 12,
"editionid": "debug",
"recharge_type": 2,
"monetaryunit": "¥",
"amount": "30",
"vipexp": "vipexp",
"vipexp_num": 300,
"diamond": "diamond",
"diamond_num": 300,
"diamond_num_double": 600,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 13,
"editionid": "debug",
"recharge_type": 2,
"monetaryunit": "¥",
"amount": "30",
"vipexp": "vipexp",
"vipexp_num": 300,
"diamond": "diamond",
"diamond_num": 300,
"diamond_num_double": 600,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 14,
"editionid": "debug",
"recharge_type": 2,
"monetaryunit": "¥",
"amount": "30",
"vipexp": "vipexp",
"vipexp_num": 300,
"diamond": "diamond",
"diamond_num": 300,
"diamond_num_double": 600,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 15,
"editionid": "debug",
"recharge_type": 2,
"monetaryunit": "¥",
"amount": "30",
"vipexp": "vipexp",
"vipexp_num": 300,
"diamond": "diamond",
"diamond_num": 300,
"diamond_num_double": 600,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 16,
"editionid": "debug",
"recharge_type": 2,
"monetaryunit": "¥",
"amount": "30",
"vipexp": "vipexp",
"vipexp_num": 300,
"diamond": "diamond",
"diamond_num": 300,
"diamond_num_double": 600,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 17,
"editionid": "debug",
"recharge_type": 2,
"monetaryunit": "¥",
"amount": "128",
"vipexp": "vipexp",
"vipexp_num": 1280,
"diamond": "diamond",
"diamond_num": 1280,
"diamond_num_double": 2560,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 18,
"editionid": "debug",
"recharge_type": 2,
"monetaryunit": "¥",
"amount": "198",
"vipexp": "vipexp",
"vipexp_num": 1980,
"diamond": "diamond",
"diamond_num": 1980,
"diamond_num_double": 3960,
"channel": "0",
"text": "0",
"image": ""
},
{
"id": 19,
"editionid": "debug",
"recharge_type": 2,
"monetaryunit": "¥",
"amount": "328",
"vipexp": "vipexp",
"vipexp_num": 3280,
"diamond": "diamond",
"diamond_num": 3280,
"diamond_num_double": 6560,
"channel": "0",
"text": "0",
"image": ""
}
]

View File

@ -228,6 +228,8 @@ const (
ErrorCode_SociatyAppyLvNoEnough ErrorCode = 30027 //申请等级不满足
ErrorCode_SociatyTaskValidation ErrorCode = 30028 //任务未完成
ErrorCode_SociatyActivityNoEnough ErrorCode = 30029 //活跃度不足
ErrorCode_SociatyAcitvityReceive ErrorCode = 30030 //活跃度领取失败
ErrorCode_SociatyDismissed ErrorCode = 30031 //公会已解散
// arena
ErrorCode_ArenaTicketBuyUp ErrorCode = 3101 //票据上限
ErrorCode_ArenaTicketNotEnough ErrorCode = 3102 //票据不足
@ -437,6 +439,8 @@ var (
30027: "SociatyAppyLvNoEnough",
30028: "SociatyTaskValidation",
30029: "SociatyActivityNoEnough",
30030: "SociatyAcitvityReceive",
30031: "SociatyDismissed",
3101: "ArenaTicketBuyUp",
3102: "ArenaTicketNotEnough",
3103: "ArenaTicketNpcInCd",
@ -639,6 +643,8 @@ var (
"SociatyAppyLvNoEnough": 30027,
"SociatyTaskValidation": 30028,
"SociatyActivityNoEnough": 30029,
"SociatyAcitvityReceive": 30030,
"SociatyDismissed": 30031,
"ArenaTicketBuyUp": 3101,
"ArenaTicketNotEnough": 3102,
"ArenaTicketNpcInCd": 3103,
@ -687,7 +693,7 @@ var File_errorcode_proto protoreflect.FileDescriptor
var file_errorcode_proto_rawDesc = []byte{
0x0a, 0x0f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2a, 0xa2, 0x23, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12,
0x6f, 0x2a, 0xd8, 0x23, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12,
0x0b, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d,
0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x10, 0x0a, 0x12,
0x1b, 0x0a, 0x17, 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
@ -948,29 +954,32 @@ var file_errorcode_proto_rawDesc = []byte{
0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x56, 0x61, 0x6c, 0x69, 0x64,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0xcc, 0xea, 0x01, 0x12, 0x1d, 0x0a, 0x17, 0x53, 0x6f, 0x63,
0x69, 0x61, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x45, 0x6e,
0x6f, 0x75, 0x67, 0x68, 0x10, 0xcd, 0xea, 0x01, 0x12, 0x15, 0x0a, 0x10, 0x41, 0x72, 0x65, 0x6e,
0x61, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x75, 0x79, 0x55, 0x70, 0x10, 0x9d, 0x18, 0x12,
0x19, 0x0a, 0x14, 0x41, 0x72, 0x65, 0x6e, 0x61, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x6f,
0x74, 0x45, 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x10, 0x9e, 0x18, 0x12, 0x17, 0x0a, 0x12, 0x41, 0x72,
0x65, 0x6e, 0x61, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x70, 0x63, 0x49, 0x6e, 0x43, 0x64,
0x10, 0x9f, 0x18, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x70,
0x65, 0x61, 0x74, 0x4c, 0x65, 0x61, 0x72, 0x6e, 0x10, 0x81, 0x19, 0x12, 0x12, 0x0a, 0x0d, 0x54,
0x61, 0x6c, 0x65, 0x6e, 0x74, 0x45, 0x72, 0x72, 0x44, 0x61, 0x74, 0x61, 0x10, 0x82, 0x19, 0x12,
0x19, 0x0a, 0x14, 0x54, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x55, 0x6e, 0x4c, 0x6f, 0x63, 0x6b, 0x65,
0x72, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x10, 0x83, 0x19, 0x12, 0x15, 0x0a, 0x10, 0x54, 0x61,
0x6c, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x10, 0x84,
0x19, 0x12, 0x10, 0x0a, 0x0b, 0x54, 0x72, 0x6f, 0x6c, 0x6c, 0x42, 0x75, 0x79, 0x4d, 0x61, 0x78,
0x10, 0xe5, 0x19, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x72, 0x6f, 0x6c, 0x6c, 0x53, 0x65, 0x6c, 0x6c,
0x4d, 0x61, 0x78, 0x10, 0xe6, 0x19, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x72, 0x6f, 0x6c, 0x6c, 0x4d,
0x61, 0x78, 0x53, 0x65, 0x6c, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x10, 0xe7, 0x19, 0x12, 0x16,
0x0a, 0x11, 0x54, 0x72, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x78, 0x49, 0x74, 0x65, 0x6d, 0x43, 0x6f,
0x75, 0x6e, 0x74, 0x10, 0xe8, 0x19, 0x12, 0x18, 0x0a, 0x13, 0x54, 0x72, 0x6f, 0x6c, 0x6c, 0x52,
0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x10, 0xe9, 0x19,
0x12, 0x19, 0x0a, 0x14, 0x48, 0x6f, 0x72, 0x6f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x4e, 0x6f, 0x74,
0x54, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x4f, 0x6e, 0x10, 0xc9, 0x1a, 0x12, 0x19, 0x0a, 0x14, 0x48,
0x6f, 0x72, 0x6f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x65, 0x73, 0x74, 0x43, 0x44, 0x4e, 0x6f,
0x45, 0x6e, 0x64, 0x10, 0xca, 0x1a, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x6f, 0x75, 0x67, 0x68, 0x10, 0xcd, 0xea, 0x01, 0x12, 0x1c, 0x0a, 0x16, 0x53, 0x6f, 0x63, 0x69,
0x61, 0x74, 0x79, 0x41, 0x63, 0x69, 0x74, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69,
0x76, 0x65, 0x10, 0xce, 0xea, 0x01, 0x12, 0x16, 0x0a, 0x10, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74,
0x79, 0x44, 0x69, 0x73, 0x6d, 0x69, 0x73, 0x73, 0x65, 0x64, 0x10, 0xcf, 0xea, 0x01, 0x12, 0x15,
0x0a, 0x10, 0x41, 0x72, 0x65, 0x6e, 0x61, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x75, 0x79,
0x55, 0x70, 0x10, 0x9d, 0x18, 0x12, 0x19, 0x0a, 0x14, 0x41, 0x72, 0x65, 0x6e, 0x61, 0x54, 0x69,
0x63, 0x6b, 0x65, 0x74, 0x4e, 0x6f, 0x74, 0x45, 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x10, 0x9e, 0x18,
0x12, 0x17, 0x0a, 0x12, 0x41, 0x72, 0x65, 0x6e, 0x61, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4e,
0x70, 0x63, 0x49, 0x6e, 0x43, 0x64, 0x10, 0x9f, 0x18, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x61, 0x6c,
0x65, 0x6e, 0x74, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x4c, 0x65, 0x61, 0x72, 0x6e, 0x10, 0x81,
0x19, 0x12, 0x12, 0x0a, 0x0d, 0x54, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x45, 0x72, 0x72, 0x44, 0x61,
0x74, 0x61, 0x10, 0x82, 0x19, 0x12, 0x19, 0x0a, 0x14, 0x54, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x55,
0x6e, 0x4c, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x10, 0x83, 0x19,
0x12, 0x15, 0x0a, 0x10, 0x54, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53,
0x74, 0x61, 0x74, 0x65, 0x10, 0x84, 0x19, 0x12, 0x10, 0x0a, 0x0b, 0x54, 0x72, 0x6f, 0x6c, 0x6c,
0x42, 0x75, 0x79, 0x4d, 0x61, 0x78, 0x10, 0xe5, 0x19, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x72, 0x6f,
0x6c, 0x6c, 0x53, 0x65, 0x6c, 0x6c, 0x4d, 0x61, 0x78, 0x10, 0xe6, 0x19, 0x12, 0x16, 0x0a, 0x11,
0x54, 0x72, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x78, 0x53, 0x65, 0x6c, 0x6c, 0x43, 0x6f, 0x75, 0x6e,
0x74, 0x10, 0xe7, 0x19, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x72, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x78,
0x49, 0x74, 0x65, 0x6d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x10, 0xe8, 0x19, 0x12, 0x18, 0x0a, 0x13,
0x54, 0x72, 0x6f, 0x6c, 0x6c, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x77,
0x61, 0x72, 0x64, 0x10, 0xe9, 0x19, 0x12, 0x19, 0x0a, 0x14, 0x48, 0x6f, 0x72, 0x6f, 0x73, 0x63,
0x6f, 0x70, 0x65, 0x4e, 0x6f, 0x74, 0x54, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x4f, 0x6e, 0x10, 0xc9,
0x1a, 0x12, 0x19, 0x0a, 0x14, 0x48, 0x6f, 0x72, 0x6f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x65,
0x73, 0x74, 0x43, 0x44, 0x4e, 0x6f, 0x45, 0x6e, 0x64, 0x10, 0xca, 0x1a, 0x42, 0x06, 0x5a, 0x04,
0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (

View File

@ -34,6 +34,7 @@ type DBMailData struct {
Check bool `protobuf:"varint,7,opt,name=Check,proto3" json:"Check"` // 是否查看
Reward bool `protobuf:"varint,8,opt,name=Reward,proto3" json:"Reward"` // 附件领取状态
Items []*UserAssets `protobuf:"bytes,9,rep,name=Items,proto3" json:"Items"` // 附件
Cid string `protobuf:"bytes,10,opt,name=Cid,proto3" json:"Cid"` // 邮件的配置表ID
}
func (x *DBMailData) Reset() {
@ -131,12 +132,19 @@ func (x *DBMailData) GetItems() []*UserAssets {
return nil
}
func (x *DBMailData) GetCid() string {
if x != nil {
return x.Cid
}
return ""
}
var File_mail_mail_db_proto protoreflect.FileDescriptor
var file_mail_mail_db_proto_rawDesc = []byte{
0x0a, 0x12, 0x6d, 0x61, 0x69, 0x6c, 0x2f, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x64, 0x62, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0xed, 0x01, 0x0a, 0x0a, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12,
0x22, 0xff, 0x01, 0x0a, 0x0a, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12,
0x14, 0x0a, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x4f, 0x62, 0x6a, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x03, 0x55, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65,
@ -151,7 +159,9 @@ var file_mail_mail_db_proto_rawDesc = []byte{
0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x21, 0x0a,
0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55,
0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73,
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x12, 0x10, 0x0a, 0x03, 0x43, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x43,
0x69, 0x64, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (

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 GameRecharge struct {
_dataMap map[int32]*GameRechargeData
_dataList []*GameRechargeData
}
func NewGameRecharge(_buf []map[string]interface{}) (*GameRecharge, error) {
_dataList := make([]*GameRechargeData, 0, len(_buf))
dataMap := make(map[int32]*GameRechargeData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameRechargeData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &GameRecharge{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameRecharge) GetDataMap() map[int32]*GameRechargeData {
return table._dataMap
}
func (table *GameRecharge) GetDataList() []*GameRechargeData {
return table._dataList
}
func (table *GameRecharge) Get(key int32) *GameRechargeData {
return table._dataMap[key]
}

View File

@ -0,0 +1,59 @@
//------------------------------------------------------------------------------
// <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 GameRechargeData struct {
Id int32
Editionid string
RechargeType int32
Monetaryunit string
Amount string
Vipexp string
VipexpNum int32
Diamond string
DiamondNum int32
DiamondNumDouble int32
Channel string
Text string
Image string
}
const TypeId_GameRechargeData = -1686494355
func (*GameRechargeData) GetTypeId() int32 {
return -1686494355
}
func (_v *GameRechargeData)Deserialize(_buf map[string]interface{}) (err error) {
{ 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.Editionid, _ok_ = _buf["editionid"].(string); !_ok_ { err = errors.New("editionid error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["recharge_type"].(float64); !_ok_ { err = errors.New("recharge_type error"); return }; _v.RechargeType = int32(_tempNum_) }
{ var _ok_ bool; if _v.Monetaryunit, _ok_ = _buf["monetaryunit"].(string); !_ok_ { err = errors.New("monetaryunit error"); return } }
{ var _ok_ bool; if _v.Amount, _ok_ = _buf["amount"].(string); !_ok_ { err = errors.New("amount error"); return } }
{ var _ok_ bool; if _v.Vipexp, _ok_ = _buf["vipexp"].(string); !_ok_ { err = errors.New("vipexp error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["vipexp_num"].(float64); !_ok_ { err = errors.New("vipexp_num error"); return }; _v.VipexpNum = int32(_tempNum_) }
{ var _ok_ bool; if _v.Diamond, _ok_ = _buf["diamond"].(string); !_ok_ { err = errors.New("diamond error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["diamond_num"].(float64); !_ok_ { err = errors.New("diamond_num error"); return }; _v.DiamondNum = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["diamond_num_double"].(float64); !_ok_ { err = errors.New("diamond_num_double error"); return }; _v.DiamondNumDouble = int32(_tempNum_) }
{ var _ok_ bool; if _v.Channel, _ok_ = _buf["channel"].(string); !_ok_ { err = errors.New("channel error"); return } }
{ var _ok_ bool; if _v.Text, _ok_ = _buf["text"].(string); !_ok_ { err = errors.New("text error"); return } }
{ var _ok_ bool; if _v.Image, _ok_ = _buf["image"].(string); !_ok_ { err = errors.New("image error"); return } }
return
}
func DeserializeGameRechargeData(_buf map[string]interface{}) (*GameRechargeData, error) {
v := &GameRechargeData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}