feat: complete email verification flow

This commit is contained in:
Florian Sylvain
2024-05-15 19:16:55 +02:00
parent aabdbfae95
commit a35e7c4283
13 changed files with 228 additions and 124 deletions
+20
View File
@@ -0,0 +1,20 @@
package useCases
import (
"GohCMS2/adapters/secondary/gateways"
"gorm.io/gorm"
)
type DeleteUserUseCase struct {
userRepository gateways.UserRepository
}
func NewDeleteUserUseCase(db *gorm.DB) *DeleteUserUseCase {
return &DeleteUserUseCase{
userRepository: *gateways.NewUserRepository(db),
}
}
func (g *DeleteUserUseCase) DeleteUser(userId uint32) error {
return g.userRepository.Delete(userId)
}