We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go-sdk/leancloud/encoding.go
Lines 265 to 282 in 7d89f2f
例如自定一个class 如下:
type Foo struct { leancloud.Object Rule struct { Month int `json:"month"` Day int `json:"day"` } `json:"rule"` }
这个Foo对象save以后 rule列应该是 {"month": 1, "day": 1} 而不是{"Month": 1, "Day": 1}
rule
{"month": 1, "day": 1}
{"Month": 1, "Day": 1}
The text was updated successfully, but these errors were encountered:
我也遇到一样的问题, 某字段是一个 Array, Array 里放了一堆 struct 对象.
存入库中后发现, 这些 struct 对象都没有读取其 json tag, 而是用了大写开头的字段名.
Sorry, something went wrong.
提了一个 pull request #52
No branches or pull requests
go-sdk/leancloud/encoding.go
Lines 265 to 282 in 7d89f2f
例如自定一个class 如下:
这个Foo对象save以后
rule
列应该是{"month": 1, "day": 1}
而不是{"Month": 1, "Day": 1}
The text was updated successfully, but these errors were encountered: