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
type User struct{ ID int Name string } Columns = struct { ID string Name string }{ ID: "id", Name: "name", }
类似这样的,然后使用gorm 的 Select(Columns.Name) ,就可以了不用写死硬编码字符串容易出错
The text was updated successfully, but these errors were encountered:
好建议,请留意更新
Sorry, something went wrong.
已经添加: bceb63b 请配置config.yml is_table_name : true
神速啊感谢哈哈
这种方式会存在安全隐患呀! #159
No branches or pull requests
类似这样的,然后使用gorm 的 Select(Columns.Name) ,就可以了不用写死硬编码字符串容易出错
The text was updated successfully, but these errors were encountered: