commeted get user profile out

alpha
alex 2023-02-12 21:22:04 +01:00
parent f9f2df13e7
commit e05fab9f33
3 changed files with 5 additions and 5 deletions

View File

@ -29,6 +29,7 @@ type User struct {
} }
// swagger:model UserResponse // swagger:model UserResponse
/*
type UserResponse struct { type UserResponse struct {
Username string Username string
AccountName string AccountName string
@ -36,7 +37,7 @@ type UserResponse struct {
Description string Description string
AccountStatus uint8 AccountStatus uint8
AvatarUrl string AvatarUrl string
} } */
type UserPublicKeys struct { type UserPublicKeys struct {
gocqlx.UDT gocqlx.UDT

View File

@ -3,9 +3,7 @@ package users
import ( import (
"clickandjoin.app/managementsystem/modules/scylladb" "clickandjoin.app/managementsystem/modules/scylladb"
"clickandjoin.app/managementsystem/modules/structs" "clickandjoin.app/managementsystem/modules/structs"
"clickandjoin.app/managementsystem/modules/utils"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/jinzhu/copier"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )
@ -44,6 +42,7 @@ func GetAllUsers(c *fiber.Ctx) error {
return c.JSON(structs.UsersResponse{Users: nUsers}) return c.JSON(structs.UsersResponse{Users: nUsers})
} }
/*
func GetUserProfile(c *fiber.Ctx) error { func GetUserProfile(c *fiber.Ctx) error {
// swagger:operation GET /users/:userId users usersGetUserProfile // swagger:operation GET /users/:userId users usersGetUserProfile
// --- // ---
@ -81,7 +80,7 @@ func GetUserProfile(c *fiber.Ctx) error {
copier.Copy(&resUser, &foundUser) copier.Copy(&resUser, &foundUser)
return c.JSON(resUser) return c.JSON(resUser)
} }*/
func GetAllUserSignUpProcesses(c *fiber.Ctx) error { func GetAllUserSignUpProcesses(c *fiber.Ctx) error {
// swagger:operation GET /users/signupprocesses users usersGetAllUserSignUpProcesses // swagger:operation GET /users/signupprocesses users usersGetAllUserSignUpProcesses

View File

@ -17,7 +17,7 @@ func SetupRoutes(app *fiber.App) {
us.Get("/signupprocesses", ApiKeyValidation, users.GetAllUserSignUpProcesses) us.Get("/signupprocesses", ApiKeyValidation, users.GetAllUserSignUpProcesses)
us.Get("/relationships", ApiKeyValidation, users.GetAllUserRelationships) us.Get("/relationships", ApiKeyValidation, users.GetAllUserRelationships)
us.Get("/privacysettings", ApiKeyValidation, users.GetAllUserPrivacySettings) us.Get("/privacysettings", ApiKeyValidation, users.GetAllUserPrivacySettings)
us.Get("/:userId", ApiKeyValidation, users.GetUserProfile) //us.Get("/:userId", ApiKeyValidation, users.GetUserProfile)
wss := v1.Group("/wssessions") wss := v1.Group("/wssessions")
wss.Get("/", ApiKeyValidation, wssessions.GetAllWsSessions) wss.Get("/", ApiKeyValidation, wssessions.GetAllWsSessions)