admin

package
v0.0.0-...-1ae8f5d Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(c *fiber.Ctx) error

func NewAdmin

func NewAdmin(c *fiber.Ctx) error

func Setup

func Setup()

Types

type Admin

type Admin struct {
	gorm.Model
	Account  string `gorm:"size:255; unique" json:"account"`
	Password string `gorm:"size:255" json:"password"`
}

func GetAdminByJwtToken

func GetAdminByJwtToken(c *fiber.Ctx) *Admin

Jump to

Keyboard shortcuts

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