usecases

package
v0.0.0-...-0686fb6 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 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 UserUsecase

type UserUsecase interface {
	Create(ctx context.Context, user *models.User) (err error)
	Delete(ctx context.Context, userID uint) (err error)
	GetByUsername(ctx context.Context, username string) (user *models.User, err error)
	Login(ctx context.Context, param schemas.Login) (user *models.User, err error)
	Register(ctx context.Context, param schemas.Register) (err error)
	Update(ctx context.Context, user *models.User) (err error)
}

func NewUserUsecase

func NewUserUsecase(db *gorm.DB) UserUsecase

Jump to

Keyboard shortcuts

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