import { BaseResponse } from '../base.response.interface'; interface GetUserInfoByTokenResponseData { /** 用户的标识,对当前公众号唯一 */ openid: string; /** * 用户在开放平台上的唯一标识 * @description 只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段。 */ unionid?: string; /** 用户的昵称 */ nickname: string; /** * 用户性别 * @description `0`-未知 * @description `1`-男性 * @description `2`-女性 */ sex: 0 | 1 | 2; /** 用户所在城市 */ city: string; /** 用户所在国家 */ country: string; /** 用户所在省份 */ province: string; /** * 用户头像,最后一个数值代表正方形头像大小(有0、46、64、96、132数值可选,0代表640*640正方形头像) * @description 用户没有头像时该项为空。若用户更换头像,原有头像URL将失效。 */ headimgurl: string; /** 用户特权信息,json 数组,如微信沃卡用户为(chinaunicom) */ privilege: string[]; } /** 根据Token获取用户信息返回结果 */ export interface GetUserInfoByTokenResponse extends BaseResponse { } export {};