refac: useless little refactor for clean verificationCode placement

This commit is contained in:
Florian Sylvain
2025-12-09 22:27:59 +01:00
parent d7ee0a488c
commit 0238c7511d
4 changed files with 18 additions and 29 deletions
+6 -5
View File
@@ -3,6 +3,8 @@ package useCases
import (
"RenewCMS/domain/gateways"
"RenewCMS/domain/user"
"github.com/google/uuid"
)
type CreateUserUseCase struct {
@@ -10,10 +12,9 @@ type CreateUserUseCase struct {
}
type CreateUserCommand struct {
Username string
Password string
Email string
VerificationCode string
Username string
Password string
Email string
}
func NewCreateUserUseCase(userRepository gateways.IUserRepository) *CreateUserUseCase {
@@ -26,6 +27,6 @@ func (g *CreateUserUseCase) CreateUser(createUser CreateUserCommand) (user.User,
createUser.Password,
"",
createUser.Email,
createUser.VerificationCode,
uuid.NewString(),
))
}