You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package middleware
|
|
|
|
import (
|
|
"base/app/lib/bean"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func ManageAuth(c *gin.Context) {
|
|
token := c.GetHeader("Ansuex-Manage-Token")
|
|
if token == "" {
|
|
bean.Response.ResultFail(c, 100000, "用户未登录")
|
|
c.Abort()
|
|
return
|
|
}
|
|
//c.Set("data", data)
|
|
}
|