users

package
v0.0.0-...-e157847 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UseCaseSet = wire.NewSet(NewUseCase)

Functions

This section is empty.

Types

type UseCase

type UseCase interface {
	Login(context.Context, *domain.LoginModel) (*domain.Token, error)
	Register(context.Context, *domain.RegisterModel) error
	ChangePassword(context.Context, *domain.ChangePasswordModel) error
	ChangeUserData(context.Context, *domain.User) (*domain.User, error)
	RefreshToken(context.Context, *domain.Token) (*domain.Token, error)
	GetUserData(context.Context, uuid.UUID) (*domain.UserInfo, error)
	GetAvatar(context.Context, string) (*[]byte, error)
	GetAllFriends(context.Context, uuid.UUID) ([]*domain.User, error)
	AddFriend(context.Context, *domain.AddFriendModel) error
}

func NewUseCase

func NewUseCase(
	userRepo UserRepo,
) UseCase

Jump to

Keyboard shortcuts

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