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
Option No
这里记录一些非兼容性但确实值得改进的修改,便于未来评估是否值得作为大版本发布。
ORM
ctx
目前ORM的Model操作并不强制需要ctx参数,虽然可以通过dao代码生成工具规范使用Ctx(ctx)方法创建Model对象,但这样不是很优雅。
Model
dao
Ctx(ctx)
同时ORM组件内部处理ctx性能不是很高效,ctx参数作为DB实现对象的属性保存了起来,如果作为方法参数传递,这样别扭的设计可以去掉,也可以简化逻辑处理。
DB
http server slice
http server的slice参数传递参考的是PHP的习惯,通过k[]的方式传递,这块需要参考golang标准库实现,以便于更统一的Golang处理逻辑。
http server
slice
PHP
k[]
golang
Golang
gtime.Format
time.Format
目前gtime.Format参考的是PHP的时间格式化方式,但该方法与标准库的time.Format冲突,建议改名。
No response
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
No branches or pull requests
Is your feature request related to a problem?
Option No
Describe the solution you'd like
这里记录一些非兼容性但确实值得改进的修改,便于未来评估是否值得作为大版本发布。
Describe alternatives you've considered
1.
ORM
操作强制增加ctx
参数目前
ORM
的Model
操作并不强制需要ctx
参数,虽然可以通过dao
代码生成工具规范使用Ctx(ctx)
方法创建Model
对象,但这样不是很优雅。同时
ORM
组件内部处理ctx
性能不是很高效,ctx
参数作为DB
实现对象的属性保存了起来,如果作为方法参数传递,这样别扭的设计可以去掉,也可以简化逻辑处理。2.
http server slice
参数传递方式与标准库统一http server
的slice
参数传递参考的是PHP
的习惯,通过k[]
的方式传递,这块需要参考golang
标准库实现,以便于更统一的Golang
处理逻辑。3.
gtime.Format
和标准库的time.Format
不一致目前
gtime.Format
参考的是PHP的时间格式化方式,但该方法与标准库的time.Format
冲突,建议改名。Additional
No response
The text was updated successfully, but these errors were encountered: