user

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 NewUserApp(config config.Config, logger zerolog.Logger, userPers domain.UserPers, groupPers domain.GroupPers, favoritePers domain.FavoritePers) *UserApp

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

func (c *UserApp) DeleteUser(userId string) error

DeleteUser deletes a user (admin only)

func (*UserApp) GetAllUsers

func (c *UserApp) GetAllUsers(limit, offset int) ([]domain.User, int64, error)

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

func (c *UserApp) UpdateActive(userId string, active bool) error

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

func (c *UserApp) UpdateRole(userId string, role domain.Role) error

UpdateRole updates a user's role (admin only)

func (*UserApp) UpdateSpaceOrder

func (c *UserApp) UpdateSpaceOrder(input dto.UpdateSpaceOrderInput) (*dto.UpdateSpaceOrderOutput, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL