mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	域名解析支持华为云解析DNS
This commit is contained in:
		@@ -67,6 +67,10 @@ func (this *CreatePopupAction) RunPost(params struct {
 | 
			
		||||
	ParamAccessKeyId     string
 | 
			
		||||
	ParamAccessKeySecret string
 | 
			
		||||
 | 
			
		||||
	// HuaweiDNS
 | 
			
		||||
	ParamHuaweiAccessKeyId     string
 | 
			
		||||
	ParamHuaweiAccessKeySecret string
 | 
			
		||||
 | 
			
		||||
	// DNS.COM
 | 
			
		||||
	ParamApiKey    string
 | 
			
		||||
	ParamApiSecret string
 | 
			
		||||
@@ -111,6 +115,15 @@ func (this *CreatePopupAction) RunPost(params struct {
 | 
			
		||||
 | 
			
		||||
		apiParams["accessKeyId"] = params.ParamAccessKeyId
 | 
			
		||||
		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":
 | 
			
		||||
		params.Must.
 | 
			
		||||
			Field("paramApiKey", params.ParamApiKey).
 | 
			
		||||
 
 | 
			
		||||
@@ -96,6 +96,10 @@ func (this *UpdatePopupAction) RunPost(params struct {
 | 
			
		||||
	ParamAccessKeyId     string
 | 
			
		||||
	ParamAccessKeySecret string
 | 
			
		||||
 | 
			
		||||
	// HuaweiDNS
 | 
			
		||||
	ParamHuaweiAccessKeyId     string
 | 
			
		||||
	ParamHuaweiAccessKeySecret string
 | 
			
		||||
 | 
			
		||||
	// DNS.COM
 | 
			
		||||
	ParamApiKey    string
 | 
			
		||||
	ParamApiSecret string
 | 
			
		||||
@@ -142,6 +146,15 @@ func (this *UpdatePopupAction) RunPost(params struct {
 | 
			
		||||
 | 
			
		||||
		apiParams["accessKeyId"] = params.ParamAccessKeyId
 | 
			
		||||
		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":
 | 
			
		||||
		params.Must.
 | 
			
		||||
			Field("paramApiKey", params.ParamApiKey).
 | 
			
		||||
 
 | 
			
		||||
@@ -61,6 +61,24 @@
 | 
			
		||||
			</tr>
 | 
			
		||||
		</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 -->
 | 
			
		||||
        <tbody v-if="type == 'cloudFlare'">
 | 
			
		||||
            <tr>
 | 
			
		||||
 
 | 
			
		||||
@@ -43,6 +43,18 @@
 | 
			
		||||
		</tr>
 | 
			
		||||
	</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 -->
 | 
			
		||||
    <tbody v-if="provider.type == 'cloudFlare'">
 | 
			
		||||
        <tr>
 | 
			
		||||
 
 | 
			
		||||
@@ -60,6 +60,24 @@
 | 
			
		||||
			</tr>
 | 
			
		||||
		</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 -->
 | 
			
		||||
        <tbody v-if="provider.type == 'cloudFlare'">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user