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