userManager
userManage
.getToken() ⇒
string
.getUid() ⇒
number
.getAppid() ⇒
string
.asyncUpdateAvatar(params) ⇒
Promise.<boolean>
.asyncUpdateNickName(params) ⇒
Promise.<boolean>
.asyncUpdateProfile(params) ⇒
Promise.<boolean>
.asyncUpdateSettings(settings) ⇒
Promise.<boolean>
userManage.getToken() ⇒ string
string
获取登录用户的token
Kind: static method of userManage
Returns: string
- 用户的token
userManage.getUid() ⇒ number
number
获取登录用户的uid
Kind: static method of userManage
Returns: number
- 用户ID
userManage.getAppid() ⇒ string
string
获取appid
Kind: static method of userManage
Returns: string
- APP ID
userManage.getConversationList() ⇒ Array.<ConversationItem>
Array.<ConversationItem>
获取最近会话列表
Kind: static method of userManage
userManage.asyncUpdateAvatar(params) ⇒ Promise.<boolean>
Promise.<boolean>
更新头像
Kind: static method of userManage
Returns: Promise.<boolean>
- 是否成功
params
object
参数
params.avatar
string
头像 url
userManage.asyncUpdateNickName(params) ⇒ Promise.<boolean>
Promise.<boolean>
更新昵称
Kind: static method of userManage
Returns: Promise.<boolean>
- 是否成功
params
object
参数
params.nick_name
string
昵称
userManage.asyncGetProfile() ⇒ Promise.<UserProfile>
Promise.<UserProfile>
获取用户profile
Kind: static method of userManage
Returns: Promise.<UserProfile>
- 用户信息
userManage.asyncUpdateProfile(params) ⇒ Promise.<boolean>
Promise.<boolean>
更新用户profile
Kind: static method of userManage
Returns: Promise.<boolean>
- 是否成功
params
object
params.description
string
描述信息
params.nick_name
string
昵称
params.private_info
string
私有信息,仅自己可见
params.public_info
string
公开信息,好友和陌生人可见
userManage.asyncGetSettings() ⇒ Promise.<UserSettings>
Promise.<UserSettings>
获取用户设置信息
Kind: static method of userManage
Returns: Promise.<UserSettings>
- 用户信息
userManage.asyncUpdateSettings(settings) ⇒ Promise.<boolean>
Promise.<boolean>
修改用户设置
Kind: static method of userManage
Returns: Promise.<boolean>
- 是否成功
Last updated
Was this helpful?