diff --git a/modules/structs/user.go b/modules/structs/user.go index a3aa5bf..437e3bb 100644 --- a/modules/structs/user.go +++ b/modules/structs/user.go @@ -29,6 +29,7 @@ type User struct { } // swagger:model UserResponse +/* type UserResponse struct { Username string AccountName string @@ -36,7 +37,7 @@ type UserResponse struct { Description string AccountStatus uint8 AvatarUrl string -} +} */ type UserPublicKeys struct { gocqlx.UDT diff --git a/routers/api/v1/users/users.go b/routers/api/v1/users/users.go index 63d357e..d938976 100644 --- a/routers/api/v1/users/users.go +++ b/routers/api/v1/users/users.go @@ -3,9 +3,7 @@ package users import ( "clickandjoin.app/managementsystem/modules/scylladb" "clickandjoin.app/managementsystem/modules/structs" - "clickandjoin.app/managementsystem/modules/utils" "github.com/gofiber/fiber/v2" - "github.com/jinzhu/copier" "github.com/sirupsen/logrus" ) @@ -44,6 +42,7 @@ func GetAllUsers(c *fiber.Ctx) error { return c.JSON(structs.UsersResponse{Users: nUsers}) } +/* func GetUserProfile(c *fiber.Ctx) error { // swagger:operation GET /users/:userId users usersGetUserProfile // --- @@ -81,7 +80,7 @@ func GetUserProfile(c *fiber.Ctx) error { copier.Copy(&resUser, &foundUser) return c.JSON(resUser) -} +}*/ func GetAllUserSignUpProcesses(c *fiber.Ctx) error { // swagger:operation GET /users/signupprocesses users usersGetAllUserSignUpProcesses diff --git a/routers/router/router.go b/routers/router/router.go index c5b1cd9..c0186fb 100644 --- a/routers/router/router.go +++ b/routers/router/router.go @@ -17,7 +17,7 @@ func SetupRoutes(app *fiber.App) { us.Get("/signupprocesses", ApiKeyValidation, users.GetAllUserSignUpProcesses) us.Get("/relationships", ApiKeyValidation, users.GetAllUserRelationships) us.Get("/privacysettings", ApiKeyValidation, users.GetAllUserPrivacySettings) - us.Get("/:userId", ApiKeyValidation, users.GetUserProfile) + //us.Get("/:userId", ApiKeyValidation, users.GetUserProfile) wss := v1.Group("/wssessions") wss.Get("/", ApiKeyValidation, wssessions.GetAllWsSessions)