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 }
Click to show internal directories.
Click to hide internal directories.