package user type OpenIdSetRequest struct { Code string `json:"code"` //微信code OpenId string `json:"openId"` //邀请好友的openId } type OpenIdSetResponse struct { SessionKey string `json:"session_key,omitempty"` OpenId string `json:"openid,omitempty"` Errcode int `json:"errcode,omitempty"` Errmsg string `json:"errmsg,omitempty"` }