go_dreamfactory/sys/configure/structs/Game.GuildPngData.go
2022-10-31 15:12:35 +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 GameGuildPngData struct {
Id int32
Png string
}
const TypeId_GameGuildPngData = -586458500
func (*GameGuildPngData) GetTypeId() int32 {
return -586458500
}
func (_v *GameGuildPngData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.Png, _ok_ = _buf["png"].(string); !_ok_ { err = errors.New("png error"); return } }
return
}
func DeserializeGameGuildPngData(_buf map[string]interface{}) (*GameGuildPngData, error) {
v := &GameGuildPngData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}