mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
18 lines
372 B
Go
18 lines
372 B
Go
package useCases
|
|
|
|
import (
|
|
"RenewCMS/domain/gateways"
|
|
)
|
|
|
|
type DeleteUserUseCase struct {
|
|
userRepository gateways.IUserRepository
|
|
}
|
|
|
|
func NewDeleteUserUseCase(userRepository gateways.IUserRepository) *DeleteUserUseCase {
|
|
return &DeleteUserUseCase{userRepository}
|
|
}
|
|
|
|
func (g *DeleteUserUseCase) DeleteUser(userId uint32) error {
|
|
return g.userRepository.Delete(userId)
|
|
}
|