diff --git a/bin/json/game_venturegiftslottery.json b/bin/json/game_venturegiftslottery.json deleted file mode 100644 index 4d6683fe0..000000000 --- a/bin/json/game_venturegiftslottery.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "rewardkey": 1, - "drawreward_type": [ - { - "k": 6, - "s": "inevitable_10001" - } - ] - }, - { - "rewardkey": 2, - "drawreward_type": [ - { - "k": 6, - "s": "inevitable_10002" - } - ] - } -] \ No newline at end of file diff --git a/sys/configure/structs/Game.VenturegiftsLottery.go b/sys/configure/structs/Game.VenturegiftsLottery.go deleted file mode 100644 index 232e6a476..000000000 --- a/sys/configure/structs/Game.VenturegiftsLottery.go +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -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] -} - - diff --git a/sys/configure/structs/Game.VenturegiftsLotteryData.go b/sys/configure/structs/Game.VenturegiftsLotteryData.go deleted file mode 100644 index 24c0c5030..000000000 --- a/sys/configure/structs/Game.VenturegiftsLotteryData.go +++ /dev/null @@ -1,50 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -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 - } -}