|
@@ -119,6 +119,7 @@ type Detail struct {
|
|
|
NickName string `json:"nick_name" description:"用户昵称"`
|
|
|
HeadImgUrl string `json:"head_img_url" description:"用户头像,最后一个数值代表正方形头像大小(有0、46、64、96、132数值可选,0代表640*640正方形头像),用户没有头像时该项为空"`
|
|
|
UserId uint64 `json:"user_id" description:"用户ID"`
|
|
|
+ IsBind int `json:"is_bind" description:"是否绑定了微信"`
|
|
|
}
|
|
|
|
|
|
// GetUserInfo 获取用户我的页面详情数据
|
|
@@ -221,6 +222,11 @@ func GetUserInfo(userInfo user.UserInfo) (userDetail Detail, err error, errMsg s
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ isBind := 0
|
|
|
+ if userInfo.UserID > 0 {
|
|
|
+ isBind = 1
|
|
|
+ }
|
|
|
+
|
|
|
userDetail = Detail{
|
|
|
CompanyName: companyName, //客户名称(公司名称)
|
|
|
Status: status, //产品状态
|
|
@@ -239,6 +245,7 @@ func GetUserInfo(userInfo user.UserInfo) (userDetail Detail, err error, errMsg s
|
|
|
NickName: userInfo.NickName,
|
|
|
HeadImgUrl: headimgurl,
|
|
|
UserId: userInfo.UserID,
|
|
|
+ IsBind: isBind,
|
|
|
}
|
|
|
|
|
|
return
|