usecases

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonUseCases

type CommonUseCases struct {
	SsoService interfaces.SsoService
}

func (*CommonUseCases) GetAllUsers

func (useCases *CommonUseCases) GetAllUsers() ([]*ssoentities.User, error)

func (*CommonUseCases) GetMe added in v0.0.3

func (useCases *CommonUseCases) GetMe(accessToken string) (*ssoentities.User, error)

func (*CommonUseCases) GetUserByID

func (useCases *CommonUseCases) GetUserByID(id int) (*ssoentities.User, error)

func (*CommonUseCases) LoginUser

func (useCases *CommonUseCases) LoginUser(userData ssoentities.LoginUserDTO) (*ssoentities.TokensDTO, error)

func (*CommonUseCases) RefreshTokens added in v0.0.3

func (useCases *CommonUseCases) RefreshTokens(refreshTokensData ssoentities.TokensDTO) (*ssoentities.TokensDTO, error)

func (*CommonUseCases) RegisterUser

func (useCases *CommonUseCases) RegisterUser(userData ssoentities.RegisterUserDTO) (int, error)

Jump to

Keyboard shortcuts

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