DESKTOP-5RP3AKU\Jisol 0014eff5e0 update
2023-11-05 03:26:09 +08:00

39 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 TestTestString struct {
Id string
S1 string
S2 string
Cs1 *TestCompactString
Cs2 *TestCompactString
}
const TypeId_TestTestString = 338485823
func (*TestTestString) GetTypeId() int32 {
return 338485823
}
func NewTestTestString(_buf map[string]interface{}) (_v *TestTestString, err error) {
_v = &TestTestString{}
{ var _ok_ bool; if _v.Id, _ok_ = _buf["id"].(string); !_ok_ { err = errors.New("id error"); return } }
{ var _ok_ bool; if _v.S1, _ok_ = _buf["s1"].(string); !_ok_ { err = errors.New("s1 error"); return } }
{ var _ok_ bool; if _v.S2, _ok_ = _buf["s2"].(string); !_ok_ { err = errors.New("s2 error"); return } }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["cs1"].(map[string]interface{}); !_ok_ { err = errors.New("cs1 error"); return }; if _v.Cs1, err = NewTestCompactString(_x_); err != nil { return } }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["cs2"].(map[string]interface{}); !_ok_ { err = errors.New("cs2 error"); return }; if _v.Cs2, err = NewTestCompactString(_x_); err != nil { return } }
return
}