|
@@ -7,6 +7,7 @@ import ( |
|
|
"applet/app/e" |
|
|
"applet/app/e" |
|
|
"applet/app/enum" |
|
|
"applet/app/enum" |
|
|
"applet/app/utils" |
|
|
"applet/app/utils" |
|
|
|
|
|
"fmt" |
|
|
"github.com/gin-gonic/gin" |
|
|
"github.com/gin-gonic/gin" |
|
|
"time" |
|
|
"time" |
|
|
) |
|
|
) |
|
@@ -14,7 +15,7 @@ import ( |
|
|
func UserInfo(c *gin.Context) { |
|
|
func UserInfo(c *gin.Context) { |
|
|
//1、获取用户信息 |
|
|
//1、获取用户信息 |
|
|
userInfo := svc.GetUser(c) |
|
|
userInfo := svc.GetUser(c) |
|
|
|
|
|
|
|
|
|
|
|
fmt.Println(">>>>>>>>>>>>>userInfo", userInfo) |
|
|
//2、获取用户身份信息 |
|
|
//2、获取用户身份信息 |
|
|
userIdentityDb := db.UserIdentityDb{} |
|
|
userIdentityDb := db.UserIdentityDb{} |
|
|
userIdentityDb.Set(userInfo.Id) |
|
|
userIdentityDb.Set(userInfo.Id) |
|
|