Documentation ¶
Index ¶
- Constants
- func CheckConfig()
- func CheckValue(key, defaultValue string)
- func Create(user *model.User) error
- func Current(c *fiber.Ctx) *model.User
- func GetBoolValue(key string) bool
- func GetByEmail(email string) (error, *model.User)
- func GetByID(id uint) *model.User
- func GetIntValue(key string, defaultVal int) int
- func GetValue(key string) string
- func SetValue(key, value string)
- func SuperAccessCheck(c *fiber.Ctx, obj *model.AdminObject) error
- func UpdateFields(user *model.User, vals map[string]any) error
- func UpdateLogin(c *fiber.Ctx, userID uint) error
- func UpdatePassword(user *model.User, password string) error
- func WithAdminAuth(c *fiber.Ctx) error
- type ReqLogin
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 CheckConfig ¶ added in v0.2.1
func CheckConfig()
func CheckValue ¶ added in v0.2.1
func CheckValue(key, defaultValue string)
func GetBoolValue ¶ added in v0.2.1
func GetIntValue ¶ added in v0.2.1
func SuperAccessCheck ¶
func SuperAccessCheck(c *fiber.Ctx, obj *model.AdminObject) error
func UpdateLogin ¶ added in v0.2.1
func WithAdminAuth ¶ added in v0.2.1
func WithAdminAuth(c *fiber.Ctx) error
Types ¶
Click to show internal directories.
Click to hide internal directories.