fix: 修复用户可选分组不能选择用户分组 (close #528)

This commit is contained in:
1808837298@qq.com
2024-10-14 16:15:10 +08:00
parent 40baa636e4
commit f599c65944
6 changed files with 38 additions and 14 deletions

View File

@@ -44,6 +44,7 @@ func SetApiRouter(router *gin.Engine) {
selfRoute := userRoute.Group("/")
selfRoute.Use(middleware.UserAuth())
{
selfRoute.GET("/self/groups", controller.GetUserGroups)
selfRoute.GET("/self", controller.GetSelf)
selfRoute.GET("/models", controller.GetUserModels)
selfRoute.PUT("/self", controller.UpdateSelf)