service

package
v0.0.0-...-a91912b Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	UserResource resource.IUserResource
}

func (*AuthService) LoginAuth

func (s *AuthService) LoginAuth(payload *input.LoginAuthDTO) (*output.LoginAuthDTO, error)

func (*AuthService) RegisterAuth

func (s *AuthService) RegisterAuth(payload *input.RegisterAuthDTO) error

type IAuthService

type IAuthService interface {
	RegisterAuth(payload *input.RegisterAuthDTO) error
	LoginAuth(payload *input.LoginAuthDTO) (*output.LoginAuthDTO, error)
}

func InitAuthService

func InitAuthService(userResource resource.IUserResource) IAuthService

Directories

Path Synopsis
dto

Jump to

Keyboard shortcuts

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