commeted get user profile out
parent
f9f2df13e7
commit
e05fab9f33
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue