移除不用的配置
This commit is contained in:
parent
b5328be0f4
commit
f8e9e0e453
@ -1,20 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"rewardkey": 1,
|
|
||||||
"drawreward_type": [
|
|
||||||
{
|
|
||||||
"k": 6,
|
|
||||||
"s": "inevitable_10001"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rewardkey": 2,
|
|
||||||
"drawreward_type": [
|
|
||||||
{
|
|
||||||
"k": 6,
|
|
||||||
"s": "inevitable_10002"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
@ -1,42 +0,0 @@
|
|||||||
//------------------------------------------------------------------------------
|
|
||||||
// <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 GameVenturegiftsLottery struct {
|
|
||||||
_dataMap map[int32]*GameVenturegiftsLotteryData
|
|
||||||
_dataList []*GameVenturegiftsLotteryData
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewGameVenturegiftsLottery(_buf []map[string]interface{}) (*GameVenturegiftsLottery, error) {
|
|
||||||
_dataList := make([]*GameVenturegiftsLotteryData, 0, len(_buf))
|
|
||||||
dataMap := make(map[int32]*GameVenturegiftsLotteryData)
|
|
||||||
for _, _ele_ := range _buf {
|
|
||||||
if _v, err2 := DeserializeGameVenturegiftsLotteryData(_ele_); err2 != nil {
|
|
||||||
return nil, err2
|
|
||||||
} else {
|
|
||||||
_dataList = append(_dataList, _v)
|
|
||||||
dataMap[_v.Rewardkey] = _v
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return &GameVenturegiftsLottery{_dataList:_dataList, _dataMap:dataMap}, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (table *GameVenturegiftsLottery) GetDataMap() map[int32]*GameVenturegiftsLotteryData {
|
|
||||||
return table._dataMap
|
|
||||||
}
|
|
||||||
|
|
||||||
func (table *GameVenturegiftsLottery) GetDataList() []*GameVenturegiftsLotteryData {
|
|
||||||
return table._dataList
|
|
||||||
}
|
|
||||||
|
|
||||||
func (table *GameVenturegiftsLottery) Get(key int32) *GameVenturegiftsLotteryData {
|
|
||||||
return table._dataMap[key]
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,50 +0,0 @@
|
|||||||
//------------------------------------------------------------------------------
|
|
||||||
// <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 GameVenturegiftsLotteryData struct {
|
|
||||||
Rewardkey int32
|
|
||||||
DrawrewardType []*Gameks
|
|
||||||
}
|
|
||||||
|
|
||||||
const TypeId_GameVenturegiftsLotteryData = -1609823769
|
|
||||||
|
|
||||||
func (*GameVenturegiftsLotteryData) GetTypeId() int32 {
|
|
||||||
return -1609823769
|
|
||||||
}
|
|
||||||
|
|
||||||
func (_v *GameVenturegiftsLotteryData)Deserialize(_buf map[string]interface{}) (err error) {
|
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["rewardkey"].(float64); !_ok_ { err = errors.New("rewardkey error"); return }; _v.Rewardkey = int32(_tempNum_) }
|
|
||||||
{
|
|
||||||
var _arr_ []interface{}
|
|
||||||
var _ok_ bool
|
|
||||||
if _arr_, _ok_ = _buf["drawreward_type"].([]interface{}); !_ok_ { err = errors.New("drawreward_type error"); return }
|
|
||||||
|
|
||||||
_v.DrawrewardType = make([]*Gameks, 0, len(_arr_))
|
|
||||||
|
|
||||||
for _, _e_ := range _arr_ {
|
|
||||||
var _list_v_ *Gameks
|
|
||||||
{ 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 = DeserializeGameks(_x_); err != nil { return } }
|
|
||||||
_v.DrawrewardType = append(_v.DrawrewardType, _list_v_)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func DeserializeGameVenturegiftsLotteryData(_buf map[string]interface{}) (*GameVenturegiftsLotteryData, error) {
|
|
||||||
v := &GameVenturegiftsLotteryData{}
|
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
|
||||||
return v, nil
|
|
||||||
} else {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user