-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from Yohann0617/dev
update web and bug fix
- Loading branch information
Showing
19 changed files
with
448 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
create table if not exists `proxy_ip` | ||
( | ||
id varchar(256) not null, --'id' | ||
country varchar(64) null, --'国家代码' | ||
ip varchar(64) not null, --'ip地址' | ||
ping_value INT null, --'ping值' | ||
id varchar(256) not null, --'id' | ||
country varchar(64) null, --'国家代码' | ||
ip varchar(64) not null, --'ip地址' | ||
ping_value INT null, --'ping值' | ||
create_time datetime default (datetime('now', 'localtime')) not null,-- '记录创建时间' | ||
primary key ("id") | ||
);--代理ip表 | ||
|
||
CREATE INDEX idx_country ON proxy_ip (country); | ||
CREATE INDEX idx_ip ON proxy_ip (ip); | ||
CREATE INDEX idx_ping_value ON proxy_ip (ping_value); | ||
CREATE INDEX idx_ping_value ON proxy_ip (ping_value); | ||
CREATE INDEX idx_create_time ON proxy_ip (create_time DESC); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
foreign-server/src/main/java/com/proxyip/select/bean/params/AddProxyIpToDbParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.proxyip.select.bean.params; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* <p> | ||
* AddProxyIpToDbParams | ||
* </p > | ||
* | ||
* @author yuhui.fan | ||
* @since 2024/4/1 16:51 | ||
*/ | ||
@Data | ||
public class AddProxyIpToDbParams { | ||
|
||
List<String> ipList; | ||
} |
11 changes: 3 additions & 8 deletions
11
foreign-server/src/main/java/com/proxyip/select/bean/params/AddSingleDnsRecordParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
package com.proxyip.select.bean.params; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* @projectName: scan-proxyip | ||
* @package: com.proxyip.select.bean.params | ||
* @className: AddSingleDnsRecordParams | ||
* @author: Yohann | ||
* @date: 2024/3/30 17:54 | ||
*/ | ||
@Data | ||
public class AddSingleDnsRecordParams { | ||
|
||
private String id; | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
} |
45 changes: 3 additions & 42 deletions
45
foreign-server/src/main/java/com/proxyip/select/bean/params/ProxyIpPageParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,18 @@ | ||
package com.proxyip.select.bean.params; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* @projectName: scan-proxyip | ||
* @package: com.proxyip.select.bean.params | ||
* @className: ProxyIpPageParams | ||
* @author: Yohann | ||
* @date: 2024/3/30 14:37 | ||
*/ | ||
@Data | ||
public class ProxyIpPageParams { | ||
|
||
private String keyword; | ||
private long currentPage; | ||
private long pageSize; | ||
|
||
public ProxyIpPageParams() { | ||
} | ||
|
||
public ProxyIpPageParams(String keyword, long currentPage, long pageSize) { | ||
this.keyword = keyword; | ||
this.currentPage = currentPage; | ||
this.pageSize = pageSize; | ||
} | ||
|
||
public String getKeyword() { | ||
return keyword; | ||
} | ||
|
||
public void setKeyword(String keyword) { | ||
this.keyword = keyword; | ||
} | ||
|
||
public long getCurrentPage() { | ||
return currentPage; | ||
} | ||
|
||
public void setCurrentPage(long currentPage) { | ||
this.currentPage = currentPage; | ||
} | ||
|
||
public long getPageSize() { | ||
return pageSize; | ||
} | ||
|
||
public void setPageSize(long pageSize) { | ||
this.pageSize = pageSize; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "ProxyIpPageParams{" + | ||
"keyword='" + keyword + '\'' + | ||
", currentPage=" + currentPage + | ||
", pageSize=" + pageSize + | ||
'}'; | ||
} | ||
} |
Oops, something went wrong.