用户信息部分统一删除,之后所有用户信息走认证中心

This commit is contained in:
junleea 2025-05-24 20:23:16 +08:00
parent b8f7786f80
commit 79cf18a2ef
2 changed files with 11 additions and 9 deletions

View File

@ -58,14 +58,16 @@ func SetUpToolGroup(router *gin.Engine) {
toolGroup.POST("/file_del", DelFile)
//服务器、设备状态接口
toolGroup.POST("/monitor", SetDeviceStatusV2)
toolGroup.POST("/qq_callback", handleQQCallback)
toolGroup.GET("/qq_auth", GetQQAuthUrl)
toolGroup.GET("/github_auth", GetGithubAuthUrl)
toolGroup.GET("/get_auth_url", GetThirdPartyAuthUrl)
toolGroup.GET("/github_callback", handleGithubCallback)
toolGroup.GET("/gitee_callback", handleGiteeCallback)
toolGroup.GET("/third_party_callback", handleThirdPartyCallback) //统一处理第三方登录回调
//第三方登录所有不进行,统一认证中心
//toolGroup.POST("/qq_callback", handleQQCallback)
//toolGroup.GET("/qq_auth", GetQQAuthUrl)
//toolGroup.GET("/github_auth", GetGithubAuthUrl)
//toolGroup.GET("/get_auth_url", GetThirdPartyAuthUrl)
//toolGroup.GET("/github_callback", handleGithubCallback)
//toolGroup.GET("/gitee_callback", handleGiteeCallback)
//toolGroup.GET("/third_party_callback", handleThirdPartyCallback) //统一处理第三方登录回调
toolGroup.POST("/loginRedirect", LoginRedirect)
toolGroup.POST("/statistic", GetUserStatistic)
//发送邮件
toolGroup.POST("/send_mail", SendMailTool)
toolGroup.POST("/dashboard", DashBoardStatistics)

View File

@ -37,7 +37,7 @@ func main() {
}
r.Use(handler.CrosHandler())
r.Use(JWTAuthMiddleware()) // 使用 JWT 认证中间件
handler.SetUpUserGroup(r) // User
//handler.SetUpUserGroup(r) // User不进行用户信息后面统一走认证中心
handler.SetUpToolGroup(r) // Tool
handler.SetUpFileGroup(r) // File
handler.SetUpKnowledgeBaseGroup(r) // KnowledgeBase