Skip to content
New issue

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

请问model中注释内的form、format如何起作用,在demo中没找到实际应用 #45

Closed
cinos1 opened this issue Aug 18, 2021 · 2 comments

Comments

@cinos1
Copy link

cinos1 commented Aug 18, 2021

我使用gosql+echo做接口,配置了标题内的两个关键字,但在返回结果中没有起任何作用,想请问这两个关键字的作用是什么,谢谢!

@fifsky
Copy link
Member

fifsky commented Aug 18, 2021

能贴一下你的代码么?

@cinos1
Copy link
Author

cinos1 commented Aug 18, 2021

感谢回复,我中午复习了下model类中tag起的作用,重新阅读了echo文档,发现这部分是由http框架来处理的,和你的orm无关,我理解有误,demo中的注解可能用的是beego之类的框架,与我使用的echo框架对tag解析方式不同,下面是echo文档相关描述连接:https://echo.labstack.com/guide/binding/
此问题可以关闭了,谢谢!

@cinos1 cinos1 closed this as completed Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants