1 Star 0 Fork 0

小鱼儿小董子/dongli-platform

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
data.ItemRule.go 2.88 KB
一键复制 编辑 原始数据 按行查看 历史
小鱼儿小董子 提交于 2025-02-13 20:15 +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 DataItemRule struct {
Id int32
Type1 string
Type2 string
Num1 int32
Num2 int32
Num3 string
}
const TypeId_DataItemRule = 189278867
func (*DataItemRule) GetTypeId() int32 {
return 189278867
}
func NewDataItemRule(_buf map[string]interface{}) (_v *DataItemRule, err error) {
_v = &DataItemRule{}
{
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_type1__ interface{}
if __json_type1__, _ok_ = _buf["type1"]; !_ok_ || __json_type1__ == nil {
err = errors.New("type1 error")
return
} else {
var __x__ string
{
if __x__, _ok_ = __json_type1__.(string); !_ok_ {
err = errors.New("__x__ error")
return
}
}
_v.Type1 = __x__
}
}
{
var _ok_ bool
var __json_type2__ interface{}
if __json_type2__, _ok_ = _buf["type2"]; !_ok_ || __json_type2__ == nil {
err = errors.New("type2 error")
return
} else {
var __x__ string
{
if __x__, _ok_ = __json_type2__.(string); !_ok_ {
err = errors.New("__x__ error")
return
}
}
_v.Type2 = __x__
}
}
{
var _ok_ bool
var __json_num1__ interface{}
if __json_num1__, _ok_ = _buf["num1"]; !_ok_ || __json_num1__ == nil {
err = errors.New("num1 error")
return
} else {
var __x__ int32
{
var _ok_ bool
var _x_ float64
if _x_, _ok_ = __json_num1__.(float64); !_ok_ {
err = errors.New("__x__ error")
return
}
__x__ = int32(_x_)
}
_v.Num1 = __x__
}
}
{
var _ok_ bool
var __json_num2__ interface{}
if __json_num2__, _ok_ = _buf["num2"]; !_ok_ || __json_num2__ == nil {
err = errors.New("num2 error")
return
} else {
var __x__ int32
{
var _ok_ bool
var _x_ float64
if _x_, _ok_ = __json_num2__.(float64); !_ok_ {
err = errors.New("__x__ error")
return
}
__x__ = int32(_x_)
}
_v.Num2 = __x__
}
}
{
var _ok_ bool
var __json_num3__ interface{}
if __json_num3__, _ok_ = _buf["num3"]; !_ok_ || __json_num3__ == nil {
err = errors.New("num3 error")
return
} else {
var __x__ string
{
if __x__, _ok_ = __json_num3__.(string); !_ok_ {
err = errors.New("__x__ error")
return
}
}
_v.Num3 = __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

搜索帮助