-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat(ldap): add ldap protocol support #50
Conversation
} | ||
|
||
//Delete records | ||
if c.Request.Method == http.MethodDelete { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
删除操作为什么要跟 GET 共用一个路由?
}), | ||
}).Create(r).Error | ||
if err != nil { | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不是很建议这种直接 return
不写明具体变量的写法。
@@ -95,6 +98,10 @@ func (revsuit *Revsuit) registerHttpRouter() { | |||
rmiGroup.GET("", rmi.Records) | |||
rmiGroup.DELETE("", rmi.Records) | |||
|
|||
ldapGroup := recordGroup.Group("/ldap") | |||
ldapGroup.GET("", ldap.Records) | |||
ldapGroup.DELETE("", ldap.Records) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上,GET 和 DELETE 分开为两个 Handler。
Describe the pull request
add ldap protocol support
Checklist