usecase

package
v0.0.0-...-5e9dbd4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserUsecase

func NewUserUsecase(db *gorm.DB, secret []byte, telegram tracking.SmartModule) *userUsecase

Types

type UserUsecase

type UserUsecase interface {
	Create(newUser *model.NewUser) error
	Login(email string, password string) (*model.LoginResponse, error)
	GetUser(id uint) (*model.User, error)
	GetAllUsers() ([]*model.FullUser, error)
	SoftDelete(id uint) error
	ChangePassword(id uint, passwords *model.ChangePassword) error
}

Jump to

Keyboard shortcuts

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