style: format go code with tab indent #605

This commit is contained in:
Jacky 2024-10-14 09:24:48 +08:00
parent 96cff98c66
commit 598d91a417
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
15 changed files with 244 additions and 251 deletions

View file

@ -1,27 +1,26 @@
package certificate
import (
"github.com/0xJacky/Nginx-UI/internal/cert/dns"
"github.com/gin-gonic/gin"
"net/http"
"github.com/0xJacky/Nginx-UI/internal/cert/dns"
"github.com/gin-gonic/gin"
"net/http"
)
func GetDNSProvidersList(c *gin.Context) {
c.JSON(http.StatusOK, dns.GetProvidersList())
c.JSON(http.StatusOK, dns.GetProvidersList())
}
func GetDNSProvider(c *gin.Context) {
code := c.Param("code")
code := c.Param("code")
provider, ok := dns.GetProvider(code)
provider, ok := dns.GetProvider(code)
if !ok {
c.JSON(http.StatusNotFound, gin.H{
"message": "provider not found",
})
return
}
if !ok {
c.JSON(http.StatusNotFound, gin.H{
"message": "provider not found",
})
return
}
c.JSON(http.StatusOK, provider)
c.JSON(http.StatusOK, provider)
}