feat: 设备绑定与配对模块
新增: - SplashFragment 启动分发(初始化+绑定检查+导航到Home或Bind) - BindFragment 二维码配对页面(ZXing生成QR码+MQTT绑定监听) - WatchBindInfo 绑定信息数据类 修改: - nav_main.xml startDestination改为SplashFragment,添加导航action - HomeFragment 移除初始化逻辑到Splash,添加MQTT解绑处理 - CommonApi getWatchByImei返回类型改为WatchBindInfo Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package com.xiaoqu.watch.data.device
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
||||
/**
|
||||
* 设备绑定信息数据类
|
||||
* 对应 getWatchByImei API 返回和 MQTT messageType=2 消息中的用户信息
|
||||
*/
|
||||
data class WatchBindInfo(
|
||||
@SerializedName("userId") val userId: Long = 0,
|
||||
@SerializedName("mobile") val mobile: String = "",
|
||||
@SerializedName("userName") val userName: String = "",
|
||||
@SerializedName("headUrl") val headUrl: String = ""
|
||||
)
|
||||
Reference in New Issue
Block a user