增加DNS服务商账号管理

This commit is contained in:
刘祥超
2020-11-11 21:32:19 +08:00
parent 1037b83742
commit a697ec65ac
15 changed files with 464 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ package serverNames
import (
"encoding/json"
"github.com/TeaOSLab/EdgeAdmin/internal/oplogs"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/servers/serverutils"
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
@@ -36,6 +37,9 @@ func (this *IndexAction) RunGet(params struct {
}
this.Data["serverNames"] = serverNamesConfig
// DNS
this.Data["dnsName"] = server.DnsName
this.Show()
}
@@ -44,6 +48,9 @@ func (this *IndexAction) RunPost(params struct {
ServerNames string
Must *actions.Must
}) {
// 记录日志
this.CreateLog(oplogs.LevelInfo, "修改代理服务 %d 域名", params.ServerId)
serverNames := []*serverconfigs.ServerNameConfig{}
err := json.Unmarshal([]byte(params.ServerNames), &serverNames)
if err != nil {