auth

package
Version: v0.0.0-...-2b5e5cc Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminLogin

type AdminLogin struct {
	AdminID  uint
	Token    string
	Remember bool
	IP       string
}

func (*AdminLogin) AddAdminLogin

func (al *AdminLogin) AddAdminLogin() error

func (*AdminLogin) GetAdminLogin

func (al *AdminLogin) GetAdminLogin() (*auth.AdminLogin, error)

type Login

type Login struct {
	Account  string `json:"account" binding:"required"`
	Password string `json:"password" binding:"required"`
}

Login is vaildation struct

Source Files

Jump to

Keyboard shortcuts

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