Documentation ¶
Index ¶
- func NewUserService(db *gorm.DB) user.Repository
- type UserService
- func (u UserService) Delete(id string) (bool, error)
- func (u UserService) FindAll() ([]models.User, error)
- func (u UserService) FindById(id string) (*models.User, error)
- func (u UserService) Save(dto user.Dto) (models.User, error)
- func (u UserService) Update(id string, updateDto user.Dto) (models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserService ¶
func NewUserService(db *gorm.DB) user.Repository
Types ¶
type UserService ¶
Click to show internal directories.
Click to hide internal directories.