usecase

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserService

func NewUserService(db *gorm.DB) user.Repository

Types

type UserService

type UserService struct {
	*gorm.DB
}

func (UserService) Delete

func (u UserService) Delete(id string) (bool, error)

func (UserService) FindAll

func (u UserService) FindAll() ([]models.User, error)

func (UserService) FindById

func (u UserService) FindById(id string) (*models.User, error)

func (UserService) Save

func (u UserService) Save(dto user.Dto) (models.User, error)

func (UserService) Update

func (u UserService) Update(id string, updateDto user.Dto) (models.User, error)

Jump to

Keyboard shortcuts

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