//------------------------------------------------------------------------------ // // 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 TestDateTimeRange struct { StartTime int64 EndTime int64 } const TypeId_TestDateTimeRange = 495315430 func (*TestDateTimeRange) GetTypeId() int32 { return 495315430 } func NewTestDateTimeRange(_buf map[string]interface{}) (_v *TestDateTimeRange, err error) { _v = &TestDateTimeRange{} { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["start_time"].(float64); !_ok_ { err = errors.New("start_time error"); return }; _v.StartTime = int64(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["end_time"].(float64); !_ok_ { err = errors.New("end_time error"); return }; _v.EndTime = int64(_tempNum_) } return }