go_dreamfactory/sys/configure/structs/Game.PassCheckPriceData.go
2023-08-09 16:21:36 +08:00

42 lines
1.5 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 GamePassCheckPriceData struct {
PasscheckType int32
PayId string
PayproId string
PaymidId string
}
const TypeId_GamePassCheckPriceData = -1538880936
func (*GamePassCheckPriceData) GetTypeId() int32 {
return -1538880936
}
func (_v *GamePassCheckPriceData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["passcheck_type"].(float64); !_ok_ { err = errors.New("passcheck_type error"); return }; _v.PasscheckType = int32(_tempNum_) }
{ var _ok_ bool; if _v.PayId, _ok_ = _buf["pay_id"].(string); !_ok_ { err = errors.New("pay_id error"); return } }
{ var _ok_ bool; if _v.PayproId, _ok_ = _buf["paypro_id"].(string); !_ok_ { err = errors.New("paypro_id error"); return } }
{ var _ok_ bool; if _v.PaymidId, _ok_ = _buf["paymid_id"].(string); !_ok_ { err = errors.New("paymid_id error"); return } }
return
}
func DeserializeGamePassCheckPriceData(_buf map[string]interface{}) (*GamePassCheckPriceData, error) {
v := &GamePassCheckPriceData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}