first commit
This commit is contained in:
41
orion-ops-api/orion-ops-model/pom.xml
Normal file
41
orion-ops-api/orion-ops-model/pom.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>cn.orionsec.ops</groupId>
|
||||
<artifactId>orion-ops-api</artifactId>
|
||||
<version>1.3.1</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<name>orion-ops-model</name>
|
||||
<artifactId>orion-ops-model</artifactId>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<dependencies>
|
||||
<!-- lombok -->
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- swagger -->
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger2</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- aspectj -->
|
||||
<dependency>
|
||||
<groupId>org.aspectj</groupId>
|
||||
<artifactId>aspectjweaver</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- orion-kit -->
|
||||
<dependency>
|
||||
<groupId>cn.orionsec.kit</groupId>
|
||||
<artifactId>orion-all</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,50 @@
|
||||
|
||||
package cn.orionsec.ops.entity.config;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "终端连接配置项")
|
||||
public class TerminalConnectConfig {
|
||||
|
||||
@ApiModelProperty(value = "行数")
|
||||
private Integer rows;
|
||||
|
||||
@ApiModelProperty(value = "列数")
|
||||
private Integer cols;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.kit.net.host.ssh.TerminalType
|
||||
*/
|
||||
@ApiModelProperty(value = "终端类型")
|
||||
private String terminalType;
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
@ApiModelProperty(value = "机器名称")
|
||||
private String machineName;
|
||||
|
||||
@ApiModelProperty(value = "机器host")
|
||||
private String machineHost;
|
||||
|
||||
@ApiModelProperty(value = "机器唯一标识")
|
||||
private String machineTag;
|
||||
|
||||
@ApiModelProperty(value = "连接时间")
|
||||
private Date connectedTime;
|
||||
|
||||
@ApiModelProperty(value = "日志id")
|
||||
private Long logId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用操作流水线配置")
|
||||
public class ApplicationPipelineStageConfigDTO {
|
||||
|
||||
@ApiModelProperty(value = "分支名称")
|
||||
private String branchName;
|
||||
|
||||
@ApiModelProperty(value = "提交id")
|
||||
private String commitId;
|
||||
|
||||
@ApiModelProperty(value = "构建id")
|
||||
private Long buildId;
|
||||
|
||||
@ApiModelProperty(value = "发布标题")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "发布机器id")
|
||||
private List<Long> machineIdList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用环境缓存")
|
||||
public class ApplicationProfileDTO {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "环境名称")
|
||||
private String profileName;
|
||||
|
||||
@ApiModelProperty(value = "环境唯一标识")
|
||||
private String profileTag;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.file;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "文件下载缓存对象")
|
||||
@SuppressWarnings("ALL")
|
||||
public class FileDownloadDTO {
|
||||
|
||||
@ApiModelProperty(value = "文件绝对路径")
|
||||
private String filePath;
|
||||
|
||||
@ApiModelProperty(value = "文件名称")
|
||||
private String fileName;
|
||||
|
||||
@ApiModelProperty(value = "下载用户id")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.download.FileDownloadType
|
||||
*/
|
||||
@ApiModelProperty(value = "下载类型")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.file;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "文件 tail 对象")
|
||||
@SuppressWarnings("ALL")
|
||||
public class FileTailDTO {
|
||||
|
||||
@ApiModelProperty(value = "文件绝对路径")
|
||||
private String filePath;
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.system.SystemEnvAttr#TAIL_MODE
|
||||
* @see cn.orionsec.ops.constant.tail.FileTailMode
|
||||
*/
|
||||
@ApiModelProperty(value = "tail 模式")
|
||||
private String mode;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.machine.MachineEnvAttr#TAIL_OFFSET
|
||||
* @see cn.orionsec.ops.constant.Const#TAIL_OFFSET_LINE
|
||||
*/
|
||||
@ApiModelProperty(value = "尾行偏移量")
|
||||
private Integer offset;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.machine.MachineEnvAttr#TAIL_CHARSET
|
||||
* @see cn.orionsec.ops.constant.Const#UTF_8
|
||||
*/
|
||||
@ApiModelProperty(value = "编码集")
|
||||
private String charset;
|
||||
|
||||
@ApiModelProperty(value = "命令")
|
||||
private String command;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "sftp 文件传输通知")
|
||||
@SuppressWarnings("ALL")
|
||||
public class FileTransferNotifyDTO {
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.sftp.SftpNotifyType
|
||||
*/
|
||||
@ApiModelProperty(value = "通知类型")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "fileToken")
|
||||
private String fileToken;
|
||||
|
||||
@ApiModelProperty(value = "body")
|
||||
private Object body;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "文件传输进度")
|
||||
public class FileTransferNotifyProgressDTO {
|
||||
|
||||
@ApiModelProperty(value = "速度")
|
||||
private String rate;
|
||||
|
||||
@ApiModelProperty(value = "当前位置")
|
||||
private String current;
|
||||
|
||||
@ApiModelProperty(value = "进度")
|
||||
private String progress;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "sftp 会话信息")
|
||||
public class SftpSessionTokenDTO {
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
@ApiModelProperty(value = "机器id (批量上传用)")
|
||||
private List<Long> machineIdList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "sftp 文件上传对象")
|
||||
public class SftpUploadInfoDTO {
|
||||
|
||||
@ApiModelProperty(value = "远程路径")
|
||||
private String remotePath;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private List<Long> machineIdList;
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.statistic;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "首页统计数量缓存")
|
||||
public class StatisticsCountDTO {
|
||||
|
||||
@ApiModelProperty(value = "机器数量")
|
||||
private Integer machineCount;
|
||||
|
||||
@ApiModelProperty(value = "环境数量")
|
||||
private Integer profileCount;
|
||||
|
||||
@ApiModelProperty(value = "应用数量")
|
||||
private Integer appCount;
|
||||
|
||||
@ApiModelProperty(value = "流水线数量")
|
||||
private Integer pipelineCount;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.system;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "系统磁盘占用分析")
|
||||
public class SystemSpaceAnalysisDTO {
|
||||
|
||||
@ApiModelProperty(value = "临时文件数量")
|
||||
private Integer tempFileCount;
|
||||
|
||||
@ApiModelProperty(value = "临时文件大小")
|
||||
private String tempFileSize;
|
||||
|
||||
@ApiModelProperty(value = "日志文件数量")
|
||||
private Integer logFileCount;
|
||||
|
||||
@ApiModelProperty(value = "日志文件大小")
|
||||
private String logFileSize;
|
||||
|
||||
@ApiModelProperty(value = "交换文件数量")
|
||||
private Integer swapFileCount;
|
||||
|
||||
@ApiModelProperty(value = "交换文件大小")
|
||||
private String swapFileSize;
|
||||
|
||||
@ApiModelProperty(value = "构建产物版本数")
|
||||
private Integer distVersionCount;
|
||||
|
||||
@ApiModelProperty(value = "构建产物大小")
|
||||
private String distFileSize;
|
||||
|
||||
@ApiModelProperty(value = "应用仓库版本数")
|
||||
private Integer repoVersionCount;
|
||||
|
||||
@ApiModelProperty(value = "应用仓库大小")
|
||||
private String repoVersionFileSize;
|
||||
|
||||
@ApiModelProperty(value = "录屏文件数")
|
||||
private Integer screenFileCount;
|
||||
|
||||
@ApiModelProperty(value = "录屏文件大小")
|
||||
private String screenFileSize;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.terminal;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "终端连接参数")
|
||||
public class TerminalConnectDTO {
|
||||
|
||||
@ApiModelProperty(value = "列数")
|
||||
private Integer cols;
|
||||
|
||||
@ApiModelProperty(value = "行数")
|
||||
private Integer rows;
|
||||
|
||||
@ApiModelProperty(value = "登录 token")
|
||||
private String loginToken;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.terminal;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "终端大小参数")
|
||||
public class TerminalSizeDTO {
|
||||
|
||||
@ApiModelProperty(value = "列数")
|
||||
private Integer cols;
|
||||
|
||||
@ApiModelProperty(value = "行数")
|
||||
private Integer rows;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.terminal;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "终端监视信息")
|
||||
@SuppressWarnings("ALL")
|
||||
public class TerminalWatcherDTO {
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "会话token")
|
||||
private String token;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "是否只读")
|
||||
private Integer readonly;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.user;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "登录绑定信息")
|
||||
public class LoginBindDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "登录时间戳")
|
||||
private Long timestamp;
|
||||
|
||||
@ApiModelProperty(value = "登录 IP")
|
||||
private String loginIp;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
package cn.orionsec.ops.entity.dto.user;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "用户信息")
|
||||
@SuppressWarnings("ALL")
|
||||
public class UserDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "昵称")
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.user.RoleType
|
||||
*/
|
||||
@ApiModelProperty(value = "角色类型")
|
||||
private Integer roleType;
|
||||
|
||||
@ApiModelProperty(value = "登录时间戳")
|
||||
private Long timestamp;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
* @see cn.orionsec.ops.constant.Const#DISABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "用户状态 1启用 2禁用")
|
||||
private Integer userStatus;
|
||||
|
||||
@ApiModelProperty(value = "当前用户绑定时间戳 无需设置")
|
||||
private Long currentBindTimestamp;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.alarm;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "报警组通知方式请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class AlarmGroupNotifyRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "通知id")
|
||||
private Long notifyId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.alarm.AlarmGroupNotifyType
|
||||
*/
|
||||
@ApiModelProperty(value = "通知类型")
|
||||
private Integer notifyType;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.alarm;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "报警组请求")
|
||||
public class AlarmGroupRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "报警组名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "报警组描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "报警组员id")
|
||||
private List<Long> userIdList;
|
||||
|
||||
@ApiModelProperty(value = "报警通知方式")
|
||||
private List<Long> notifyIdList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用构建统计")
|
||||
public class AppBuildStatisticsRequest {
|
||||
|
||||
@ApiModelProperty(value = "appId")
|
||||
private Long appId;
|
||||
|
||||
@ApiModelProperty(value = "profileId")
|
||||
private Long profileId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用流水线统计请求")
|
||||
public class AppPipelineTaskStatisticsRequest {
|
||||
|
||||
@ApiModelProperty(value = "pipelineId")
|
||||
private Long pipelineId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用发布统计请求")
|
||||
public class AppReleaseStatisticsRequest {
|
||||
|
||||
@ApiModelProperty(value = "appId")
|
||||
private Long appId;
|
||||
|
||||
@ApiModelProperty(value = "profileId")
|
||||
private Long profileId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用操作日志请求")
|
||||
public class ApplicationActionLogRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "应用构建请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationBuildRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "应用id")
|
||||
private Long appId;
|
||||
|
||||
@ApiModelProperty(value = "应用名称")
|
||||
private String appName;
|
||||
|
||||
@ApiModelProperty(value = "环境id")
|
||||
private Long profileId;
|
||||
|
||||
@ApiModelProperty(value = "构建序列")
|
||||
private Integer seq;
|
||||
|
||||
@ApiModelProperty(value = "构建分支")
|
||||
private String branchName;
|
||||
|
||||
@ApiModelProperty(value = "构建提交id")
|
||||
private String commitId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.BuildStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "状态 10未开始 20执行中 30已完成 40执行失败 50已取消")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "只看自己")
|
||||
private Integer onlyMyself;
|
||||
|
||||
@ApiModelProperty(value = "命令")
|
||||
private String command;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用发布操作配置请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationConfigActionRequest {
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.ActionType
|
||||
*/
|
||||
@ApiModelProperty(value = "类型")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "执行命令")
|
||||
private String command;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用环境配置请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationConfigEnvRequest {
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.ApplicationEnvAttr#BUNDLE_PATH
|
||||
*/
|
||||
@ApiModelProperty(value = "构建产物路径")
|
||||
private String bundlePath;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.ApplicationEnvAttr#TRANSFER_PATH
|
||||
*/
|
||||
@ApiModelProperty(value = "产物传输绝对路径")
|
||||
private String transferPath;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.ApplicationEnvAttr#TRANSFER_MODE
|
||||
*/
|
||||
@ApiModelProperty(value = "产物传输方式 (sftp/scp)")
|
||||
private String transferMode;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.ApplicationEnvAttr#TRANSFER_FILE_TYPE
|
||||
*/
|
||||
@ApiModelProperty(value = "产物传输文件类型 (normal/zip)")
|
||||
private String transferFileType;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.ApplicationEnvAttr#RELEASE_SERIAL
|
||||
* @see cn.orionsec.ops.constant.common.SerialType
|
||||
*/
|
||||
@ApiModelProperty(value = "发布序列 10串行 20并行")
|
||||
private Integer releaseSerial;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.ApplicationEnvAttr#EXCEPTION_HANDLER
|
||||
* @see cn.orionsec.ops.constant.common.ExceptionHandlerType
|
||||
* @see cn.orionsec.ops.constant.common.SerialType#SERIAL
|
||||
*/
|
||||
@ApiModelProperty(value = "异常处理 10跳过所有 20跳过错误")
|
||||
private Integer exceptionHandler;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用配置请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationConfigRequest {
|
||||
|
||||
@ApiModelProperty(value = "应用id")
|
||||
private Long appId;
|
||||
|
||||
@ApiModelProperty(value = "环境id")
|
||||
private Long profileId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.StageType
|
||||
*/
|
||||
@ApiModelProperty(value = "阶段类型")
|
||||
private Integer stageType;
|
||||
|
||||
@ApiModelProperty(value = "应用环境变量")
|
||||
private ApplicationConfigEnvRequest env;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private List<Long> machineIdList;
|
||||
|
||||
@ApiModelProperty(value = "构建操作")
|
||||
private List<ApplicationConfigActionRequest> buildActions;
|
||||
|
||||
@ApiModelProperty(value = "发布操作")
|
||||
private List<ApplicationConfigActionRequest> releaseActions;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "应用环境变量请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationEnvRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id集合")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "应用id")
|
||||
private Long appId;
|
||||
|
||||
@ApiModelProperty(value = "环境id")
|
||||
private Long profileId;
|
||||
|
||||
@ApiModelProperty(value = "key")
|
||||
private String key;
|
||||
|
||||
@ApiModelProperty(value = "value")
|
||||
private String value;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.env.EnvViewType
|
||||
*/
|
||||
@ApiModelProperty(value = "视图类型")
|
||||
private Integer viewType;
|
||||
|
||||
@ApiModelProperty(value = "目标环境id")
|
||||
private List<Long> targetProfileIdList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "应用请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationInfoRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "环境id")
|
||||
private Long profileId;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "唯一标识")
|
||||
private String tag;
|
||||
|
||||
@ApiModelProperty(value = "版本仓库id")
|
||||
private Long repoId;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#INCREMENT
|
||||
* @see cn.orionsec.ops.constant.Const#DECREMENT
|
||||
*/
|
||||
@ApiModelProperty(value = "排序调整方向")
|
||||
private Integer sortAdjust;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "是否查询机器")
|
||||
private Integer queryMachine;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用流水线详情请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationPipelineDetailRequest {
|
||||
|
||||
@ApiModelProperty(value = "应用id")
|
||||
private Long appId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.StageType
|
||||
*/
|
||||
@ApiModelProperty(value = "阶段类型 10构建 20发布")
|
||||
private Integer stageType;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "应用流水线请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationPipelineRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "idList")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "环境id")
|
||||
private Long profileId;
|
||||
|
||||
@ApiModelProperty(value = "环境id")
|
||||
private List<Long> profileIdList;
|
||||
|
||||
@ApiModelProperty(value = "流水线名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "是否查询详情")
|
||||
private Integer queryDetail;
|
||||
|
||||
@ApiModelProperty(value = "详情")
|
||||
private List<ApplicationPipelineDetailRequest> details;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "流水线详情明细请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationPipelineTaskDetailRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "分支名称")
|
||||
private String branchName;
|
||||
|
||||
@ApiModelProperty(value = "提交id")
|
||||
private String commitId;
|
||||
|
||||
@ApiModelProperty(value = "构建id")
|
||||
private Long buildId;
|
||||
|
||||
@ApiModelProperty(value = "发布标题")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "发布机器id")
|
||||
private List<Long> machineIdList;
|
||||
|
||||
@ApiModelProperty(value = "应用id", hidden = true)
|
||||
private Long appId;
|
||||
|
||||
@ApiModelProperty(value = "环境id", hidden = true)
|
||||
private Long profileId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.StageType
|
||||
*/
|
||||
@ApiModelProperty(value = "阶段类型 10构建 20发布", hidden = true)
|
||||
private Integer stageType;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "流水线明细请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationPipelineTaskRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "环境id")
|
||||
private Long profileId;
|
||||
|
||||
@ApiModelProperty(value = "detailId")
|
||||
private Long detailId;
|
||||
|
||||
@ApiModelProperty(value = "detailId")
|
||||
private List<Long> detailIdList;
|
||||
|
||||
@ApiModelProperty(value = "流水线id")
|
||||
private Long pipelineId;
|
||||
|
||||
@ApiModelProperty(value = "流水线名称")
|
||||
private String pipelineName;
|
||||
|
||||
@ApiModelProperty(value = "执行标题")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "执行描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.TimedType
|
||||
*/
|
||||
@ApiModelProperty(value = "是否是定时执行 10普通执行 20定时执行")
|
||||
private Integer timedExec;
|
||||
|
||||
@ApiModelProperty(value = "定时执行时间")
|
||||
private Date timedExecTime;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.PipelineStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "执行状态 10待审核 20审核驳回 30待执行 35待调度 40执行中 50执行完成 60执行停止 70执行失败")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.common.AuditStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "审核状态 10通过 20驳回")
|
||||
private Integer auditStatus;
|
||||
|
||||
@ApiModelProperty(value = "审核描述")
|
||||
private String auditReason;
|
||||
|
||||
@ApiModelProperty(value = "执行明细")
|
||||
private List<ApplicationPipelineTaskDetailRequest> details;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "应用环境配置请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationProfileRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "唯一标识")
|
||||
private String tag;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
* @see cn.orionsec.ops.constant.Const#DISABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "发布是否需要审核 1需要 2无需")
|
||||
private Integer releaseAudit;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用发布审核请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationReleaseAuditRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.common.AuditStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "状态 10通过 20驳回")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String reason;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "应用发布请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationReleaseRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "标题")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "应用id")
|
||||
private Long appId;
|
||||
|
||||
@ApiModelProperty(value = "应用名称")
|
||||
private String appName;
|
||||
|
||||
@ApiModelProperty(value = "环境id")
|
||||
private Long profileId;
|
||||
|
||||
@ApiModelProperty(value = "构建id")
|
||||
private Long buildId;
|
||||
|
||||
@ApiModelProperty(value = "应用机器id列表")
|
||||
private List<Long> machineIdList;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.ReleaseStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "状态")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.TimedType
|
||||
*/
|
||||
@ApiModelProperty(value = "是否是定时发布 10普通发布 20定时发布")
|
||||
private Integer timedRelease;
|
||||
|
||||
@ApiModelProperty(value = "定时发布时间")
|
||||
private Date timedReleaseTime;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "只看自己")
|
||||
private Integer onlyMyself;
|
||||
|
||||
@ApiModelProperty(value = "发布机器id")
|
||||
private Long releaseMachineId;
|
||||
|
||||
@ApiModelProperty(value = "发布机器id")
|
||||
private List<Long> releaseMachineIdList;
|
||||
|
||||
@ApiModelProperty(value = "id列表")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "是否查询机器")
|
||||
private Integer queryMachine;
|
||||
|
||||
@ApiModelProperty(value = "是否查询操作")
|
||||
private Integer queryAction;
|
||||
|
||||
@ApiModelProperty(value = "命令")
|
||||
private String command;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "应用版本仓库请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationRepositoryRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "url")
|
||||
private String url;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.RepositoryType
|
||||
*/
|
||||
@ApiModelProperty(value = "类型 1git")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.RepositoryStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "状态 10未初始化 20初始化中 30正常 40失败")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.RepositoryAuthType
|
||||
*/
|
||||
@ApiModelProperty(value = "认证类型 10密码 20令牌")
|
||||
private Integer authType;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.RepositoryTokenType
|
||||
*/
|
||||
@ApiModelProperty(value = "令牌类型 10github 20gitee 30gitlab")
|
||||
private Integer tokenType;
|
||||
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "密码")
|
||||
private String password;
|
||||
|
||||
@ApiModelProperty(value = "令牌")
|
||||
private String privateToken;
|
||||
|
||||
@ApiModelProperty(value = "分支名称")
|
||||
private String branchName;
|
||||
|
||||
@ApiModelProperty(value = "应用id")
|
||||
private Long appId;
|
||||
|
||||
@ApiModelProperty(value = "环境id")
|
||||
private Long profileId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用同步配置请求")
|
||||
public class ApplicationSyncConfigRequest {
|
||||
|
||||
@ApiModelProperty(value = "应用id")
|
||||
private Long appId;
|
||||
|
||||
@ApiModelProperty(value = "环境id")
|
||||
private Long profileId;
|
||||
|
||||
@ApiModelProperty(value = "需要同步到的环境id")
|
||||
private List<Long> targetProfileIdList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.data;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "数据清理请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class DataClearRequest {
|
||||
|
||||
@ApiModelProperty(value = "保留天数")
|
||||
private Integer reserveDay;
|
||||
|
||||
@ApiModelProperty(value = "保留条数")
|
||||
private Integer reserveTotal;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.DataClearType
|
||||
*/
|
||||
@ApiModelProperty(value = "清理类型")
|
||||
private Integer clearType;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.DataClearRange
|
||||
*/
|
||||
@ApiModelProperty(value = "清理区间")
|
||||
private Integer range;
|
||||
|
||||
@ApiModelProperty(value = "清理的引用id")
|
||||
private List<Long> relIdList;
|
||||
|
||||
@ApiModelProperty(value = "引用id")
|
||||
private Long relId;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
@ApiModelProperty(value = "环境id")
|
||||
private Long profileId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
* @see cn.orionsec.ops.constant.Const#DISABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "只清理我创建的")
|
||||
private Integer iCreated;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
* @see cn.orionsec.ops.constant.Const#DISABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "只清理我审核的")
|
||||
private Integer iAudited;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
* @see cn.orionsec.ops.constant.Const#DISABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "只清理我执行的")
|
||||
private Integer iExecute;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
* @see cn.orionsec.ops.constant.Const#DISABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "只清理未读的")
|
||||
private Integer onlyRead;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.data;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "数据导出请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class DataExportRequest {
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.ExportType
|
||||
*/
|
||||
@ApiModelProperty(value = "导出类型")
|
||||
private Integer exportType;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
* @see cn.orionsec.ops.constant.Const#DISABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "是否导出密码")
|
||||
private Integer exportPassword;
|
||||
|
||||
@ApiModelProperty(value = "保护密码")
|
||||
private String protectPassword;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
@ApiModelProperty(value = "分类")
|
||||
private Integer classify;
|
||||
|
||||
@ApiModelProperty(value = "类型")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "状态")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "只看自己")
|
||||
private Integer onlyMyself;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.data;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "数据导入请求")
|
||||
public class DataImportRequest {
|
||||
|
||||
@ApiModelProperty(value = "导入token")
|
||||
private String importToken;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.exec;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "批量执行请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class CommandExecRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "执行机器id")
|
||||
private Long machineId;
|
||||
|
||||
@ApiModelProperty(value = "机器名称")
|
||||
private String machineName;
|
||||
|
||||
@ApiModelProperty(value = "执行机器id")
|
||||
private List<Long> machineIdList;
|
||||
|
||||
@ApiModelProperty(value = "执行主机")
|
||||
private String host;
|
||||
|
||||
@ApiModelProperty(value = "命令")
|
||||
private String command;
|
||||
|
||||
@ApiModelProperty(value = "执行人")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.command.ExecStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "状态")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.command.ExecType
|
||||
*/
|
||||
@ApiModelProperty(value = "类型")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "退出码")
|
||||
private Integer exitCode;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "是否省略命令")
|
||||
private boolean omitCommand;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.file;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "文件下载请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class FileDownloadRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.download.FileDownloadType
|
||||
*/
|
||||
@ApiModelProperty(value = "下载类型")
|
||||
private Integer type;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.file;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "文件tail请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class FileTailRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "idList")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "文件路径")
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#TAIL_OFFSET_LINE
|
||||
*/
|
||||
@ApiModelProperty(value = "文件尾部偏移行")
|
||||
private Integer offset;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#UTF_8
|
||||
*/
|
||||
@ApiModelProperty(value = "编码集")
|
||||
private String charset;
|
||||
|
||||
@ApiModelProperty(value = "tail命令")
|
||||
private String command;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.tail.FileTailMode
|
||||
*/
|
||||
@ApiModelProperty(value = "宿主机文件追踪类型 tracker/tail")
|
||||
private String tailMode;
|
||||
|
||||
@ApiModelProperty(value = "relId")
|
||||
private Long relId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.tail.FileTailType
|
||||
*/
|
||||
@ApiModelProperty(value = "类型")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "token")
|
||||
private String token;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.history;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "历史值快照请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class HistoryValueRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "值id")
|
||||
private Long valueId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.history.HistoryValueType
|
||||
*/
|
||||
@ApiModelProperty(value = "值类型")
|
||||
private Integer valueType;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.home;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "主页统计请求")
|
||||
public class HomeStatisticsRequest {
|
||||
|
||||
@ApiModelProperty(value = "profileId")
|
||||
private Long profileId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "机器报警配置请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class MachineAlarmConfigRequest {
|
||||
|
||||
@ApiModelProperty(value = "machineId")
|
||||
private Long machineId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.machine.MachineAlarmType
|
||||
*/
|
||||
@ApiModelProperty(value = "报警类型 10: cpu使用率 20: 内存使用率")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "报警阈值")
|
||||
private Double alarmThreshold;
|
||||
|
||||
@ApiModelProperty(value = "触发报警阈值 次")
|
||||
private Integer triggerThreshold;
|
||||
|
||||
@ApiModelProperty(value = "报警通知沉默时间 分")
|
||||
private Integer notifySilence;
|
||||
|
||||
@ApiModelProperty(value = "报警组id")
|
||||
private List<Long> groupIdList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "机器报警历史请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class MachineAlarmHistoryRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "machineId")
|
||||
private Long machineId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.machine.MachineAlarmType
|
||||
*/
|
||||
@ApiModelProperty(value = "报警类型 10: cpu使用率 20: 内存使用率")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "报警值区间开始")
|
||||
private Double alarmValueStart;
|
||||
|
||||
@ApiModelProperty(value = "报警值区间结束")
|
||||
private Double alarmValueEnd;
|
||||
|
||||
@ApiModelProperty(value = "报警时间区间开始")
|
||||
private Date alarmTimeStart;
|
||||
|
||||
@ApiModelProperty(value = "报警时间区间结束")
|
||||
private Date alarmTimeEnd;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "机器报警请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class MachineAlarmRequest {
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.machine.MachineAlarmType
|
||||
*/
|
||||
@ApiModelProperty(value = "报警类型 10: cpu使用率 20: 内存使用率")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "报警值")
|
||||
private Double alarmValue;
|
||||
|
||||
@ApiModelProperty(value = "报警时间")
|
||||
private Date alarmTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "机器环境变量请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class MachineEnvRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
@ApiModelProperty(value = "key")
|
||||
private String key;
|
||||
|
||||
@ApiModelProperty(value = "value")
|
||||
private String value;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.env.EnvViewType
|
||||
*/
|
||||
@ApiModelProperty(value = "视图类型")
|
||||
private Integer viewType;
|
||||
|
||||
@ApiModelProperty(value = "目标机器id")
|
||||
private List<Long> targetMachineIdList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "机器分组请求")
|
||||
public class MachineGroupRelRequest {
|
||||
|
||||
@ApiModelProperty(value = "组id")
|
||||
private Long groupId;
|
||||
|
||||
@ApiModelProperty(value = "组id")
|
||||
private List<Long> groupIdList;
|
||||
|
||||
@ApiModelProperty(value = "目标组id")
|
||||
private Long targetGroupId;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private List<Long> machineIdList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "机器分组请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class MachineGroupRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "移动到的节点id")
|
||||
private Long targetId;
|
||||
|
||||
@ApiModelProperty(value = "父id")
|
||||
private Long parentId;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "排序")
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.common.TreeMoveType
|
||||
*/
|
||||
@ApiModelProperty(value = "移动类型")
|
||||
private Integer moveType;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "机器信息请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class MachineInfoRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "idList")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "代理id")
|
||||
private Long proxyId;
|
||||
|
||||
@ApiModelProperty(value = "密钥id")
|
||||
private Long keyId;
|
||||
|
||||
@ApiModelProperty(value = "主机ip")
|
||||
private String host;
|
||||
|
||||
@ApiModelProperty(value = "ssh端口")
|
||||
private Integer sshPort;
|
||||
|
||||
@ApiModelProperty(value = "机器名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "机器唯一标识")
|
||||
private String tag;
|
||||
|
||||
@ApiModelProperty(value = "机器描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "机器账号")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "机器密码")
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.machine.MachineAuthType
|
||||
*/
|
||||
@ApiModelProperty(value = "机器认证方式 1: 密码认证 2: 独立密钥")
|
||||
private Integer authType;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
* @see cn.orionsec.ops.constant.Const#DISABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "机器状态 1有效 2无效")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "是否查询分组")
|
||||
private Boolean queryGroup;
|
||||
|
||||
@ApiModelProperty(value = "分组id")
|
||||
private List<Long> groupIdList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "机器密钥请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class MachineKeyRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "机器id集合")
|
||||
private List<Long> machineIdList;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "密码")
|
||||
private String password;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "文件base64")
|
||||
private String file;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "机器监控请求")
|
||||
public class MachineMonitorEndpointRequest {
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
@ApiModelProperty(value = "数据粒度")
|
||||
private Integer granularity;
|
||||
|
||||
@ApiModelProperty(value = "开始区间 (秒)")
|
||||
private Long startRange;
|
||||
|
||||
@ApiModelProperty(value = "结束区间 (秒)")
|
||||
private Long endRange;
|
||||
|
||||
@ApiModelProperty(value = "磁盘序列")
|
||||
private String seq;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "机器监控请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class MachineMonitorRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
@ApiModelProperty(value = "机器名称")
|
||||
private String machineName;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.monitor.MonitorStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "安装状态")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "请求url")
|
||||
private String url;
|
||||
|
||||
@ApiModelProperty(value = "accessToken")
|
||||
private String accessToken;
|
||||
|
||||
@ApiModelProperty(value = "是否为升级")
|
||||
private Boolean upgrade;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import cn.orionsec.ops.entity.vo.machine.MachineAlarmConfigVO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "机器监控同步请求")
|
||||
public class MachineMonitorSyncRequest {
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
@ApiModelProperty(value = "报警配置")
|
||||
private List<MachineAlarmConfigVO> alarmConfig;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "机器代理请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class MachineProxyRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "主机")
|
||||
private String host;
|
||||
|
||||
@ApiModelProperty(value = "端口")
|
||||
private Integer port;
|
||||
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "密码")
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.machine.ProxyType
|
||||
*/
|
||||
@ApiModelProperty(value = "代理类型")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "终端日志请求")
|
||||
public class MachineTerminalLogRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Integer machineId;
|
||||
|
||||
@ApiModelProperty(value = "机器名称")
|
||||
private String machineName;
|
||||
|
||||
@ApiModelProperty(value = "机器host")
|
||||
private String machineHost;
|
||||
|
||||
@ApiModelProperty(value = "token")
|
||||
private String accessToken;
|
||||
|
||||
@ApiModelProperty(value = "建立连接时间-区间开始")
|
||||
private Date connectedTimeStart;
|
||||
|
||||
@ApiModelProperty(value = "建立连接时间-区间结束")
|
||||
private Date connectedTimeEnd;
|
||||
|
||||
@ApiModelProperty(value = "断开连接时间-区间开始")
|
||||
private Date disconnectedTimeStart;
|
||||
|
||||
@ApiModelProperty(value = "断开连接时间-区间结束")
|
||||
private Date disconnectedTimeEnd;
|
||||
|
||||
@ApiModelProperty(value = "close code")
|
||||
private Integer closeCode;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "终端管理请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class MachineTerminalManagerRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "token")
|
||||
private String token;
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "连接时间-区间开始")
|
||||
private Date connectedTimeStart;
|
||||
|
||||
@ApiModelProperty(value = "连接时间-区间结束")
|
||||
private Date connectedTimeEnd;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
@ApiModelProperty(value = "机器名称")
|
||||
private String machineName;
|
||||
|
||||
@ApiModelProperty(value = "机器主机")
|
||||
private String machineHost;
|
||||
|
||||
@ApiModelProperty(value = "机器唯一标识")
|
||||
private String machineTag;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "是否只读")
|
||||
private Integer readonly;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.machine;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "终端配置请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class MachineTerminalRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.kit.net.host.ssh.TerminalType
|
||||
*/
|
||||
@ApiModelProperty(value = "终端类型")
|
||||
private String terminalType;
|
||||
|
||||
@ApiModelProperty(value = "背景色")
|
||||
private String backgroundColor;
|
||||
|
||||
@ApiModelProperty(value = "字体颜色")
|
||||
private String fontColor;
|
||||
|
||||
@ApiModelProperty(value = "字体大小")
|
||||
private Integer fontSize;
|
||||
|
||||
@ApiModelProperty(value = "字体名称")
|
||||
private String fontFamily;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
* @see cn.orionsec.ops.constant.Const#DISABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "是否开启url link 1开启 2关闭")
|
||||
private Integer enableWebLink;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.message;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "站内信请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class WebSideMessageRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private List<Long> idList;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.message.MessageClassify
|
||||
*/
|
||||
@ApiModelProperty(value = "消息分类")
|
||||
private Integer classify;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.message.MessageType
|
||||
*/
|
||||
@ApiModelProperty(value = "消息类型")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.message.ReadStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "是否已读 1未读 2已读")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "消息")
|
||||
private String message;
|
||||
|
||||
@ApiModelProperty(value = "最大id")
|
||||
private Long maxId;
|
||||
|
||||
@ApiModelProperty(value = "开始时间区间-开始")
|
||||
private Date rangeStart;
|
||||
|
||||
@ApiModelProperty(value = "开始时间区间-结束")
|
||||
private Date rangeEnd;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.scheduler;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "任务执行记录请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class SchedulerTaskRecordRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "明细id")
|
||||
private Long recordId;
|
||||
|
||||
@ApiModelProperty(value = "机器明细id")
|
||||
private Long machineRecordId;
|
||||
|
||||
@ApiModelProperty(value = "机器明细id")
|
||||
private List<Long> machineRecordIdList;
|
||||
|
||||
@ApiModelProperty(value = "任务id")
|
||||
private Long taskId;
|
||||
|
||||
@ApiModelProperty(value = "任务名称")
|
||||
private String taskName;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.scheduler.SchedulerTaskStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "状态")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "命令")
|
||||
private String command;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.scheduler;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "调度任务请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class SchedulerTaskRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "任务名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "任务描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "执行命令")
|
||||
private String command;
|
||||
|
||||
@ApiModelProperty(value = "cron表达式")
|
||||
private String expression;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
* @see cn.orionsec.ops.constant.Const#DISABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "启用状态 1启用 2停用")
|
||||
private Integer enableStatus;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.scheduler.SchedulerTaskStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "最近状态 10待调度 20调度中 30调度成功 40调度失败 50已停止")
|
||||
private Integer latelyStatus;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.common.SerialType
|
||||
*/
|
||||
@ApiModelProperty(value = "调度序列 10串行 20并行")
|
||||
private Integer serializeType;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.common.ExceptionHandlerType
|
||||
*/
|
||||
@ApiModelProperty(value = "异常处理 10跳过所有 20跳过错误")
|
||||
private Integer exceptionHandler;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private List<Long> machineIdList;
|
||||
|
||||
@ApiModelProperty(value = "次数")
|
||||
private Integer times;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.scheduler;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "调度任务统计请求")
|
||||
public class SchedulerTaskStatisticsRequest {
|
||||
|
||||
@ApiModelProperty(value = "taskId")
|
||||
private Long taskId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "sftp请求")
|
||||
public class FileBaseRequest {
|
||||
|
||||
@ApiModelProperty(value = "sessionToken")
|
||||
private String sessionToken;
|
||||
|
||||
@ApiModelProperty(value = "是否查询隐藏文件")
|
||||
private Boolean all;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "修改文件组请求")
|
||||
public class FileChangeGroupRequest extends FileBaseRequest {
|
||||
|
||||
@ApiModelProperty(value = "绝对路径")
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty(value = "组id")
|
||||
private Integer gid;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "修改文件权限请求")
|
||||
public class FileChmodRequest extends FileBaseRequest {
|
||||
|
||||
@ApiModelProperty(value = "绝对路径")
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty(value = "权限 10进制表现的8进制权限")
|
||||
private Integer permission;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "修改所有者请求")
|
||||
public class FileChownRequest extends FileBaseRequest {
|
||||
|
||||
@ApiModelProperty(value = "绝对路径")
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Integer uid;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "下载请求")
|
||||
public class FileDownloadRequest extends FileBaseRequest {
|
||||
|
||||
@ApiModelProperty(value = "绝对路径")
|
||||
private List<String> paths;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "文件列表请求")
|
||||
public class FileListRequest extends FileBaseRequest {
|
||||
|
||||
@ApiModelProperty(value = "绝对路径")
|
||||
private String path;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "创建文件夹请求")
|
||||
public class FileMkdirRequest extends FileBaseRequest {
|
||||
|
||||
@ApiModelProperty(value = "绝对路径")
|
||||
private String path;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "移动文件请求")
|
||||
public class FileMoveRequest extends FileBaseRequest {
|
||||
|
||||
@ApiModelProperty(value = "绝对路径")
|
||||
private String source;
|
||||
|
||||
@ApiModelProperty(value = "路径 绝对路径/相对路径 可以包含../")
|
||||
private String target;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "sftp打开请求")
|
||||
public class FileOpenRequest {
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "检查文件是否存在请求")
|
||||
public class FilePresentCheckRequest extends FileBaseRequest {
|
||||
|
||||
@ApiModelProperty(value = "当前路径")
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty(value = "文件名称")
|
||||
private List<String> names;
|
||||
|
||||
@ApiModelProperty(value = "文件大小")
|
||||
private Long size;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "删除文件命令")
|
||||
public class FileRemoveRequest extends FileBaseRequest {
|
||||
|
||||
@ApiModelProperty(value = "绝对路径")
|
||||
private List<String> paths;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "创建文件请求")
|
||||
public class FileTouchRequest extends FileBaseRequest {
|
||||
|
||||
@ApiModelProperty(value = "绝对路径")
|
||||
private String path;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "截断文件请求")
|
||||
public class FileTruncateRequest extends FileBaseRequest {
|
||||
|
||||
@ApiModelProperty(value = "绝对路径")
|
||||
private String path;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.sftp;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "上传文件请求")
|
||||
public class FileUploadRequest {
|
||||
|
||||
@ApiModelProperty(value = "sessionToken")
|
||||
private String sessionToken;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private Long machineId;
|
||||
|
||||
@ApiModelProperty(value = "文件token")
|
||||
private String fileToken;
|
||||
|
||||
@ApiModelProperty(value = "本地文件路径")
|
||||
private String localPath;
|
||||
|
||||
@ApiModelProperty(value = "远程文件路径")
|
||||
private String remotePath;
|
||||
|
||||
@ApiModelProperty(value = "文件大小")
|
||||
private Long size;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.system;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "配置ip过滤器请求")
|
||||
public class ConfigIpListRequest {
|
||||
|
||||
@ApiModelProperty(value = "ip白名单")
|
||||
private String whiteIpList;
|
||||
|
||||
@ApiModelProperty(value = "ip黑名单")
|
||||
private String blackIpList;
|
||||
|
||||
@ApiModelProperty(value = "是否启用ip过滤器")
|
||||
private Boolean enableIpFilter;
|
||||
|
||||
@ApiModelProperty(value = "是否启用ip白名单")
|
||||
private Boolean enableWhiteIpList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.system;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "系统环境变量请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class SystemEnvRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "key")
|
||||
private String key;
|
||||
|
||||
@ApiModelProperty(value = "value")
|
||||
private String value;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.env.EnvViewType
|
||||
*/
|
||||
@ApiModelProperty(value = "视图类型")
|
||||
private Integer viewType;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.system;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "文件清理请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class SystemFileCleanRequest {
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.system.SystemCleanType
|
||||
*/
|
||||
@ApiModelProperty(value = "文件清理类型")
|
||||
private Integer cleanType;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.system;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "系统配置请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class SystemOptionRequest {
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.system.SystemConfigKey
|
||||
*/
|
||||
@ApiModelProperty(value = "配置项")
|
||||
private Integer option;
|
||||
|
||||
@ApiModelProperty(value = "配置值")
|
||||
private String value;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.template;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "命令模板请求")
|
||||
public class CommandTemplateRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "模板名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "模板值")
|
||||
private String value;
|
||||
|
||||
@ApiModelProperty(value = "模板描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "是否省略值")
|
||||
private boolean omitValue;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.upload;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "批量上传请求")
|
||||
public class BatchUploadRequest {
|
||||
|
||||
@ApiModelProperty(value = "文件大小")
|
||||
private Long size;
|
||||
|
||||
@ApiModelProperty(value = "远程路径")
|
||||
private String remotePath;
|
||||
|
||||
@ApiModelProperty(value = "机器id")
|
||||
private List<Long> machineIds;
|
||||
|
||||
@ApiModelProperty(value = "文件名称")
|
||||
private List<String> names;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.user;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "操作日志请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class EventLogRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.event.EventClassify
|
||||
*/
|
||||
@ApiModelProperty(value = "事件分类")
|
||||
private Integer classify;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.event.EventType
|
||||
*/
|
||||
@ApiModelProperty(value = "事件类型")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "日志信息")
|
||||
private String log;
|
||||
|
||||
@ApiModelProperty(value = "日志参数")
|
||||
private String params;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
* @see cn.orionsec.ops.constant.Const#DISABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "是否执行成功 1成功 2失败")
|
||||
private Integer result;
|
||||
|
||||
@ApiModelProperty(value = "开始时间区间-开始")
|
||||
private Date rangeStart;
|
||||
|
||||
@ApiModelProperty(value = "开始时间区间-结束")
|
||||
private Date rangeEnd;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "只看自己")
|
||||
private Integer onlyMyself;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "是否解析ip")
|
||||
private Integer parserIp;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.user;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "用户请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class UserInfoRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private List<Long> idList;
|
||||
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "昵称")
|
||||
private String nickname;
|
||||
|
||||
@ApiModelProperty(value = "密码")
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.user.RoleType
|
||||
*/
|
||||
@ApiModelProperty(value = "角色类型 10管理员 20开发 30运维")
|
||||
private Integer role;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.Const#ENABLE
|
||||
* @see cn.orionsec.ops.constant.Const#DISABLE
|
||||
*/
|
||||
@ApiModelProperty(value = "用户状态 1启用 2禁用")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "联系手机")
|
||||
private String phone;
|
||||
|
||||
@ApiModelProperty(value = "联系邮箱")
|
||||
private String email;
|
||||
|
||||
@ApiModelProperty(value = "头像base64")
|
||||
private String avatar;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.user;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "用户登录请求")
|
||||
public class UserLoginRequest {
|
||||
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "密码")
|
||||
private String password;
|
||||
|
||||
@ApiModelProperty(value = "ip")
|
||||
private String ip;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.user;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "重置密码请求")
|
||||
public class UserResetRequest {
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "原密码")
|
||||
private String beforePassword;
|
||||
|
||||
@ApiModelProperty(value = "密码")
|
||||
private String password;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
|
||||
package cn.orionsec.ops.entity.request.webhook;
|
||||
|
||||
import cn.orionsec.kit.lang.define.wrapper.PageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "webhook 配置请求")
|
||||
@SuppressWarnings("ALL")
|
||||
public class WebhookConfigRequest extends PageRequest {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "url")
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.webhook.WebhookType
|
||||
*/
|
||||
@ApiModelProperty(value = "类型 10: 钉钉机器人")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "配置项 json")
|
||||
private String config;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
|
||||
package cn.orionsec.ops.entity.vo.alarm;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "报警组员响应")
|
||||
public class AlarmGroupUserVO {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "用户花名")
|
||||
private String nickname;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
package cn.orionsec.ops.entity.vo.alarm;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "报警组响应")
|
||||
public class AlarmGroupVO {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "组名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "组描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "组员名称")
|
||||
private List<AlarmGroupUserVO> groupUsers;
|
||||
|
||||
@ApiModelProperty(value = "报警组员id")
|
||||
private List<Long> userIdList;
|
||||
|
||||
@ApiModelProperty(value = "报警通知方式")
|
||||
private List<Long> notifyIdList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
|
||||
package cn.orionsec.ops.entity.vo.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用构建统计分析操作日志响应")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationActionLogStatisticsVO {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "操作id")
|
||||
private Long actionId;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.ActionStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "状态 10未开始 20进行中 30已完成 40执行失败 50已跳过 60已取消")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "操作时长 (任何状态)")
|
||||
private Long used;
|
||||
|
||||
@ApiModelProperty(value = "操作时长 (任何状态)")
|
||||
private String usedInterval;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
|
||||
package cn.orionsec.ops.entity.vo.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用操作日志响应")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationActionLogVO {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "引用id")
|
||||
private Long relId;
|
||||
|
||||
@ApiModelProperty(value = "操作id")
|
||||
private Long actionId;
|
||||
|
||||
@ApiModelProperty(value = "操作名称")
|
||||
private String actionName;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.ActionType
|
||||
*/
|
||||
@ApiModelProperty(value = "操作类型")
|
||||
private Integer actionType;
|
||||
|
||||
@ApiModelProperty(value = "操作命令")
|
||||
private String actionCommand;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.ActionStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "状态 10未开始 20进行中 30已完成 40执行失败 50已跳过 60已取消")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "退出码")
|
||||
private Integer exitCode;
|
||||
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
private String startTimeAgo;
|
||||
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
private Date endTime;
|
||||
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
private String endTimeAgo;
|
||||
|
||||
@ApiModelProperty(value = "使用毫秒")
|
||||
private Long used;
|
||||
|
||||
@ApiModelProperty(value = "使用时间")
|
||||
private String keepTime;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
|
||||
package cn.orionsec.ops.entity.vo.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用构建统计分析操作响应")
|
||||
public class ApplicationActionStatisticsVO {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "操作名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "成功平均操作时长毫秒")
|
||||
private Long avgUsed;
|
||||
|
||||
@ApiModelProperty(value = "成功平均操作时长")
|
||||
private String avgUsedInterval;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
package cn.orionsec.ops.entity.vo.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用执行操作状态响应")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationActionStatusVO {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.ActionStatus
|
||||
*/
|
||||
@ApiModelProperty(value = "状态")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "执行开始时间")
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty(value = "执行开始时间")
|
||||
private String startTimeAgo;
|
||||
|
||||
@ApiModelProperty(value = "执行结束时间")
|
||||
private Date endTime;
|
||||
|
||||
@ApiModelProperty(value = "执行结束时间")
|
||||
private String endTimeAgo;
|
||||
|
||||
@ApiModelProperty(value = "使用时间毫秒")
|
||||
private Long used;
|
||||
|
||||
@ApiModelProperty(value = "使用时间")
|
||||
private String keepTime;
|
||||
|
||||
@ApiModelProperty(value = "exitCode")
|
||||
private Integer exitCode;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
|
||||
package cn.orionsec.ops.entity.vo.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "应用操作响应")
|
||||
@SuppressWarnings("ALL")
|
||||
public class ApplicationActionVO {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* @see cn.orionsec.ops.constant.app.ActionType
|
||||
*/
|
||||
@ApiModelProperty(value = "类型")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "命令")
|
||||
private String command;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
package cn.orionsec.ops.entity.vo.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "发布构建列表响应")
|
||||
public class ApplicationBuildReleaseListVO {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "构建序列")
|
||||
private Integer seq;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
|
||||
package cn.orionsec.ops.entity.vo.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "构建统计表格响应")
|
||||
public class ApplicationBuildStatisticsChartVO {
|
||||
|
||||
@ApiModelProperty(value = "日期")
|
||||
private String date;
|
||||
|
||||
@ApiModelProperty(value = "构建次数")
|
||||
private Integer buildCount;
|
||||
|
||||
@ApiModelProperty(value = "成功次数")
|
||||
private Integer successCount;
|
||||
|
||||
@ApiModelProperty(value = "失败次数")
|
||||
private Integer failureCount;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
|
||||
package cn.orionsec.ops.entity.vo.app;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "构建统计响应")
|
||||
public class ApplicationBuildStatisticsMetricsVO {
|
||||
|
||||
@ApiModelProperty(value = "构建次数")
|
||||
private Integer buildCount;
|
||||
|
||||
@ApiModelProperty(value = "成功次数")
|
||||
private Integer successCount;
|
||||
|
||||
@ApiModelProperty(value = "失败次数")
|
||||
private Integer failureCount;
|
||||
|
||||
@ApiModelProperty(value = "成功平均构建时长毫秒")
|
||||
private Long avgUsed;
|
||||
|
||||
@ApiModelProperty(value = "成功平均构建时长")
|
||||
private String avgUsedInterval;
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user