REM:
1. POM文件修改版本为2.0.3
2. 修正checkstyle问题
This commit is contained in:
HuangXin 2020-12-09 09:48:15 +08:00
parent 548914f306
commit 5de17d4478
3 changed files with 18 additions and 14 deletions

View File

@ -18,7 +18,7 @@
</parent> </parent>
<groupId>com.dispose</groupId> <groupId>com.dispose</groupId>
<artifactId>phoenix_ddos_handle</artifactId> <artifactId>phoenix_ddos_handle</artifactId>
<version>2.0.1</version> <version>2.0.3</version>
<name>phoenix_ddos_handle</name> <name>phoenix_ddos_handle</name>
<description>Dispose Platform</description> <description>Dispose Platform</description>
<dependencies> <dependencies>

View File

@ -1,8 +1,7 @@
package com.dispose.ability.impl; package com.dispose.ability.impl;
import com.dispose.ability.DisposeAbility;
import cn.hutool.http.HttpResponse; import cn.hutool.http.HttpResponse;
import com.dispose.ability.DisposeAbility;
import com.dispose.common.DisposeCapacityType; import com.dispose.common.DisposeCapacityType;
import com.dispose.common.DisposeObjectType; import com.dispose.common.DisposeObjectType;
import com.dispose.common.ErrorCode; import com.dispose.common.ErrorCode;
@ -22,6 +21,11 @@ import org.springframework.stereotype.Component;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
/**
* The type Hua wei ability.
*
* @author <huangxin@cmhi.chinamoblie.com>
*/
@Component @Component
@Slf4j @Slf4j
public class HuaWeiAbilityImpl implements DisposeAbility { public class HuaWeiAbilityImpl implements DisposeAbility {

View File

@ -10,18 +10,18 @@ import org.springframework.web.bind.annotation.RequestMethod;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
/** /**
* The type Hua Wei interface. * The type Hua wei interface.
* *
* @author <chenlinghy@cmhi.chinamoblie.com> * @author <huangxin@cmhi.chinamoblie.com>
*/ */
public class HuaWeiInterface { public class HuaWeiInterface {
/** /**
* Login protocol resp dto. * Auth http response.
* *
* @param baseUrlPath the base url path * @param baseUrlPath the base url path
* @param username the username * @param username the username
* @param password the password * @param password the password
* @return the http resp * @return the http response
*/ */
public HttpResponse auth(String baseUrlPath, String username, String password) { public HttpResponse auth(String baseUrlPath, String username, String password) {
return RestfulInterface.huaWeiProRun(baseUrlPath + "/auth", 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 baseUrlPath the base url path
* @param token the token * @param token the token
* @param zone_ip zone ip * @param zone_ip the zone ip
* @return the delete zone status * @return the error code
*/ */
public ErrorCode createDivert(String baseUrlPath, String token, String[] zone_ip) { public ErrorCode createDivert(String baseUrlPath, String token, String[] zone_ip) {
//获取HTTP部分 //获取HTTP部分
@ -65,11 +65,11 @@ public class HuaWeiInterface {
/** /**
* delete divert protocol resp dto. * Delete zones error code.
* *
* @param baseUrlPath the base url path * @param baseUrlPath the base url path
* @param token the token * @param token the token
* @return the delete zone status * @return the error code
*/ */
public ErrorCode deleteZones(String baseUrlPath, String token) { public ErrorCode deleteZones(String baseUrlPath, String token) {
//获取HTTP部分 //获取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 baseUrlPath the base url path
* @param token the token * @param token the token
* @return the http resp * @return the http response
*/ */
public HttpResponse queryAllZones(String baseUrlPath, String token) { public HttpResponse queryAllZones(String baseUrlPath, String token) {
return RestfulInterface.huaWeiProRun(baseUrlPath, return RestfulInterface.huaWeiProRun(baseUrlPath,