web

package
v0.0.0-...-312c5a9 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(r *gin.Engine) *jwt.GinJWTMiddleware

Auth 权限router

func RequestUsername

func RequestUsername(c *gin.Context) string

RequestUsername 获取请求接口的用户名

func Start

func Start(port int, isSSL bool)

Start web启动入口

Types

type Login

type Login struct {
	Username string `form:"username" json:"username" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}

Login auth用户验证结构体

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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