fix(test): 修复 CI 测试和 lint 错误

- 为所有 mock 实现添加 GetByIDs 方法以满足 AccountRepository 接口
- 重构 account_handler.go 中的类型断言,使用类型安全的变量
- 修复 gofmt 格式问题
This commit is contained in:
IanShaw027
2026-01-01 15:16:12 +08:00
parent 48764e15a5
commit c63192fcb5
7 changed files with 43 additions and 17 deletions

View File

@@ -16,4 +16,3 @@ func TestDriveStorageInfo(t *testing.T) {
t.Errorf("Expected usage 50GB, got %d", info.Usage)
}
}