ddns: add listProviders api (#446)

* ddns: add listProviders api

* fix swagger
This commit is contained in:
UUBulb
2024-10-22 00:04:17 +08:00
committed by GitHub
parent 7e6864fa8c
commit 15585ef12e
6 changed files with 57 additions and 92 deletions

View File

@@ -67,7 +67,7 @@ func GetDDNSProvidersFromProfiles(profileId []uint64, ip *ddns2.IP) ([]*ddns2.Pr
provider.Setter = &tencentcloud.Provider{SecretId: profile.AccessID, SecretKey: profile.AccessSecret}
providers = append(providers, provider)
default:
return nil, fmt.Errorf("无法找到配置的DDNS提供者ID %d", profile.Provider)
return nil, fmt.Errorf("无法找到配置的DDNS提供者 %s", profile.Provider)
}
}
return providers, nil