identify

package
v0.0.0-...-041f4c2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLogin

func CheckLogin(ctx iris.Context)

func CheckToken

func CheckToken(ctx iris.Context)

CheckToken 检查是否有token

ctx.Path() => 对应全路径 比如/identify/api/get/token ctx.FormValues() => 返回get和post参数,格式如下

(map[string][]string) (len=3) {
	(string) (len=3) "nnn": ([]string) (len=1 cap=1) {
	(string) (len=4) "dfdf"
},
	(string) (len=5) "test1": ([]string) (len=1 cap=1) {
	(string) (len=6) "dfdfdf"
},
	(string) (len=4) "dfdf": ([]string) (len=1 cap=1) {
	(string) (len=5) "dfdfd"
}

}

@Author renjingneng

@CreateTime 2020/8/15 15:21

func InitUser

func InitUser(ctx iris.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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