Documentation
¶
Index ¶
- type UserApp
- func (c *UserApp) ChangePassword(input dto.ChangePasswordInput) error
- func (c *UserApp) Create(input dto.CreateUserInput) (*dto.CreateUserOutput, error)
- func (c *UserApp) CreateFavorite(input dto.CreateFavoriteInput) error
- func (c *UserApp) DeleteFavorite(input dto.DeleteFavoriteInput) error
- func (c *UserApp) DeleteUser(userId string) error
- func (c *UserApp) GetAllUsers(limit, offset int) ([]domain.User, int64, error)
- func (c *UserApp) GetByEmail(input dto.GetByEmailInput) (*dto.GetByEmailOutput, error)
- func (c *UserApp) GetByUserId(input dto.GetByUserIdInput) (*dto.GetByUserIdOutput, error)
- func (c *UserApp) GetFavoriteByIdAndUserId(input dto.GetFavoriteByIdAndUserIdInput) (*dto.GetFavoriteByIdAndUserIdOutput, error)
- func (c *UserApp) GetMyFavorites(input dto.GetMyFavoritesInput) (*dto.GetMyFavoritesOutput, error)
- func (c *UserApp) UpdateActive(userId string, active bool) error
- func (c *UserApp) UpdateFavoritePosition(input dto.UpdateFavoritePositionInput) (*dto.UpdateFavoritePositionOutput, error)
- func (c *UserApp) UpdateProfile(input dto.UpdateProfileInput) (*dto.UpdateProfileOutput, error)
- func (c *UserApp) UpdateRole(userId string, role domain.Role) error
- func (c *UserApp) UpdateSpaceOrder(input dto.UpdateSpaceOrderInput) (*dto.UpdateSpaceOrderOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserApp ¶
type UserApp struct {
Config config.Config
Logger zerolog.Logger
UserPres domain.UserPers
GroupPres domain.GroupPers
FavoritePers domain.FavoritePers
}
func NewUserApp ¶
func (*UserApp) ChangePassword ¶
func (c *UserApp) ChangePassword(input dto.ChangePasswordInput) error
func (*UserApp) Create ¶
func (c *UserApp) Create(input dto.CreateUserInput) (*dto.CreateUserOutput, error)
func (*UserApp) CreateFavorite ¶
func (c *UserApp) CreateFavorite(input dto.CreateFavoriteInput) error
func (*UserApp) DeleteFavorite ¶
func (c *UserApp) DeleteFavorite(input dto.DeleteFavoriteInput) error
func (*UserApp) DeleteUser ¶
DeleteUser deletes a user (admin only)
func (*UserApp) GetAllUsers ¶
GetAllUsers returns all users with pagination (admin only)
func (*UserApp) GetByEmail ¶
func (c *UserApp) GetByEmail(input dto.GetByEmailInput) (*dto.GetByEmailOutput, error)
func (*UserApp) GetByUserId ¶
func (c *UserApp) GetByUserId(input dto.GetByUserIdInput) (*dto.GetByUserIdOutput, error)
func (*UserApp) GetFavoriteByIdAndUserId ¶
func (c *UserApp) GetFavoriteByIdAndUserId(input dto.GetFavoriteByIdAndUserIdInput) (*dto.GetFavoriteByIdAndUserIdOutput, error)
func (*UserApp) GetMyFavorites ¶
func (c *UserApp) GetMyFavorites(input dto.GetMyFavoritesInput) (*dto.GetMyFavoritesOutput, error)
func (*UserApp) UpdateActive ¶
UpdateActive updates a user's active status (admin only)
func (*UserApp) UpdateFavoritePosition ¶
func (c *UserApp) UpdateFavoritePosition(input dto.UpdateFavoritePositionInput) (*dto.UpdateFavoritePositionOutput, error)
func (*UserApp) UpdateProfile ¶
func (c *UserApp) UpdateProfile(input dto.UpdateProfileInput) (*dto.UpdateProfileOutput, error)
func (*UserApp) UpdateRole ¶
UpdateRole updates a user's role (admin only)
func (*UserApp) UpdateSpaceOrder ¶
func (c *UserApp) UpdateSpaceOrder(input dto.UpdateSpaceOrderInput) (*dto.UpdateSpaceOrderOutput, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.