web

package
v0.0.0-...-7873db6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: Apache-2.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(host string, 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