removed unused func
parent
52a6f9af2d
commit
cb38ede83a
|
@ -43,46 +43,6 @@ 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 {
|
|
||||||
// swagger:operation GET /users/:userId users usersGetUserProfile
|
|
||||||
// ---
|
|
||||||
// summary: Get the profile from a user
|
|
||||||
// consumes:
|
|
||||||
// - application/json
|
|
||||||
// produces:
|
|
||||||
// - application/json
|
|
||||||
// responses:
|
|
||||||
// '200':
|
|
||||||
// schema:
|
|
||||||
// "$ref": "#/definitions/UserResponse"
|
|
||||||
// '400':
|
|
||||||
// description: Internal userId specified
|
|
||||||
// '500':
|
|
||||||
// description: Internal server error
|
|
||||||
|
|
||||||
userId := c.Params("userId")
|
|
||||||
|
|
||||||
if len(userId) != utils.LenUserId {
|
|
||||||
return c.SendStatus(fiber.StatusBadRequest)
|
|
||||||
}
|
|
||||||
|
|
||||||
foundUser := structs.User{Id: userId}
|
|
||||||
|
|
||||||
q := scylladb.Session.Query(scylladb.Users.Get()).BindStruct(foundUser)
|
|
||||||
|
|
||||||
if err := q.GetRelease(&foundUser); err != nil {
|
|
||||||
logrus.Println("Failed to get user, err:", err)
|
|
||||||
return c.SendStatus(fiber.StatusUnprocessableEntity)
|
|
||||||
}
|
|
||||||
|
|
||||||
var resUser structs.UserResponse
|
|
||||||
|
|
||||||
copier.Copy(&resUser, &foundUser)
|
|
||||||
|
|
||||||
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
|
||||||
// ---
|
// ---
|
||||||
|
|
Loading…
Reference in New Issue