feat: add email in userinfo

This commit is contained in:
liuyuanchuang
2026-03-06 14:02:04 +08:00
parent 7df6587fd6
commit b5d177910c
2 changed files with 2 additions and 9 deletions

View File

@@ -100,15 +100,9 @@ func (h *UserEndpoint) GetUserInfo(ctx *gin.Context) {
return
}
status := 0
if user.ID > 0 {
status = 1
}
ctx.JSON(http.StatusOK, common.SuccessResponse(ctx, model.UserInfoResponse{
Username: user.Username,
Phone: user.Phone,
Status: status,
Email: user.Email,
}))
}