go_dreamfactory/sys/configure/structs/LocalizeConfig_TW.go
2022-08-12 18:53:51 +08:00

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_TW struct {
Key string
TextTw string
}
const TypeId_LocalizeConfig_TW = 2049583223
func (*LocalizeConfig_TW) GetTypeId() int32 {
return 2049583223
}
func (_v *LocalizeConfig_TW)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.TextTw, _ok_ = _buf["text_tw"].(string); !_ok_ { err = errors.New("text_tw error"); return } }
return
}
func DeserializeLocalizeConfig_TW(_buf map[string]interface{}) (*LocalizeConfig_TW, error) {
v := &LocalizeConfig_TW{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}