|
@@ -5,6 +5,7 @@ import ( |
|
|
"applet/app/md" |
|
|
"applet/app/md" |
|
|
"applet/app/svc" |
|
|
"applet/app/svc" |
|
|
"applet/app/utils" |
|
|
"applet/app/utils" |
|
|
|
|
|
"fmt" |
|
|
"github.com/gin-gonic/gin" |
|
|
"github.com/gin-gonic/gin" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
@@ -20,6 +21,7 @@ import ( |
|
|
// @Router /api/v1/userInfo [get] |
|
|
// @Router /api/v1/userInfo [get] |
|
|
func UserInfo(c *gin.Context) { |
|
|
func UserInfo(c *gin.Context) { |
|
|
user := svc.GetUser(c) |
|
|
user := svc.GetUser(c) |
|
|
|
|
|
fmt.Println(1233333) |
|
|
res := md.UserInfoResp{ |
|
|
res := md.UserInfoResp{ |
|
|
Id: utils.Int64ToStr(user.Id), |
|
|
Id: utils.Int64ToStr(user.Id), |
|
|
Phone: user.Phone, |
|
|
Phone: user.Phone, |
|
@@ -34,5 +36,6 @@ func UserInfo(c *gin.Context) { |
|
|
res.IsBindExtend = "1" |
|
|
res.IsBindExtend = "1" |
|
|
} |
|
|
} |
|
|
e.OutSuc(c, res, nil) |
|
|
e.OutSuc(c, res, nil) |
|
|
|
|
|
fmt.Println(1111111) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |