Documentation
¶
Index ¶
- func SetupUserRouter(controller Controller)
- type Controller
- func (ctrl *Controller) AddFavorite(ctx *fiber.Ctx, req dtos.AddFavoriteRequest) (*dtos.AddFavoriteResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) ChangePassword(ctx *fiber.Ctx, req dtos.ChangePasswordRequest) (*dtos.ChangePasswordResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) GetMyFavorites(ctx *fiber.Ctx, input struct{}) (*dtos.GetMyFavoritesResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) GetMySpaces(ctx *fiber.Ctx, input struct{}) (*dtos.GetMySpacesResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) GetProfile(ctx *fiber.Ctx, input struct{}) (*dtos.ProfileResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) ListUsers(ctx *fiber.Ctx, req dtos.ListUsersRequest) (*dtos.ListUsersResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) RemoveFavorite(ctx *fiber.Ctx, req dtos.RemoveFavoriteRequest) (*dtos.RemoveFavoriteResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) UpdateFavoritePosition(ctx *fiber.Ctx, req dtos.UpdateFavoritePositionRequest) (*dtos.UpdateFavoritePositionResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) UpdateProfile(ctx *fiber.Ctx, req dtos.UpdateProfileRequest) (*dtos.UpdateProfileResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) UpdateSpaceOrder(ctx *fiber.Ctx, req dtos.UpdateSpaceOrderRequest) (*dtos.UpdateSpaceOrderResponse, *fiberoapi.ErrorResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupUserRouter ¶
func SetupUserRouter(controller Controller)
Types ¶
type Controller ¶
type Controller struct {
Config config.Config
Logger zerolog.Logger
FiberOapi *fiberoapi.OApiGroup
UserApp *user.UserApp
SpaceApp *space.SpaceApp
}
func (*Controller) AddFavorite ¶
func (ctrl *Controller) AddFavorite(ctx *fiber.Ctx, req dtos.AddFavoriteRequest) (*dtos.AddFavoriteResponse, *fiberoapi.ErrorResponse)
func (*Controller) ChangePassword ¶
func (ctrl *Controller) ChangePassword(ctx *fiber.Ctx, req dtos.ChangePasswordRequest) (*dtos.ChangePasswordResponse, *fiberoapi.ErrorResponse)
func (*Controller) GetMyFavorites ¶
func (ctrl *Controller) GetMyFavorites(ctx *fiber.Ctx, input struct{}) (*dtos.GetMyFavoritesResponse, *fiberoapi.ErrorResponse)
func (*Controller) GetMySpaces ¶
func (ctrl *Controller) GetMySpaces(ctx *fiber.Ctx, input struct{}) (*dtos.GetMySpacesResponse, *fiberoapi.ErrorResponse)
func (*Controller) GetProfile ¶
func (ctrl *Controller) GetProfile(ctx *fiber.Ctx, input struct{}) (*dtos.ProfileResponse, *fiberoapi.ErrorResponse)
func (*Controller) ListUsers ¶
func (ctrl *Controller) ListUsers(ctx *fiber.Ctx, req dtos.ListUsersRequest) (*dtos.ListUsersResponse, *fiberoapi.ErrorResponse)
func (*Controller) RemoveFavorite ¶
func (ctrl *Controller) RemoveFavorite(ctx *fiber.Ctx, req dtos.RemoveFavoriteRequest) (*dtos.RemoveFavoriteResponse, *fiberoapi.ErrorResponse)
func (*Controller) UpdateFavoritePosition ¶
func (ctrl *Controller) UpdateFavoritePosition(ctx *fiber.Ctx, req dtos.UpdateFavoritePositionRequest) (*dtos.UpdateFavoritePositionResponse, *fiberoapi.ErrorResponse)
func (*Controller) UpdateProfile ¶
func (ctrl *Controller) UpdateProfile(ctx *fiber.Ctx, req dtos.UpdateProfileRequest) (*dtos.UpdateProfileResponse, *fiberoapi.ErrorResponse)
func (*Controller) UpdateSpaceOrder ¶
func (ctrl *Controller) UpdateSpaceOrder(ctx *fiber.Ctx, req dtos.UpdateSpaceOrderRequest) (*dtos.UpdateSpaceOrderResponse, *fiberoapi.ErrorResponse)
Click to show internal directories.
Click to hide internal directories.