IHttpRequestComponent

Http请求的组件,直接调用各平台原生AccountManager已实现的等接口,成功时统一返回Json字符串

Functions

Link copied to clipboard
abstract suspend fun accountBind(accountType: AccountType, vcode: String, password: String?): GWResult<String>

修改/绑定手机、邮箱

Link copied to clipboard
abstract suspend fun emailRegister(email: String, password: String, vcode: String, regRegion: String): GWResult<String>

邮箱注册

Link copied to clipboard
abstract suspend fun forgotPassword(accountType: AccountType, password: String, vcode: String): GWResult<String>

重置密码

Link copied to clipboard
abstract suspend fun login(accountType: AccountType, password: String): GWResult<String>

登录

Link copied to clipboard
abstract suspend fun logout(terminalId: String?): GWResult<String>

登出

Link copied to clipboard
abstract suspend fun modifyUserInfo(avatarUrl: String?, nick: String?, oldPwd: String?, newPwd: String?): GWResult<String>

修改用户信息

Link copied to clipboard
abstract suspend fun queryDefaultAvatarList(): GWResult<String>

查询默认头像列表

Link copied to clipboard
abstract suspend fun queryDeviceList(lastDeviceId: String? = null, deviceId: String? = null): GWResult<String>

查询列表或者单个设备,均调设备列表接口

Link copied to clipboard
abstract suspend fun queryMessageDetailList(tag: String, size: Int, lastId: String?): GWResult<String>

查询消息详情列表(二级)

Link copied to clipboard
abstract suspend fun queryMessageList(): GWResult<String>

查询消息列表(一级)

Link copied to clipboard
abstract suspend fun queryMessageUnreadCount(): GWResult<String>

查询消息未读数量

Link copied to clipboard
abstract suspend fun queryUserConfig(): GWResult<String>

查询用户配置(App支持的设备列表)

Link copied to clipboard
abstract suspend fun queryUserInfo(): GWResult<String>

查询用户信息

Link copied to clipboard
abstract suspend fun refreshUserToken(): GWResult<String>

刷新用户token

Link copied to clipboard
abstract suspend fun register(mobile: AccountType.Mobile, password: String, vcode: String, regRegion: String): GWResult<String>

注册

Link copied to clipboard
abstract suspend fun sendEmailCode(email: String, type: Int, password: String?): GWResult<String>

发送邮箱验证码

Link copied to clipboard
abstract suspend fun sendSmsCodeSecure(mobile: AccountType.Mobile, type: Int, ticket: String?, random: String?): GWResult<String>

发送短信验证码(带图形验证码)

Link copied to clipboard
abstract suspend fun unbindDevice(deviceId: String): GWResult<String>

解绑设备

Link copied to clipboard
abstract suspend fun unregister(userId: String, password: String?, sessionId: String, reasonType: Int, reasonDesc: String?): GWResult<String>

注销

Link copied to clipboard
abstract suspend fun updateMessageRead(tag: String?, deviceId: String?): GWResult<String>

更新消息已读

Link copied to clipboard
abstract suspend fun uploadPushToken(termId: String, token: String): GWResult<String>

上传推送token

Link copied to clipboard
abstract suspend fun verifyCode(code: String, type: Int): GWResult<String>

验证验证码