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

您好,认真阅读了您的代码,有些问题请教 #18

Open
yichouchou opened this issue Jul 3, 2021 · 1 comment
Open

您好,认真阅读了您的代码,有些问题请教 #18

yichouchou opened this issue Jul 3, 2021 · 1 comment

Comments

@yichouchou
Copy link

1.通过ast获取注释,然后自动注册路由和参数绑定。我看代码部分是根据mod 和当前文件目录查找到具体文件,请问在生产环境是否受限,就是打包后发服务器是否可以继续用?
2.参数绑定我目前看到可以传req结构体,但是参数校验,比如新增age参数,然后传0和不传得到的结果是一样的,传一个小数也会接收到0,能否灵活配置,方便更严格的参数校验和参数获取。
另外不止如何添加您的联系方式,非常希望能够加上你一起交流。

@xxjwxc
Copy link
Owner

xxjwxc commented Jul 3, 2021

问题1,不影响,release版本会吐出一个data文件的,需要一起发布到线上版本,注释一般开发版本生成
问题2,目前是支持参数过滤的,但是pb问题不能,需要第三方插件
问题3:微信号jnpher,欢迎添加

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