|
|
@@ -3,15 +3,12 @@ package mw |
|
|
|
import ( |
|
|
|
"applet/app/customer/svc" |
|
|
|
"applet/app/e" |
|
|
|
"fmt" |
|
|
|
"github.com/gin-gonic/gin" |
|
|
|
) |
|
|
|
|
|
|
|
// 检查权限, 签名等等 |
|
|
|
func Auth(c *gin.Context) { |
|
|
|
user, err := svc.CheckUser(c) |
|
|
|
fmt.Println("user>>>>>>>>>", user) |
|
|
|
fmt.Println("err>>>>>>>>>", err) |
|
|
|
if err != nil { |
|
|
|
switch err.(type) { |
|
|
|
case e.E: |
|
|
|