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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.