service

package
v0.0.0-...-c7ab869 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 9 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