package
Version:
v0.0.0-...-9254706
Opens a new window with list of versions in this module.
Published: Sep 30, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Controller interface {
Login(ctx *fiber.Ctx) error
Get(ctx *fiber.Ctx) error
Me(ctx *fiber.Ctx) error
Create(ctx *fiber.Ctx) error
Update(ctx *fiber.Ctx) error
UpdatePassword(ctx *fiber.Ctx) error
Delete(ctx *fiber.Ctx) error
}
type CreateRequestPayload struct {
DisplayName string `json:"display_name" validate:"required,min=1,max=50"`
Username string `json:"username" validate:"required,min=5,max=30"`
Email string `json:"email" validate:"required,email"`
Password string `json:"password" validate:"required,min=8"`
}
type DeleteRequestPayload struct {
Password string `json:"password" validate:"required,min=8"`
}
type LoginRequestPayload struct {
Username string `json:"username" validate:"required,min=5,max=30"`
Password string `json:"password" validate:"required,min=8"`
}
type Router interface {
Setup(app fiber.Router) fiber.Router
}
type UpdatePasswordRequestPayload struct {
OldPassword string `json:"old_password" validate:"required,min=8"`
NewPassword string `json:"new_password" validate:"required,min=8"`
NewPasswordConfirmation string `json:"new_password_confirmation" validate:"required,min=8"`
}
type UpdateRequestPayload struct {
DisplayName string `json:"display_name" validate:"required,min=1,max=50"`
Username string `json:"username" validate:"required,min=5,max=30"`
Email string `json:"email" validate:"required,email"`
Password string `json:"password" validate:"required,min=8"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.