feat: complete email verification flow
This commit is contained in:
1 parent
aabdbfae95
commit
a35e7c4283
13 files changed
+228
-124
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user