Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Oauth2Client = []helpers.Oauth2Client{ { ID: helpers.NewToken(), Name: "default", Secret: helpers.RandomString(10), UserID: uuid.New().String(), }, }
View Source
var User = []models.User{ {ID: uuid.New().String(), Name: "Admin", Email: "[email protected]", Password: "admin123456", RoleID: 1, IsEmailVerified: true}, {ID: uuid.New().String(), Name: "Mr. Clark Kent", Email: "[email protected]", Password: "teacher123456", RoleID: 2, IsEmailVerified: true}, {ID: uuid.New().String(), Name: "Son Goku", Email: "[email protected]", Password: "student123456", RoleID: 3, IsEmailVerified: true}, {ID: uuid.New().String(), Name: "Son Gohan", Email: "[email protected]", Password: "student123456", RoleID: 3, IsEmailVerified: true}, {ID: uuid.New().String(), Name: "Naruto", Email: "[email protected]", Password: "student123456", RoleID: 3, IsEmailVerified: true}, }
View Source
var UserRole = []models.UserRole{
{ID: 1, Name: "Admin"},
{ID: 2, Name: "Pengajar"},
{ID: 3, Name: "Murid"},
}
Functions ¶
func SeedOauth2Client ¶
func SeedUserRole ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.