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

https://go-zero.dev/cn/docs/advance/jwt这个页面有问题 #76

Open
aiai97 opened this issue May 20, 2023 · 0 comments
Open

https://go-zero.dev/cn/docs/advance/jwt这个页面有问题 #76

aiai97 opened this issue May 20, 2023 · 0 comments

Comments

@aiai97
Copy link

aiai97 commented May 20, 2023

严格来说,是model生成模块这里,有问题,原本插件自动生成的代码是usermodel_gen.go下面FindOneByNumber方法的这一行是query := fmt.Sprintf("select %s from %s where number = ? limit 1", userRows, m.table),但是少加了一个number。query := fmt.Sprintf("select %s from %s where number = ? limit 1", userRows, m.table,number)

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

1 participant