mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-17 06:08:42 +00:00
16 lines
358 B
Go
16 lines
358 B
Go
package factories
|
|
|
|
import (
|
|
"github.com/hay-kot/content/backend/internal/types"
|
|
"github.com/hay-kot/content/backend/pkgs/faker"
|
|
)
|
|
|
|
func UserFactory() types.UserCreate {
|
|
f := faker.NewFaker()
|
|
return types.UserCreate{
|
|
Name: f.RandomString(10),
|
|
Email: f.RandomEmail(),
|
|
Password: f.RandomString(10),
|
|
IsSuperuser: f.RandomBool(),
|
|
}
|
|
}
|