24 lines
547 B
Go
24 lines
547 B
Go
package commands
|
|
|
|
import (
|
|
"pink_fox/inner/repositories"
|
|
"pink_fox/packages/fw"
|
|
)
|
|
|
|
type CreateUserCommand struct {
|
|
usersRepository repositories.UserRepository
|
|
}
|
|
|
|
// TODO нужно ли мне создавать access, я думаю пока нет, но вообще надо
|
|
|
|
func NewCreateUserCommand(usersRepository repositories.UserRepository) *CreateUserCommand {
|
|
return &CreateUserCommand{
|
|
usersRepository: usersRepository,
|
|
}
|
|
}
|
|
|
|
func (it *CreateUserCommand) Exec(email, password string, confirmEmail bool) fw.Error {
|
|
|
|
return nil
|
|
}
|