From 5de17d44787ff9bad469df8ee265db9bc543486a Mon Sep 17 00:00:00 2001 From: HuangXin Date: Wed, 9 Dec 2020 09:48:15 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20POM=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC=E4=B8=BA2.0.3=202.=20?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3checkstyle=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../ability/impl/HuaWeiAbilityImpl.java | 8 +++++-- .../dispose/protocol/HuaWeiInterface.java | 22 +++++++++---------- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/pom.xml b/pom.xml index 94b98ed7..b04080de 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ com.dispose phoenix_ddos_handle - 2.0.1 + 2.0.3 phoenix_ddos_handle Dispose Platform diff --git a/src/main/java/com/dispose/ability/impl/HuaWeiAbilityImpl.java b/src/main/java/com/dispose/ability/impl/HuaWeiAbilityImpl.java index 8f422494..4fdf3ba8 100644 --- a/src/main/java/com/dispose/ability/impl/HuaWeiAbilityImpl.java +++ b/src/main/java/com/dispose/ability/impl/HuaWeiAbilityImpl.java @@ -1,8 +1,7 @@ package com.dispose.ability.impl; -import com.dispose.ability.DisposeAbility; - import cn.hutool.http.HttpResponse; +import com.dispose.ability.DisposeAbility; import com.dispose.common.DisposeCapacityType; import com.dispose.common.DisposeObjectType; import com.dispose.common.ErrorCode; @@ -22,6 +21,11 @@ import org.springframework.stereotype.Component; import javax.annotation.Nullable; import javax.servlet.http.HttpServletResponse; +/** + * The type Hua wei ability. + * + * @author + */ @Component @Slf4j public class HuaWeiAbilityImpl implements DisposeAbility { diff --git a/src/main/java/com/huawei/dispose/protocol/HuaWeiInterface.java b/src/main/java/com/huawei/dispose/protocol/HuaWeiInterface.java index 1abc4609..ab5fa4e9 100644 --- a/src/main/java/com/huawei/dispose/protocol/HuaWeiInterface.java +++ b/src/main/java/com/huawei/dispose/protocol/HuaWeiInterface.java @@ -10,18 +10,18 @@ import org.springframework.web.bind.annotation.RequestMethod; import javax.servlet.http.HttpServletResponse; /** - * The type Hua Wei interface. + * The type Hua wei interface. * - * @author + * @author */ public class HuaWeiInterface { /** - * Login protocol resp dto. + * Auth http response. * * @param baseUrlPath the base url path * @param username the username * @param password the password - * @return the http resp + * @return the http response */ public HttpResponse auth(String baseUrlPath, String username, String password) { return RestfulInterface.huaWeiProRun(baseUrlPath + "/auth", @@ -32,12 +32,12 @@ public class HuaWeiInterface { /** - * create divert protocol resp dto. + * Create divert error code. * * @param baseUrlPath the base url path * @param token the token - * @param zone_ip zone ip - * @return the delete zone status + * @param zone_ip the zone ip + * @return the error code */ public ErrorCode createDivert(String baseUrlPath, String token, String[] zone_ip) { //获取HTTP部分 @@ -65,11 +65,11 @@ public class HuaWeiInterface { /** - * delete divert protocol resp dto. + * Delete zones error code. * * @param baseUrlPath the base url path * @param token the token - * @return the delete zone status + * @return the error code */ public ErrorCode deleteZones(String baseUrlPath, String token) { //获取HTTP部分 @@ -96,11 +96,11 @@ public class HuaWeiInterface { } /** - * query all zones protocol resp dto. + * Query all zones http response. * * @param baseUrlPath the base url path * @param token the token - * @return the http resp + * @return the http response */ public HttpResponse queryAllZones(String baseUrlPath, String token) { return RestfulInterface.huaWeiProRun(baseUrlPath,