go_dreamfactory/sys/configure/structs/Game.RechargeData.go
2022-11-04 09:57:55 +08:00

60 lines
3.0 KiB
Go

//------------------------------------------------------------------------------
// <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
}
}