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

想问个问题 #1

Closed
lovefisher opened this issue Jan 30, 2021 · 4 comments
Closed

想问个问题 #1

lovefisher opened this issue Jan 30, 2021 · 4 comments
Assignees

Comments

@lovefisher
Copy link

在controller里写的log.Info方法 要求的是content.Context 为什么传的是gin的Context ide一直显示error

@lovefisher
Copy link
Author

另外repository的find方法好像不支持where 需要自己补上参数 比如user的login

@fanqingxuan
Copy link
Owner

在controller里写的log.Info方法 要求的是content.Context 为什么传的是gin的Context ide一直显示error

您好,gin.Context实现了context.Context接口的所有方法,所以编译不会报错,不知道您用的什么编辑器,我用的vs code ide没有报错呢

@fanqingxuan
Copy link
Owner

另外repository的find方法好像不支持where 需要自己补上参数 比如user的login

您好,我只是提供了一个基本的目录结构,dao里面的方法,只是我写的一个demo,你可以根据自己的需要修改成自己实际需要的

@fanqingxuan
Copy link
Owner

如上回复

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