Documentation
¶
Index ¶
- Constants
- func CreateUser(user *model.User) error
- func CurrentUser(c *fiber.Ctx) *model.User
- func GetByEmail(email string) (error, *model.User)
- func GetByID(id uint) *model.User
- func SuperAccessCheck(c *fiber.Ctx, obj *model.AdminObject) error
- func UpdateFields(user *model.User, vals map[string]any) error
- func UpdateLoginTime(userID uint) error
- func UpdatePassword(user *model.User, password string) error
Constants ¶
View Source
const ( KeyDB = "admin.user.gorm.db" KeyNoCheckRouter = "admin.user.router.nocheck" KeyCheckRouter = "admin.user.router.check" )
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶ added in v0.2.0
func SuperAccessCheck ¶
func SuperAccessCheck(c *fiber.Ctx, obj *model.AdminObject) error
func UpdateLoginTime ¶ added in v0.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.