//------------------------------------------------------------------------------ // // 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 ( "demo/luban" ) import "errors" type TestDemoD5 struct { X1 int32 Time *TestDateTimeRange } const TypeId_TestDemoD5 = -2138341744 func (*TestDemoD5) GetTypeId() int32 { return -2138341744 } func NewTestDemoD5(_buf *luban.ByteBuf) (_v *TestDemoD5, err error) { _v = &TestDemoD5{} { if _v.X1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } { if _v.Time, err = NewTestDateTimeRange(_buf); err != nil { err = errors.New("error"); return } } return }