feat(recorder): 重构录音服务为策略模式并增加业务数据处理能力
- 引入策略模式,通过 IRecorderStrategy 接口支持可插拔的业务逻辑 - 新增业务数据处理器接口 IBusinessDataHandler 用于处理客户、物料等业务数据 - 实现默认的汽车销售策略 DefaultRecorderStrategy - 添加策略工厂 RecorderStrategyFactory 用于管理策略实例 - 重构 DBRecord 类以支持动态表结构,根据策略自动添加数据库字段 - 优化 RecordService 导出方式,提供单例对象 recordService - 更新文件引用路径,统一使用双引号并修复导入语句 - 移除 DBBase 中的冗余 isOpen 检查,直接调用 init() 方法 - 添加详细的 README 文档说明如何使用录音服务和自定义策略
Showing
24 changed files
with
858 additions
and
382 deletions
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
No preview for this file type
-
Please register or sign in to post a comment