mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 21:50:28 +08:00
域名解析支持华为云解析DNS
This commit is contained in:
@@ -67,6 +67,10 @@ func (this *CreatePopupAction) RunPost(params struct {
|
|||||||
ParamAccessKeyId string
|
ParamAccessKeyId string
|
||||||
ParamAccessKeySecret string
|
ParamAccessKeySecret string
|
||||||
|
|
||||||
|
// HuaweiDNS
|
||||||
|
ParamHuaweiAccessKeyId string
|
||||||
|
ParamHuaweiAccessKeySecret string
|
||||||
|
|
||||||
// DNS.COM
|
// DNS.COM
|
||||||
ParamApiKey string
|
ParamApiKey string
|
||||||
ParamApiSecret string
|
ParamApiSecret string
|
||||||
@@ -111,6 +115,15 @@ func (this *CreatePopupAction) RunPost(params struct {
|
|||||||
|
|
||||||
apiParams["accessKeyId"] = params.ParamAccessKeyId
|
apiParams["accessKeyId"] = params.ParamAccessKeyId
|
||||||
apiParams["accessKeySecret"] = params.ParamAccessKeySecret
|
apiParams["accessKeySecret"] = params.ParamAccessKeySecret
|
||||||
|
case "huaweiDNS":
|
||||||
|
params.Must.
|
||||||
|
Field("paramHuaweiAccessKeyId", params.ParamHuaweiAccessKeyId).
|
||||||
|
Require("请输入AccessKeyId").
|
||||||
|
Field("paramHuaweiAccessKeySecret", params.ParamHuaweiAccessKeySecret).
|
||||||
|
Require("请输入AccessKeySecret")
|
||||||
|
|
||||||
|
apiParams["accessKeyId"] = params.ParamHuaweiAccessKeyId
|
||||||
|
apiParams["accessKeySecret"] = params.ParamHuaweiAccessKeySecret
|
||||||
case "dnscom":
|
case "dnscom":
|
||||||
params.Must.
|
params.Must.
|
||||||
Field("paramApiKey", params.ParamApiKey).
|
Field("paramApiKey", params.ParamApiKey).
|
||||||
|
|||||||
@@ -96,6 +96,10 @@ func (this *UpdatePopupAction) RunPost(params struct {
|
|||||||
ParamAccessKeyId string
|
ParamAccessKeyId string
|
||||||
ParamAccessKeySecret string
|
ParamAccessKeySecret string
|
||||||
|
|
||||||
|
// HuaweiDNS
|
||||||
|
ParamHuaweiAccessKeyId string
|
||||||
|
ParamHuaweiAccessKeySecret string
|
||||||
|
|
||||||
// DNS.COM
|
// DNS.COM
|
||||||
ParamApiKey string
|
ParamApiKey string
|
||||||
ParamApiSecret string
|
ParamApiSecret string
|
||||||
@@ -142,6 +146,15 @@ func (this *UpdatePopupAction) RunPost(params struct {
|
|||||||
|
|
||||||
apiParams["accessKeyId"] = params.ParamAccessKeyId
|
apiParams["accessKeyId"] = params.ParamAccessKeyId
|
||||||
apiParams["accessKeySecret"] = params.ParamAccessKeySecret
|
apiParams["accessKeySecret"] = params.ParamAccessKeySecret
|
||||||
|
case "huaweiDNS":
|
||||||
|
params.Must.
|
||||||
|
Field("paramHuaweiAccessKeyId", params.ParamHuaweiAccessKeyId).
|
||||||
|
Require("请输入AccessKeyId").
|
||||||
|
Field("paramHuaweiAccessKeySecret", params.ParamHuaweiAccessKeySecret).
|
||||||
|
Require("请输入AccessKeySecret")
|
||||||
|
|
||||||
|
apiParams["accessKeyId"] = params.ParamHuaweiAccessKeyId
|
||||||
|
apiParams["accessKeySecret"] = params.ParamHuaweiAccessKeySecret
|
||||||
case "dnscom":
|
case "dnscom":
|
||||||
params.Must.
|
params.Must.
|
||||||
Field("paramApiKey", params.ParamApiKey).
|
Field("paramApiKey", params.ParamApiKey).
|
||||||
|
|||||||
@@ -61,6 +61,24 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
|
<!-- 华为云 -->
|
||||||
|
<tbody v-if="type == 'huaweiDNS'">
|
||||||
|
<tr>
|
||||||
|
<td>AccessKeyId *</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="paramHuaweiAccessKeyId" maxlength="100"/>
|
||||||
|
<p class="comment">登录华为云控制台 -- 在"我的凭证 -- 访问密钥"中创建和获取。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>AccessKeySecret *</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="paramHuaweiAccessKeySecret" maxlength="100"/>
|
||||||
|
<p class="comment">登录华为云控制台 -- 在"我的凭证 -- 访问密钥"中创建和获取。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
|
||||||
<!-- CloudFlare -->
|
<!-- CloudFlare -->
|
||||||
<tbody v-if="type == 'cloudFlare'">
|
<tbody v-if="type == 'cloudFlare'">
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -43,6 +43,18 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
|
<!-- HuaweiDNS -->
|
||||||
|
<tbody v-if="provider.type == 'huaweiDNS'">
|
||||||
|
<tr>
|
||||||
|
<td>AccessKeyId</td>
|
||||||
|
<td>{{provider.apiParams.accessKeyId}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>AccessKeySecret</td>
|
||||||
|
<td>{{provider.apiParams.accessKeySecret}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
|
||||||
<!-- CloudFlare -->
|
<!-- CloudFlare -->
|
||||||
<tbody v-if="provider.type == 'cloudFlare'">
|
<tbody v-if="provider.type == 'cloudFlare'">
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -60,6 +60,24 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
|
<!-- 华为云 -->
|
||||||
|
<tbody v-if="provider.type == 'huaweiDNS'">
|
||||||
|
<tr>
|
||||||
|
<td>AccessKeyId *</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="paramHuaweiAccessKeyId" maxlength="100" v-model="provider.params.accessKeyId"/>
|
||||||
|
<p class="comment">登录华为云控制台 -- 在"我的凭证 -- 访问密钥"中创建和获取。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>AccessKeySecret *</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="paramHuaweiAccessKeySecret" maxlength="100" v-model="provider.params.accessKeySecret"/>
|
||||||
|
<p class="comment">登录华为云控制台 -- 在"我的凭证 -- 访问密钥"中创建和获取。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
|
||||||
|
|
||||||
<!-- CloudFlare -->
|
<!-- CloudFlare -->
|
||||||
<tbody v-if="provider.type == 'cloudFlare'">
|
<tbody v-if="provider.type == 'cloudFlare'">
|
||||||
|
|||||||
Reference in New Issue
Block a user