repository

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRepo

type AuthRepo struct {
	DB     *gorm.DB
	Cfg    *configs.Configs
	Logger *logrus.Logger
}

func (*AuthRepo) Login

func (r *AuthRepo) Login(ctx context.Context, input dto.LoginReq) (res *models.User, err error)

func (*AuthRepo) Register

func (r *AuthRepo) Register(ctx context.Context, input models.User) (res *models.User, err error)

type AuthRepository

type AuthRepository interface {
	Register(ctx context.Context, input models.User) (res *models.User, err error)
	Login(ctx context.Context, input dto.LoginReq) (res *models.User, er error)
}

func NewAuthRepository

func NewAuthRepository(
	db *gorm.DB,
	cfg *configs.Configs,
	logger *logrus.Logger,
) AuthRepository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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