重构: 账号管理抽离、强类型返回、消除反射、删除死字段
- 抽离账号管理为独立 AccountStore,Scheduler 只持有引用, 职责单一化(scheduler.go 减少 ~110 行) - Wails 绑定方法返回结构体替代 map[string]any(新增 responses.go), 前端获得强类型,字段名保持兼容无需改前端 - ExchangeRecord 移至 types 包,消除 types↔client 循环依赖 - extractAPIStatus 用 apiResponder 接口替代 reflect 逐字段查找, types.APIResponse 与 ExchangeListResponse 实现 APIStatus 方法 - 删除 types.Account.Password 死字段(鉴权仅用 Cookie) - 重新生成 Wails 绑定,前端 vue-tsc 类型检查通过
This commit is contained in:
@@ -31,3 +31,5 @@ yml.txt
|
||||
*.app
|
||||
.DS_Store
|
||||
.workbuddy
|
||||
.claude
|
||||
|
||||
|
||||
Reference in New Issue
Block a user