1 Star 0 Fork 0

小鱼儿小董子/dongli-platform

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
data.InitialProps.go 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
小鱼儿小董子 提交于 2025-02-13 21:31 +08:00 . 1111
//------------------------------------------------------------------------------
// <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 DataInitialProps struct {
Id int32
Type string
Items string
Desc string
}
const TypeId_DataInitialProps = 321863792
func (*DataInitialProps) GetTypeId() int32 {
return 321863792
}
func NewDataInitialProps(_buf map[string]interface{}) (_v *DataInitialProps, err error) {
_v = &DataInitialProps{}
{
var _ok_ bool
var __json_id__ interface{}
if __json_id__, _ok_ = _buf["id"]; !_ok_ || __json_id__ == nil {
err = errors.New("id error")
return
} else {
var __x__ int32
{
var _ok_ bool
var _x_ float64
if _x_, _ok_ = __json_id__.(float64); !_ok_ {
err = errors.New("__x__ error")
return
}
__x__ = int32(_x_)
}
_v.Id = __x__
}
}
{
var _ok_ bool
var __json_type__ interface{}
if __json_type__, _ok_ = _buf["type"]; !_ok_ || __json_type__ == nil {
err = errors.New("type error")
return
} else {
var __x__ string
{
if __x__, _ok_ = __json_type__.(string); !_ok_ {
err = errors.New("__x__ error")
return
}
}
_v.Type = __x__
}
}
{
var _ok_ bool
var __json_items__ interface{}
if __json_items__, _ok_ = _buf["items"]; !_ok_ || __json_items__ == nil {
err = errors.New("items error")
return
} else {
var __x__ string
{
if __x__, _ok_ = __json_items__.(string); !_ok_ {
err = errors.New("__x__ error")
return
}
}
_v.Items = __x__
}
}
{
var _ok_ bool
var __json_desc__ interface{}
if __json_desc__, _ok_ = _buf["desc"]; !_ok_ || __json_desc__ == nil {
err = errors.New("desc error")
return
} else {
var __x__ string
{
if __x__, _ok_ = __json_desc__.(string); !_ok_ {
err = errors.New("__x__ error")
return
}
}
_v.Desc = __x__
}
}
return
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wanjimao/dongli-platform.git
git@gitee.com:wanjimao/dongli-platform.git
wanjimao
dongli-platform
dongli-platform
v0.0.59

搜索帮助