Documentation ¶
Index ¶
- func PermissionSeeder(ctx context.Context, permissionRepository repository.IPermissionRepository, ...) ([]model2.Permission, error)
- func RoleSeeder(ctx context.Context, roleRepository repository2.IRoleRepository, ...) (*model2.Role, error)
- func UserSeeder(ctx context.Context, userRepository repository2.IUserRepository, ...) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PermissionSeeder ¶
func PermissionSeeder(ctx context.Context, permissionRepository repository.IPermissionRepository, permissions []string) ([]model2.Permission, error)
func RoleSeeder ¶
func RoleSeeder(ctx context.Context, roleRepository repository2.IRoleRepository, rolePermissionRepository repository2.IRolePermissionRepository, permissions []model2.Permission) (*model2.Role, error)
func UserSeeder ¶
func UserSeeder(ctx context.Context, userRepository repository2.IUserRepository, userRoleRepository repository2.IUserRoleRepository, hasher secret.Hasher, roleID int) (*model.User, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.