refactor: 使用any替代interface{}以增强类型灵活性

This commit is contained in:
tbphp
2025-07-05 20:57:16 +08:00
parent adfaf3c1e7
commit 53bf670918
2 changed files with 4 additions and 4 deletions

View File

@@ -190,7 +190,7 @@ func (s *KeyCronService) batchUpdateKeyStatus(keys []models.APIKey) {
err := s.DB.Transaction(func(tx *gorm.DB) error {
for _, key := range keys {
updates := map[string]interface{}{
updates := map[string]any{
"status": key.Status,
"error_reason": key.ErrorReason,
}