users

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Become

func Become(c *fiber.Ctx) error

func Create

func Create(c *fiber.Ctx) error

func Delete

func Delete(c *fiber.Ctx) error

func Edit

func Edit(c *fiber.Ctx) error

func List

func List(c *fiber.Ctx) error

func ViewCreate

func ViewCreate(c *fiber.Ctx) error

func ViewEdit

func ViewEdit(c *fiber.Ctx) error

Types

type CreateForm

type CreateForm struct {
	Username        string `form:"username" validate:"required,max=20" transform:"trim"`
	Password        string `form:"password" validate:"required,min=4" transform:"trim"`
	ConfirmPassword string `form:"confirm_password" validate:"required" transform:"trim"`
	Role            string `form:"role" validate:"required,role"`
}

type EditForm

type EditForm struct {
	Password        string `form:"password" validate:"omitempty,min=4" transform:"trim"`
	ConfirmPassword string `form:"confirm_password" transform:"trim"`
	Role            string `form:"role" validate:"required,role"`
}

Jump to

Keyboard shortcuts

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