1.完成的excel批量新增、按id删除、批量删除、按id查询、分页查询、按id新增、修改审核状态

(excel批量新增还未http请求测试)
(批量新增、批量删除、修改审核状态已复用sy代码)
2、查询ip是否存在于白名单功能初步实现,仍不完善
This commit is contained in:
Hao Miao
2024-01-08 00:22:14 +08:00
parent db02907f0a
commit 1e9fe37d0d
10 changed files with 524 additions and 21 deletions

View File

@@ -1,33 +1,49 @@
package com.realtime.protection.configuration.entity.whitelist;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
@Data
public class WhiteListObject {
@JsonProperty("whiteobj_id")
@ExcelIgnore
private int whiteListId;
@NotNull
@JsonProperty("whiteobj_name")
@ExcelProperty("名称")
private String whiteListName;
@JsonProperty("whiteobj_system_name")
@ExcelProperty("系统名称")
private String whiteListSystemName;
@JsonProperty("whiteobj_ip_address")
@Pattern(regexp = "^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})$", message = "Invalid IPv4 Address")
@ExcelProperty("IP地址")
private String whiteListIP;
@JsonProperty("whiteobj_port")
@Max(value = 65535, message = "port should not be more than 65535")
@Min(value = 1, message = "port should not be less than 1")
@ExcelProperty("端口")
private int whiteListPort;
@JsonProperty("whiteobj_url")
@ExcelProperty("URL")
private String whiteListUrl;
@JsonProperty("whiteobj_protocol")
@ExcelProperty("协议")
private String whiteListProtocol;
@JsonProperty("audit_status")
@ExcelIgnore
private String whiteListAuditStatus;
}