配置同步

This commit is contained in:
meixiongfeng 2023-08-18 11:06:24 +08:00
parent 5cd01c45c5
commit 70e14ecdcb
4 changed files with 473 additions and 1924 deletions

View File

@ -133,7 +133,7 @@
"Argu": [
1,
4,
1700
1600
],
"FollowSK": [
225004132
@ -182,7 +182,7 @@
"Argu": [
1,
4,
1800
1700
],
"FollowSK": [
225004142
@ -231,7 +231,7 @@
"Argu": [
1,
4,
1900
1700
],
"FollowSK": [
225004152
@ -280,7 +280,7 @@
"Argu": [
1,
4,
2000
1800
],
"FollowSK": [
225004162
@ -756,7 +756,7 @@
"Argu": [
1,
4,
1500
1600
],
"FollowSK": [],
"SucFollowSK": [
@ -805,7 +805,7 @@
"Argu": [
1,
4,
1500
1600
],
"FollowSK": [],
"SucFollowSK": [
@ -854,7 +854,7 @@
"Argu": [
1,
4,
1500
1700
],
"FollowSK": [],
"SucFollowSK": [

File diff suppressed because it is too large Load Diff

View File

@ -9,13 +9,13 @@
package cfg
type GameRecharge struct {
_dataMap map[int32]*GameRechargeData
_dataMap map[string]*GameRechargeData
_dataList []*GameRechargeData
}
func NewGameRecharge(_buf []map[string]interface{}) (*GameRecharge, error) {
_dataList := make([]*GameRechargeData, 0, len(_buf))
dataMap := make(map[int32]*GameRechargeData)
dataMap := make(map[string]*GameRechargeData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameRechargeData(_ele_); err2 != nil {
return nil, err2
@ -27,7 +27,7 @@ func NewGameRecharge(_buf []map[string]interface{}) (*GameRecharge, error) {
return &GameRecharge{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameRecharge) GetDataMap() map[int32]*GameRechargeData {
func (table *GameRecharge) GetDataMap() map[string]*GameRechargeData {
return table._dataMap
}
@ -35,7 +35,7 @@ func (table *GameRecharge) GetDataList() []*GameRechargeData {
return table._dataList
}
func (table *GameRecharge) Get(key int32) *GameRechargeData {
func (table *GameRecharge) Get(key string) *GameRechargeData {
return table._dataMap[key]
}

View File

@ -32,78 +32,23 @@ func (*GameRechargeData) GetTypeId() int32 {
return -1686494355
}
func (_v *GameRechargeData) Deserialize(_buf map[string]interface{}) (err error) {
{
var _ok_ bool
if _v.Id, _ok_ = _buf["id"].(string); !_ok_ {
err = errors.New("id error")
return
}
}
{
var _ok_ bool
var _tempNum_ float64
if _tempNum_, _ok_ = _buf["pid"].(float64); !_ok_ {
err = errors.New("pid error")
return
}
_v.Pid = 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
var _tempNum_ float64
if _tempNum_, _ok_ = _buf["amount"].(float64); !_ok_ {
err = errors.New("amount error")
return
}
_v.Amount = int32(_tempNum_)
}
func (_v *GameRechargeData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; if _v.Id, _ok_ = _buf["id"].(string); !_ok_ { err = errors.New("id error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["pid"].(float64); !_ok_ { err = errors.New("pid error"); return }; _v.Pid = 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; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["amount"].(float64); !_ok_ { err = errors.New("amount error"); return }; _v.Amount = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["vipexp"].([]interface{}); !_ok_ {
err = errors.New("vipexp error")
return
}
if _arr_, _ok_ = _buf["vipexp"].([]interface{}); !_ok_ { err = errors.New("vipexp error"); return }
_v.Vipexp = make([]*Gameatn, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Gameatn
{
var _ok_ bool
var _x_ map[string]interface{}
if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ {
err = errors.New("_list_v_ error")
return
}
if _list_v_, err = DeserializeGameatn(_x_); err != nil {
return
}
}
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } }
_v.Vipexp = append(_v.Vipexp, _list_v_)
}
}
@ -111,67 +56,22 @@ func (_v *GameRechargeData) Deserialize(_buf map[string]interface{}) (err error)
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["diamond_num_double"].([]interface{}); !_ok_ {
err = errors.New("diamond_num_double error")
return
}
if _arr_, _ok_ = _buf["diamond_num_double"].([]interface{}); !_ok_ { err = errors.New("diamond_num_double error"); return }
_v.DiamondNumDouble = make([]*Gameatn, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Gameatn
{
var _ok_ bool
var _x_ map[string]interface{}
if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ {
err = errors.New("_list_v_ error")
return
}
if _list_v_, err = DeserializeGameatn(_x_); err != nil {
return
}
}
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } }
_v.DiamondNumDouble = append(_v.DiamondNumDouble, _list_v_)
}
}
{
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.Show, _ok_ = _buf["show"].(string); !_ok_ {
err = errors.New("show error")
return
}
}
{
var _ok_ bool
if _v.Image, _ok_ = _buf["image"].(string); !_ok_ {
err = errors.New("image error")
return
}
}
{
var _ok_ bool
var _tempNum_ float64
if _tempNum_, _ok_ = _buf["integral"].(float64); !_ok_ {
err = errors.New("integral error")
return
}
_v.Integral = 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.Show, _ok_ = _buf["show"].(string); !_ok_ { err = errors.New("show error"); return } }
{ var _ok_ bool; if _v.Image, _ok_ = _buf["image"].(string); !_ok_ { err = errors.New("image error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["integral"].(float64); !_ok_ { err = errors.New("integral error"); return }; _v.Integral = int32(_tempNum_) }
return
}