38 lines
1.1 KiB
Go
38 lines
1.1 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 LocalizeConfig_CN struct {
|
|
Key string
|
|
TextCn string
|
|
}
|
|
|
|
const TypeId_LocalizeConfig_CN = 2049582687
|
|
|
|
func (*LocalizeConfig_CN) GetTypeId() int32 {
|
|
return 2049582687
|
|
}
|
|
|
|
func (_v *LocalizeConfig_CN)Deserialize(_buf map[string]interface{}) (err error) {
|
|
{ var _ok_ bool; if _v.Key, _ok_ = _buf["key"].(string); !_ok_ { err = errors.New("key error"); return } }
|
|
{ var _ok_ bool; if _v.TextCn, _ok_ = _buf["text_cn"].(string); !_ok_ { err = errors.New("text_cn error"); return } }
|
|
return
|
|
}
|
|
|
|
func DeserializeLocalizeConfig_CN(_buf map[string]interface{}) (*LocalizeConfig_CN, error) {
|
|
v := &LocalizeConfig_CN{}
|
|
if err := v.Deserialize(_buf); err == nil {
|
|
return v, nil
|
|
} else {
|
|
return nil, err
|
|
}
|
|
}
|