You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issues-translate-bot
changed the title
请求时结构体里面的字段不会被设置为默认值
The fields in the structure will not be set to default values when requesting
May 21, 2024
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
For the setting of default values, there is currently no recursive checking structure. You can try changing HelloOption to an anonymous structure.
gqcn
added
enhancement
planned
This issue/proposal is planned into our next steps.
and removed
bug
It is confirmed a bug, but don't worry, we'll handle it.
labels
May 21, 2024
Go version
go version go1.21.3 darwin/amd64
GoFrame version
2.7.1
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
请求 Hello 接口,没有传任何值
What did you see happen?
HelloOption 结构体里面的值不会被初始化
What did you expect to see?
期望请求里面的值都会被设置成默认值
The text was updated successfully, but these errors were encountered: