loginAuth

package
v0.0.0-...-7c9f392 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepositoryLogin

func NewRepositoryLogin(db *gorm.DB) *repository

func NewServiceLogin

func NewServiceLogin(repository Repository) *service

Types

type InputLogin

type InputLogin struct {
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"required"`
}

type Repository

type Repository interface {
	LoginRepository(input *model.User) (*model.User, string)
}

type Service

type Service interface {
	LoginService(input *InputLogin) (*model.User, string)
}

Jump to

Keyboard shortcuts

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