user

package
v0.0.0-...-fce7651 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserSeedData = []*UserSeedPayload{

	{
		XID:      "8ea778bc-3958-4e9f-8fa2-a8a9ad8f2ab1",
		Name:     "admin",
		Email:    "admin@gmail.com",
		Password: "p4ssw0rd",
		Role:     constant.ADMIN,
	},
	{
		XID:      "c14c4865-428a-410d-a20d-6c90feb19d77",
		Name:     "admin.one",
		Email:    "admin.one@gmail.com",
		Password: "p4ssw0rd",
		Role:     constant.ADMIN,
	},
}

Functions

func ExecuteMysqlUserDatabaseSeederRepository

func ExecuteMysqlUserDatabaseSeederRepository(isRebuildData config.IsRebuildDataDBSeederMysqlUser, db config.MysqlDatabaseSQLConnection)

Types

type UserDatabaseSeederSQLRepository

type UserDatabaseSeederSQLRepository struct {
	gorm_seeder.SeederAbstract
	// contains filtered or unexported fields
}

func (*UserDatabaseSeederSQLRepository) Clear

func (*UserDatabaseSeederSQLRepository) Seed

type UserSeedPayload

type UserSeedPayload struct {
	XID      string            `validate:"required,uuid4"`
	Name     string            `validate:"required"`
	Email    string            `validate:"required,email"`
	Password string            `validate:"required,min=8"`
	Role     constant.UserRole `validate:"required,oneof=ADMIN"`
}

func (*UserSeedPayload) CustomValidatePayload

func (r *UserSeedPayload) CustomValidatePayload() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL