refactor(recorder): 重构录音服务业务数据处理逻辑
- 移除 BusiType 类型定义,简化业务数据处理接口 - 修改 getBusinessData 方法,移除 type 参数,改为直接获取完整记录数据 - 更新 onAudioStop 方法参数命名,使用下划线前缀表示未使用参数 - 简化 updateBusinessData 方法,移除 type 参数,自动根据字段判断缓存或持久化 - 重构 DefaultRecorderStrategy,移除复杂的策略配置映射 - 实现统一的 processBusinessData 方法处理数据缓存和持久化逻辑 - 更新 IBusinessDataHandler 接口定义,使用新的方法签名 - 优化数据合并逻辑,使用深拷贝避免引用问题 - 添加错误处理和空值检查,提高代码健壮性
Showing
4 changed files
with
23 additions
and
12 deletions
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment