用户信息与绑定

用 Bearer 拉取/更新当前用户资料,以及邮箱、微信绑定关系。

GET/api/v1/meBearer
当前登录用户
响应
{
  "user": {
    "id": 123,
    "nickname": "昵称",
    "avatar_url": "https://static.../a.webp",
    "email": "a@b.com",
    "has_password": true,
    "has_wechat_web": false,
    "has_mp": true,
    "unionid": "oUnion..."
  }
}
PATCH/api/v1/meBearer
更新昵称 / 头像 / 背景图(URL 须 http(s))
json
{ "nickname": "新昵称", "avatar_url": "https://static.../new.webp" }

绑定关系

方法 路径说明
POST /api/v1/me/bind-email/code无邮箱账号:发送绑定验证码
POST /api/v1/me/bind-email绑定邮箱并设密码,之后可邮箱密码登录同一账号
POST /api/v1/me/password改密码 {current_password, new_password}
GET /api/v1/me/bind-wechat/web/start发起 PC 扫码绑定微信
POST /api/v1/me/unbind-wechat解绑微信 {channel:"web"}
以上均为 Bearer 接口;unionid 用于公众号通知的身份对齐(见「查是否关注」)。