[add] 新增无人机模块后端项目
[refactor] 重构后端项目
This commit is contained in:
@ -0,0 +1,79 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 无人机信息对象 drone
|
||||
*
|
||||
* @author 周志雄
|
||||
* @date 2024-07-15
|
||||
*/
|
||||
public class Drone extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 自增的无人机ID */
|
||||
private Long id;
|
||||
|
||||
/** 网关序列号 */
|
||||
@Excel(name = "网关序列号")
|
||||
private String gateway;
|
||||
|
||||
/** 无人机序列号 */
|
||||
@Excel(name = "无人机序列号")
|
||||
private String sn;
|
||||
|
||||
/** 是否在线 */
|
||||
@Excel(name = "是否在线")
|
||||
private String isOnline;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGateway(String gateway)
|
||||
{
|
||||
this.gateway = gateway;
|
||||
}
|
||||
|
||||
public String getGateway()
|
||||
{
|
||||
return gateway;
|
||||
}
|
||||
public void setSn(String sn)
|
||||
{
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public String getSn()
|
||||
{
|
||||
return sn;
|
||||
}
|
||||
public void setIsOnline(String isOnline)
|
||||
{
|
||||
this.isOnline = isOnline;
|
||||
}
|
||||
|
||||
public String getIsOnline()
|
||||
{
|
||||
return isOnline;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("gateway", getGateway())
|
||||
.append("sn", getSn())
|
||||
.append("isOnline", getIsOnline())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,166 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 无人机任务对象 drone_missions
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
public class DroneMissions extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 自增ID */
|
||||
private Long id;
|
||||
|
||||
/** 任务名称 */
|
||||
@Excel(name = "任务名称")
|
||||
private String missionName;
|
||||
|
||||
/** 航线文件URL */
|
||||
@Excel(name = "航线文件URL")
|
||||
private String flightPathUrl;
|
||||
|
||||
/** 航线文件MD5 */
|
||||
@Excel(name = "航线文件MD5")
|
||||
private String flightPathMd5;
|
||||
|
||||
/** 返航高度 */
|
||||
@Excel(name = "返航高度")
|
||||
private Long returnAltitude;
|
||||
|
||||
/** 返航高度模式 */
|
||||
@Excel(name = "返航高度模式")
|
||||
private Integer returnAltitudeMode;
|
||||
|
||||
/** 遥控器失控类型 */
|
||||
@Excel(name = "遥控器失控类型")
|
||||
private Long outOfControlAction;
|
||||
|
||||
/** 航线失控动作 */
|
||||
@Excel(name = "航线失控动作")
|
||||
private Integer flightControlAction;
|
||||
|
||||
/** 航线精度类型 */
|
||||
@Excel(name = "航线精度类型")
|
||||
private Long waylinePrecisionType;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdAt;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setMissionName(String missionName)
|
||||
{
|
||||
this.missionName = missionName;
|
||||
}
|
||||
|
||||
public String getMissionName()
|
||||
{
|
||||
return missionName;
|
||||
}
|
||||
public void setFlightPathUrl(String flightPathUrl)
|
||||
{
|
||||
this.flightPathUrl = flightPathUrl;
|
||||
}
|
||||
|
||||
public String getFlightPathUrl()
|
||||
{
|
||||
return flightPathUrl;
|
||||
}
|
||||
public void setFlightPathMd5(String flightPathMd5)
|
||||
{
|
||||
this.flightPathMd5 = flightPathMd5;
|
||||
}
|
||||
|
||||
public String getFlightPathMd5()
|
||||
{
|
||||
return flightPathMd5;
|
||||
}
|
||||
public void setReturnAltitude(Long returnAltitude)
|
||||
{
|
||||
this.returnAltitude = returnAltitude;
|
||||
}
|
||||
|
||||
public Long getReturnAltitude()
|
||||
{
|
||||
return returnAltitude;
|
||||
}
|
||||
public void setReturnAltitudeMode(Integer returnAltitudeMode)
|
||||
{
|
||||
this.returnAltitudeMode = returnAltitudeMode;
|
||||
}
|
||||
|
||||
public Integer getReturnAltitudeMode()
|
||||
{
|
||||
return returnAltitudeMode;
|
||||
}
|
||||
public void setOutOfControlAction(Long outOfControlAction)
|
||||
{
|
||||
this.outOfControlAction = outOfControlAction;
|
||||
}
|
||||
|
||||
public Long getOutOfControlAction()
|
||||
{
|
||||
return outOfControlAction;
|
||||
}
|
||||
public void setFlightControlAction(Integer flightControlAction)
|
||||
{
|
||||
this.flightControlAction = flightControlAction;
|
||||
}
|
||||
|
||||
public Integer getFlightControlAction()
|
||||
{
|
||||
return flightControlAction;
|
||||
}
|
||||
public void setWaylinePrecisionType(Long waylinePrecisionType)
|
||||
{
|
||||
this.waylinePrecisionType = waylinePrecisionType;
|
||||
}
|
||||
|
||||
public Long getWaylinePrecisionType()
|
||||
{
|
||||
return waylinePrecisionType;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt)
|
||||
{
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("missionName", getMissionName())
|
||||
.append("flightPathUrl", getFlightPathUrl())
|
||||
.append("flightPathMd5", getFlightPathMd5())
|
||||
.append("returnAltitude", getReturnAltitude())
|
||||
.append("returnAltitudeMode", getReturnAltitudeMode())
|
||||
.append("outOfControlAction", getOutOfControlAction())
|
||||
.append("flightControlAction", getFlightControlAction())
|
||||
.append("waylinePrecisionType", getWaylinePrecisionType())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,246 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 航线文件信息对象 flight_paths
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-25
|
||||
*/
|
||||
public class FlightPaths extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 自增ID
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 航线文件名称
|
||||
*/
|
||||
@Excel(name = "航线文件名称")
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 航线文件URL
|
||||
*/
|
||||
@Excel(name = "航线文件URL")
|
||||
private String fileUrl;
|
||||
|
||||
/**
|
||||
* 航线文件MD5
|
||||
*/
|
||||
@Excel(name = "航线文件MD5")
|
||||
private String fileMd5;
|
||||
|
||||
/**
|
||||
* 预计拍照数量
|
||||
*/
|
||||
@Excel(name = "预计拍照数量")
|
||||
private Long photoNum;
|
||||
|
||||
/**
|
||||
* 航线长度
|
||||
*/
|
||||
@Excel(name = "航线长度")
|
||||
private String waylineLen;
|
||||
|
||||
/**
|
||||
* 前端标识
|
||||
*/
|
||||
@Excel(name = "前端标识")
|
||||
private String flag;
|
||||
|
||||
/**
|
||||
* 预计时间
|
||||
*/
|
||||
@Excel(name = "预计时间")
|
||||
private String estimateTime;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdAt;
|
||||
|
||||
/**
|
||||
* 航线类型 0 航点航线
|
||||
*/
|
||||
@Excel(name = "航线类型 0 航点航线")
|
||||
private Long type;
|
||||
|
||||
/**
|
||||
* 航点数据
|
||||
*/
|
||||
@Excel(name = "航点数据")
|
||||
private String points;
|
||||
|
||||
public String getIsImport() {
|
||||
return isImport;
|
||||
}
|
||||
|
||||
public void setIsImport(String isImport) {
|
||||
this.isImport = isImport;
|
||||
}
|
||||
|
||||
private String isImport;
|
||||
|
||||
// 0升序 1降序
|
||||
private Integer order;
|
||||
|
||||
|
||||
public Double getGlobalPointHeight() {
|
||||
return globalPointHeight;
|
||||
}
|
||||
|
||||
public void setGlobalPointHeight(Double globalPointHeight) {
|
||||
this.globalPointHeight = globalPointHeight;
|
||||
}
|
||||
|
||||
// 画航线的全局高度
|
||||
private Double globalPointHeight;
|
||||
|
||||
public Date getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
private Date updatedAt;
|
||||
|
||||
public Integer getOrder() {
|
||||
return order;
|
||||
}
|
||||
|
||||
public void setOrder(Integer order) {
|
||||
this.order = order;
|
||||
}
|
||||
|
||||
|
||||
public String getDeviceType() {
|
||||
return deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
// 设备类型
|
||||
private String deviceType;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileUrl(String fileUrl) {
|
||||
this.fileUrl = fileUrl;
|
||||
}
|
||||
|
||||
public String getFileUrl() {
|
||||
return fileUrl;
|
||||
}
|
||||
|
||||
public void setFileMd5(String fileMd5) {
|
||||
this.fileMd5 = fileMd5;
|
||||
}
|
||||
|
||||
public String getFileMd5() {
|
||||
return fileMd5;
|
||||
}
|
||||
|
||||
public void setPhotoNum(Long photoNum) {
|
||||
this.photoNum = photoNum;
|
||||
}
|
||||
|
||||
public Long getPhotoNum() {
|
||||
return photoNum;
|
||||
}
|
||||
|
||||
public void setWaylineLen(String waylineLen) {
|
||||
this.waylineLen = waylineLen;
|
||||
}
|
||||
|
||||
public String getWaylineLen() {
|
||||
return waylineLen;
|
||||
}
|
||||
|
||||
public void setFlag(String flag) {
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public String getFlag() {
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setEstimateTime(String estimateTime) {
|
||||
this.estimateTime = estimateTime;
|
||||
}
|
||||
|
||||
public String getEstimateTime() {
|
||||
return estimateTime;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setType(Long type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Long getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setPoints(String points) {
|
||||
this.points = points;
|
||||
}
|
||||
|
||||
public String getPoints() {
|
||||
return points;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("fileName", getFileName())
|
||||
.append("fileUrl", getFileUrl())
|
||||
.append("fileMd5", getFileMd5())
|
||||
.append("photoNum", getPhotoNum())
|
||||
.append("waylineLen", getWaylineLen())
|
||||
.append("flag", getFlag())
|
||||
.append("estimateTime", getEstimateTime())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.append("type", getType())
|
||||
.append("points", getPoints())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,153 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 任务对象 flight_tasks
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
public class FlightTasks extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 自增主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 所属飞机SN */
|
||||
@Excel(name = "所属飞机SN")
|
||||
private String sn;
|
||||
|
||||
/** 是否执行 */
|
||||
@Excel(name = "是否执行")
|
||||
private Integer isExecuted;
|
||||
|
||||
/** 任务状态 */
|
||||
@Excel(name = "任务状态")
|
||||
private String status;
|
||||
|
||||
/** 任务ID */
|
||||
@Excel(name = "任务ID")
|
||||
private Long messionId;
|
||||
|
||||
/** flightId */
|
||||
@Excel(name = "flightId")
|
||||
private String flightId;
|
||||
|
||||
/** 实际回传数量 */
|
||||
@Excel(name = "实际回传数量")
|
||||
private Long realPhotoNum;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdAt;
|
||||
|
||||
/** 完成时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date completeAt;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setSn(String sn)
|
||||
{
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public String getSn()
|
||||
{
|
||||
return sn;
|
||||
}
|
||||
public void setIsExecuted(Integer isExecuted)
|
||||
{
|
||||
this.isExecuted = isExecuted;
|
||||
}
|
||||
|
||||
public Integer getIsExecuted()
|
||||
{
|
||||
return isExecuted;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setMessionId(Long messionId)
|
||||
{
|
||||
this.messionId = messionId;
|
||||
}
|
||||
|
||||
public Long getMessionId()
|
||||
{
|
||||
return messionId;
|
||||
}
|
||||
public void setFlightId(String flightId)
|
||||
{
|
||||
this.flightId = flightId;
|
||||
}
|
||||
|
||||
public String getFlightId()
|
||||
{
|
||||
return flightId;
|
||||
}
|
||||
public void setRealPhotoNum(Long realPhotoNum)
|
||||
{
|
||||
this.realPhotoNum = realPhotoNum;
|
||||
}
|
||||
|
||||
public Long getRealPhotoNum()
|
||||
{
|
||||
return realPhotoNum;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt)
|
||||
{
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
public void setCompleteAt(Date completeAt)
|
||||
{
|
||||
this.completeAt = completeAt;
|
||||
}
|
||||
|
||||
public Date getCompleteAt()
|
||||
{
|
||||
return completeAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("sn", getSn())
|
||||
.append("isExecuted", getIsExecuted())
|
||||
.append("status", getStatus())
|
||||
.append("messionId", getMessionId())
|
||||
.append("flightId", getFlightId())
|
||||
.append("realPhotoNum", getRealPhotoNum())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.append("completeAt", getCompleteAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,124 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 网关操作日志对象 gateway_operation_log
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-10
|
||||
*/
|
||||
public class GatewayOperationLog extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 网关编号 */
|
||||
@Excel(name = "网关编号")
|
||||
private String gatewayId;
|
||||
|
||||
/** 操作命令 */
|
||||
@Excel(name = "操作命令")
|
||||
private String operationCommand;
|
||||
|
||||
/** 发送参数 */
|
||||
@Excel(name = "发送参数")
|
||||
private String sendParams;
|
||||
|
||||
/** 返回响应 */
|
||||
@Excel(name = "返回响应")
|
||||
private String executionResponse;
|
||||
|
||||
/** 执行结果 */
|
||||
@Excel(name = "执行结果")
|
||||
private String executionResult;
|
||||
|
||||
/** 操作时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date operationTime;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGatewayId(String gatewayId)
|
||||
{
|
||||
this.gatewayId = gatewayId;
|
||||
}
|
||||
|
||||
public String getGatewayId()
|
||||
{
|
||||
return gatewayId;
|
||||
}
|
||||
public void setOperationCommand(String operationCommand)
|
||||
{
|
||||
this.operationCommand = operationCommand;
|
||||
}
|
||||
|
||||
public String getOperationCommand()
|
||||
{
|
||||
return operationCommand;
|
||||
}
|
||||
public void setSendParams(String sendParams)
|
||||
{
|
||||
this.sendParams = sendParams;
|
||||
}
|
||||
|
||||
public String getSendParams()
|
||||
{
|
||||
return sendParams;
|
||||
}
|
||||
public void setExecutionResponse(String executionResponse)
|
||||
{
|
||||
this.executionResponse = executionResponse;
|
||||
}
|
||||
|
||||
public String getExecutionResponse()
|
||||
{
|
||||
return executionResponse;
|
||||
}
|
||||
public void setExecutionResult(String executionResult)
|
||||
{
|
||||
this.executionResult = executionResult;
|
||||
}
|
||||
|
||||
public String getExecutionResult()
|
||||
{
|
||||
return executionResult;
|
||||
}
|
||||
public void setOperationTime(Date operationTime)
|
||||
{
|
||||
this.operationTime = operationTime;
|
||||
}
|
||||
|
||||
public Date getOperationTime()
|
||||
{
|
||||
return operationTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("gatewayId", getGatewayId())
|
||||
.append("operationCommand", getOperationCommand())
|
||||
.append("sendParams", getSendParams())
|
||||
.append("executionResponse", getExecutionResponse())
|
||||
.append("executionResult", getExecutionResult())
|
||||
.append("operationTime", getOperationTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* Device product enum对象 manage_device_dictionary
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-09-03
|
||||
*/
|
||||
public class ManageDeviceDictionary extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Integer id;
|
||||
|
||||
/** This parameter corresponds to the domain in the Product Type section of the document. 0: drone; 1: payload; 2: remote control; 3: dock; */
|
||||
@Excel(name = "This parameter corresponds to the domain in the Product Type section of the document. 0: drone; 1: payload; 2: remote control; 3: dock;")
|
||||
private Long domain;
|
||||
|
||||
/** This parameter corresponds to the type in the Product Type section of the document. */
|
||||
@Excel(name = "This parameter corresponds to the type in the Product Type section of the document.")
|
||||
private Long deviceType;
|
||||
|
||||
/** This parameter corresponds to the sub_type in the Product Type section of the document. */
|
||||
@Excel(name = "This parameter corresponds to the sub_type in the Product Type section of the document.")
|
||||
private Long subType;
|
||||
|
||||
/** This parameter corresponds to the name in the Product Type section of the document. */
|
||||
@Excel(name = "This parameter corresponds to the name in the Product Type section of the document.")
|
||||
private String deviceName;
|
||||
|
||||
/** remark */
|
||||
@Excel(name = "remark")
|
||||
private String deviceDesc;
|
||||
|
||||
public void setId(Integer id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDomain(Long domain)
|
||||
{
|
||||
this.domain = domain;
|
||||
}
|
||||
|
||||
public Long getDomain()
|
||||
{
|
||||
return domain;
|
||||
}
|
||||
public void setDeviceType(Long deviceType)
|
||||
{
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public Long getDeviceType()
|
||||
{
|
||||
return deviceType;
|
||||
}
|
||||
public void setSubType(Long subType)
|
||||
{
|
||||
this.subType = subType;
|
||||
}
|
||||
|
||||
public Long getSubType()
|
||||
{
|
||||
return subType;
|
||||
}
|
||||
public void setDeviceName(String deviceName)
|
||||
{
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceName()
|
||||
{
|
||||
return deviceName;
|
||||
}
|
||||
public void setDeviceDesc(String deviceDesc)
|
||||
{
|
||||
this.deviceDesc = deviceDesc;
|
||||
}
|
||||
|
||||
public String getDeviceDesc()
|
||||
{
|
||||
return deviceDesc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("domain", getDomain())
|
||||
.append("deviceType", getDeviceType())
|
||||
.append("subType", getSubType())
|
||||
.append("deviceName", getDeviceName())
|
||||
.append("deviceDesc", getDeviceDesc())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,96 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* minio文件存储对象 minio_file
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-30
|
||||
*/
|
||||
public class MinioFile extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** */
|
||||
private Long id;
|
||||
|
||||
/** 飞行任务ID */
|
||||
@Excel(name = "飞行任务ID")
|
||||
private Long flightId;
|
||||
|
||||
/** 文件URL */
|
||||
@Excel(name = "文件URL")
|
||||
private String url;
|
||||
|
||||
/** 文件名 */
|
||||
@Excel(name = "文件名")
|
||||
private String filename;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdAt;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setFlightId(Long flightId)
|
||||
{
|
||||
this.flightId = flightId;
|
||||
}
|
||||
|
||||
public Long getFlightId()
|
||||
{
|
||||
return flightId;
|
||||
}
|
||||
public void setUrl(String url)
|
||||
{
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getUrl()
|
||||
{
|
||||
return url;
|
||||
}
|
||||
public void setFilename(String filename)
|
||||
{
|
||||
this.filename = filename;
|
||||
}
|
||||
|
||||
public String getFilename()
|
||||
{
|
||||
return filename;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt)
|
||||
{
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("flightId", getFlightId())
|
||||
.append("url", getUrl())
|
||||
.append("filename", getFilename())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,282 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 无人机任务对象 missions
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-09-18
|
||||
*/
|
||||
public class Missions extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 自增ID
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
@Excel(name = "任务名称")
|
||||
private String missionName;
|
||||
|
||||
/**
|
||||
* 航线文件ID
|
||||
*/
|
||||
@Excel(name = "航线文件ID")
|
||||
private String fileId;
|
||||
|
||||
/**
|
||||
* 返航高度
|
||||
*/
|
||||
@Excel(name = "返航高度")
|
||||
private Long returnAltitude;
|
||||
private Date lastTime;
|
||||
|
||||
public Date getLastTime() {
|
||||
return lastTime;
|
||||
}
|
||||
|
||||
public void setLastTime(Date lastTime) {
|
||||
this.lastTime = lastTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 返航高度模式
|
||||
*/
|
||||
@Excel(name = "返航高度模式")
|
||||
private Integer returnAltitudeMode;
|
||||
|
||||
/**
|
||||
* 遥控器失控类型
|
||||
*/
|
||||
@Excel(name = "遥控器失控类型")
|
||||
private Long outOfControlAction;
|
||||
|
||||
/**
|
||||
* 航线失控动作
|
||||
*/
|
||||
@Excel(name = "航线失控动作")
|
||||
private Integer flightControlAction;
|
||||
|
||||
/**
|
||||
* 航线精度类型
|
||||
*/
|
||||
@Excel(name = "航线精度类型")
|
||||
private Long waylinePrecisionType;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdAt;
|
||||
|
||||
/**
|
||||
* 1立即、2单次定时、3重复定时
|
||||
*/
|
||||
@Excel(name = "1立即、2单次定时、3重复定时")
|
||||
private Long type;
|
||||
|
||||
/**
|
||||
* 实际执行时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "实际执行时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date execTime;
|
||||
|
||||
/**
|
||||
* flightId
|
||||
*/
|
||||
@Excel(name = "flightId")
|
||||
private Long flightId;
|
||||
|
||||
/**
|
||||
* 任务状态
|
||||
*/
|
||||
@Excel(name = "任务状态")
|
||||
private String state;
|
||||
|
||||
/**
|
||||
* 网关
|
||||
*/
|
||||
@Excel(name = "网关")
|
||||
private String gateway;
|
||||
|
||||
|
||||
private Integer flag;
|
||||
|
||||
public Integer getFlag() {
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setFlag(Integer flag) {
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public Long getTimeStamp() {
|
||||
return timeStamp;
|
||||
}
|
||||
|
||||
public void setTimeStamp(Long timeStamp) {
|
||||
this.timeStamp = timeStamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* 定时任务需要的参数
|
||||
*/
|
||||
private String timer;
|
||||
|
||||
private Long timeStamp;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setMissionName(String missionName) {
|
||||
this.missionName = missionName;
|
||||
}
|
||||
|
||||
public String getMissionName() {
|
||||
return missionName;
|
||||
}
|
||||
|
||||
public void setFileId(String fileId) {
|
||||
this.fileId = fileId;
|
||||
}
|
||||
|
||||
public String getFileId() {
|
||||
return fileId;
|
||||
}
|
||||
|
||||
public void setReturnAltitude(Long returnAltitude) {
|
||||
this.returnAltitude = returnAltitude;
|
||||
}
|
||||
|
||||
public Long getReturnAltitude() {
|
||||
return returnAltitude;
|
||||
}
|
||||
|
||||
public void setReturnAltitudeMode(Integer returnAltitudeMode) {
|
||||
this.returnAltitudeMode = returnAltitudeMode;
|
||||
}
|
||||
|
||||
public Integer getReturnAltitudeMode() {
|
||||
return returnAltitudeMode;
|
||||
}
|
||||
|
||||
public void setOutOfControlAction(Long outOfControlAction) {
|
||||
this.outOfControlAction = outOfControlAction;
|
||||
}
|
||||
|
||||
public Long getOutOfControlAction() {
|
||||
return outOfControlAction;
|
||||
}
|
||||
|
||||
public void setFlightControlAction(Integer flightControlAction) {
|
||||
this.flightControlAction = flightControlAction;
|
||||
}
|
||||
|
||||
public Integer getFlightControlAction() {
|
||||
return flightControlAction;
|
||||
}
|
||||
|
||||
public void setWaylinePrecisionType(Long waylinePrecisionType) {
|
||||
this.waylinePrecisionType = waylinePrecisionType;
|
||||
}
|
||||
|
||||
public Long getWaylinePrecisionType() {
|
||||
return waylinePrecisionType;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setType(Long type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Long getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setExecTime(Date execTime) {
|
||||
this.execTime = execTime;
|
||||
}
|
||||
|
||||
public Date getExecTime() {
|
||||
return execTime;
|
||||
}
|
||||
|
||||
public void setFlightId(Long flightId) {
|
||||
this.flightId = flightId;
|
||||
}
|
||||
|
||||
public Long getFlightId() {
|
||||
return flightId;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setGateway(String gateway) {
|
||||
this.gateway = gateway;
|
||||
}
|
||||
|
||||
public String getTimer() {
|
||||
return timer;
|
||||
}
|
||||
|
||||
public void setTimer(String timer) {
|
||||
this.timer = timer;
|
||||
}
|
||||
|
||||
public String getGateway() {
|
||||
return gateway;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("missionName", getMissionName())
|
||||
.append("fileId", getFileId())
|
||||
.append("returnAltitude", getReturnAltitude())
|
||||
.append("returnAltitudeMode", getReturnAltitudeMode())
|
||||
.append("outOfControlAction", getOutOfControlAction())
|
||||
.append("flightControlAction", getFlightControlAction())
|
||||
.append("waylinePrecisionType", getWaylinePrecisionType())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.append("type", getType())
|
||||
.append("execTime", getExecTime())
|
||||
.append("flightId", getFlightId())
|
||||
.append("state", getState())
|
||||
.append("gateway", getGateway())
|
||||
.append("timer", getTimer())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,82 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 一键起飞对象 one_click_takeoff
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
public class OneClickTakeoff extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 无人机序列号 */
|
||||
@Excel(name = "无人机序列号")
|
||||
private String droneSerialNumber;
|
||||
|
||||
/** 一键起飞时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "一键起飞时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date takeoffTime;
|
||||
|
||||
/** 任务ID */
|
||||
@Excel(name = "任务ID")
|
||||
private Long flightId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDroneSerialNumber(String droneSerialNumber)
|
||||
{
|
||||
this.droneSerialNumber = droneSerialNumber;
|
||||
}
|
||||
|
||||
public String getDroneSerialNumber()
|
||||
{
|
||||
return droneSerialNumber;
|
||||
}
|
||||
public void setTakeoffTime(Date takeoffTime)
|
||||
{
|
||||
this.takeoffTime = takeoffTime;
|
||||
}
|
||||
|
||||
public Date getTakeoffTime()
|
||||
{
|
||||
return takeoffTime;
|
||||
}
|
||||
public void setFlightId(Long flightId)
|
||||
{
|
||||
this.flightId = flightId;
|
||||
}
|
||||
|
||||
public Long getFlightId()
|
||||
{
|
||||
return flightId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("droneSerialNumber", getDroneSerialNumber())
|
||||
.append("takeoffTime", getTakeoffTime())
|
||||
.append("flightId", getFlightId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,152 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 任务定时执行对象 schedule_task
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
public class ScheduleTask extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 自增主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 飞机的SN */
|
||||
@Excel(name = "飞机的SN")
|
||||
private String sn;
|
||||
|
||||
/** taskId */
|
||||
@Excel(name = "taskId")
|
||||
private String taskId;
|
||||
|
||||
/** 执行的月、可以使用 * */
|
||||
@Excel(name = "执行的月、可以使用 *")
|
||||
private String execMonth;
|
||||
|
||||
/** 执行的日、可以使用 * */
|
||||
@Excel(name = "执行的日、可以使用 *")
|
||||
private String execDay;
|
||||
|
||||
/** 执行的时 */
|
||||
@Excel(name = "执行的时")
|
||||
private String execHour;
|
||||
|
||||
/** 执行的分 */
|
||||
@Excel(name = "执行的分")
|
||||
private String execMinute;
|
||||
|
||||
/** 执行的秒 */
|
||||
@Excel(name = "执行的秒")
|
||||
private String execSecond;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdAt;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setSn(String sn)
|
||||
{
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public String getSn()
|
||||
{
|
||||
return sn;
|
||||
}
|
||||
public void setTaskId(String taskId)
|
||||
{
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public String getTaskId()
|
||||
{
|
||||
return taskId;
|
||||
}
|
||||
public void setExecMonth(String execMonth)
|
||||
{
|
||||
this.execMonth = execMonth;
|
||||
}
|
||||
|
||||
public String getExecMonth()
|
||||
{
|
||||
return execMonth;
|
||||
}
|
||||
public void setExecDay(String execDay)
|
||||
{
|
||||
this.execDay = execDay;
|
||||
}
|
||||
|
||||
public String getExecDay()
|
||||
{
|
||||
return execDay;
|
||||
}
|
||||
public void setExecHour(String execHour)
|
||||
{
|
||||
this.execHour = execHour;
|
||||
}
|
||||
|
||||
public String getExecHour()
|
||||
{
|
||||
return execHour;
|
||||
}
|
||||
public void setExecMinute(String execMinute)
|
||||
{
|
||||
this.execMinute = execMinute;
|
||||
}
|
||||
|
||||
public String getExecMinute()
|
||||
{
|
||||
return execMinute;
|
||||
}
|
||||
public void setExecSecond(String execSecond)
|
||||
{
|
||||
this.execSecond = execSecond;
|
||||
}
|
||||
|
||||
public String getExecSecond()
|
||||
{
|
||||
return execSecond;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt)
|
||||
{
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("sn", getSn())
|
||||
.append("taskId", getTaskId())
|
||||
.append("execMonth", getExecMonth())
|
||||
.append("execDay", getExecDay())
|
||||
.append("execHour", getExecHour())
|
||||
.append("execMinute", getExecMinute())
|
||||
.append("execSecond", getExecSecond())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
|
||||
/**
|
||||
* 缓存信息
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysCache
|
||||
{
|
||||
/** 缓存名称 */
|
||||
private String cacheName = "";
|
||||
|
||||
/** 缓存键名 */
|
||||
private String cacheKey = "";
|
||||
|
||||
/** 缓存内容 */
|
||||
private String cacheValue = "";
|
||||
|
||||
/** 备注 */
|
||||
private String remark = "";
|
||||
|
||||
public SysCache()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public SysCache(String cacheName, String remark)
|
||||
{
|
||||
this.cacheName = cacheName;
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public SysCache(String cacheName, String cacheKey, String cacheValue)
|
||||
{
|
||||
this.cacheName = StringUtils.replace(cacheName, ":", "");
|
||||
this.cacheKey = StringUtils.replace(cacheKey, cacheName, "");
|
||||
this.cacheValue = cacheValue;
|
||||
}
|
||||
|
||||
public String getCacheName()
|
||||
{
|
||||
return cacheName;
|
||||
}
|
||||
|
||||
public void setCacheName(String cacheName)
|
||||
{
|
||||
this.cacheName = cacheName;
|
||||
}
|
||||
|
||||
public String getCacheKey()
|
||||
{
|
||||
return cacheKey;
|
||||
}
|
||||
|
||||
public void setCacheKey(String cacheKey)
|
||||
{
|
||||
this.cacheKey = cacheKey;
|
||||
}
|
||||
|
||||
public String getCacheValue()
|
||||
{
|
||||
return cacheValue;
|
||||
}
|
||||
|
||||
public void setCacheValue(String cacheValue)
|
||||
{
|
||||
this.cacheValue = cacheValue;
|
||||
}
|
||||
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,111 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.annotation.Excel.ColumnType;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 参数配置表 sys_config
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysConfig extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 参数主键 */
|
||||
@Excel(name = "参数主键", cellType = ColumnType.NUMERIC)
|
||||
private Long configId;
|
||||
|
||||
/** 参数名称 */
|
||||
@Excel(name = "参数名称")
|
||||
private String configName;
|
||||
|
||||
/** 参数键名 */
|
||||
@Excel(name = "参数键名")
|
||||
private String configKey;
|
||||
|
||||
/** 参数键值 */
|
||||
@Excel(name = "参数键值")
|
||||
private String configValue;
|
||||
|
||||
/** 系统内置(Y是 N否) */
|
||||
@Excel(name = "系统内置", readConverterExp = "Y=是,N=否")
|
||||
private String configType;
|
||||
|
||||
public Long getConfigId()
|
||||
{
|
||||
return configId;
|
||||
}
|
||||
|
||||
public void setConfigId(Long configId)
|
||||
{
|
||||
this.configId = configId;
|
||||
}
|
||||
|
||||
@NotBlank(message = "参数名称不能为空")
|
||||
@Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
|
||||
public String getConfigName()
|
||||
{
|
||||
return configName;
|
||||
}
|
||||
|
||||
public void setConfigName(String configName)
|
||||
{
|
||||
this.configName = configName;
|
||||
}
|
||||
|
||||
@NotBlank(message = "参数键名长度不能为空")
|
||||
@Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
|
||||
public String getConfigKey()
|
||||
{
|
||||
return configKey;
|
||||
}
|
||||
|
||||
public void setConfigKey(String configKey)
|
||||
{
|
||||
this.configKey = configKey;
|
||||
}
|
||||
|
||||
@NotBlank(message = "参数键值不能为空")
|
||||
@Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
|
||||
public String getConfigValue()
|
||||
{
|
||||
return configValue;
|
||||
}
|
||||
|
||||
public void setConfigValue(String configValue)
|
||||
{
|
||||
this.configValue = configValue;
|
||||
}
|
||||
|
||||
public String getConfigType()
|
||||
{
|
||||
return configType;
|
||||
}
|
||||
|
||||
public void setConfigType(String configType)
|
||||
{
|
||||
this.configType = configType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("configId", getConfigId())
|
||||
.append("configName", getConfigName())
|
||||
.append("configKey", getConfigKey())
|
||||
.append("configValue", getConfigValue())
|
||||
.append("configType", getConfigType())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,144 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.annotation.Excel.ColumnType;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 系统访问记录表 sys_logininfor
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysLogininfor extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
@Excel(name = "序号", cellType = ColumnType.NUMERIC)
|
||||
private Long infoId;
|
||||
|
||||
/** 用户账号 */
|
||||
@Excel(name = "用户账号")
|
||||
private String userName;
|
||||
|
||||
/** 登录状态 0成功 1失败 */
|
||||
@Excel(name = "登录状态", readConverterExp = "0=成功,1=失败")
|
||||
private String status;
|
||||
|
||||
/** 登录IP地址 */
|
||||
@Excel(name = "登录地址")
|
||||
private String ipaddr;
|
||||
|
||||
/** 登录地点 */
|
||||
@Excel(name = "登录地点")
|
||||
private String loginLocation;
|
||||
|
||||
/** 浏览器类型 */
|
||||
@Excel(name = "浏览器")
|
||||
private String browser;
|
||||
|
||||
/** 操作系统 */
|
||||
@Excel(name = "操作系统")
|
||||
private String os;
|
||||
|
||||
/** 提示消息 */
|
||||
@Excel(name = "提示消息")
|
||||
private String msg;
|
||||
|
||||
/** 访问时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date loginTime;
|
||||
|
||||
public Long getInfoId()
|
||||
{
|
||||
return infoId;
|
||||
}
|
||||
|
||||
public void setInfoId(Long infoId)
|
||||
{
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public String getUserName()
|
||||
{
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName)
|
||||
{
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getIpaddr()
|
||||
{
|
||||
return ipaddr;
|
||||
}
|
||||
|
||||
public void setIpaddr(String ipaddr)
|
||||
{
|
||||
this.ipaddr = ipaddr;
|
||||
}
|
||||
|
||||
public String getLoginLocation()
|
||||
{
|
||||
return loginLocation;
|
||||
}
|
||||
|
||||
public void setLoginLocation(String loginLocation)
|
||||
{
|
||||
this.loginLocation = loginLocation;
|
||||
}
|
||||
|
||||
public String getBrowser()
|
||||
{
|
||||
return browser;
|
||||
}
|
||||
|
||||
public void setBrowser(String browser)
|
||||
{
|
||||
this.browser = browser;
|
||||
}
|
||||
|
||||
public String getOs()
|
||||
{
|
||||
return os;
|
||||
}
|
||||
|
||||
public void setOs(String os)
|
||||
{
|
||||
this.os = os;
|
||||
}
|
||||
|
||||
public String getMsg()
|
||||
{
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg)
|
||||
{
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Date getLoginTime()
|
||||
{
|
||||
return loginTime;
|
||||
}
|
||||
|
||||
public void setLoginTime(Date loginTime)
|
||||
{
|
||||
this.loginTime = loginTime;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,102 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import com.ruoyi.common.xss.Xss;
|
||||
|
||||
/**
|
||||
* 通知公告表 sys_notice
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysNotice extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 公告ID */
|
||||
private Long noticeId;
|
||||
|
||||
/** 公告标题 */
|
||||
private String noticeTitle;
|
||||
|
||||
/** 公告类型(1通知 2公告) */
|
||||
private String noticeType;
|
||||
|
||||
/** 公告内容 */
|
||||
private String noticeContent;
|
||||
|
||||
/** 公告状态(0正常 1关闭) */
|
||||
private String status;
|
||||
|
||||
public Long getNoticeId()
|
||||
{
|
||||
return noticeId;
|
||||
}
|
||||
|
||||
public void setNoticeId(Long noticeId)
|
||||
{
|
||||
this.noticeId = noticeId;
|
||||
}
|
||||
|
||||
public void setNoticeTitle(String noticeTitle)
|
||||
{
|
||||
this.noticeTitle = noticeTitle;
|
||||
}
|
||||
|
||||
@Xss(message = "公告标题不能包含脚本字符")
|
||||
@NotBlank(message = "公告标题不能为空")
|
||||
@Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
|
||||
public String getNoticeTitle()
|
||||
{
|
||||
return noticeTitle;
|
||||
}
|
||||
|
||||
public void setNoticeType(String noticeType)
|
||||
{
|
||||
this.noticeType = noticeType;
|
||||
}
|
||||
|
||||
public String getNoticeType()
|
||||
{
|
||||
return noticeType;
|
||||
}
|
||||
|
||||
public void setNoticeContent(String noticeContent)
|
||||
{
|
||||
this.noticeContent = noticeContent;
|
||||
}
|
||||
|
||||
public String getNoticeContent()
|
||||
{
|
||||
return noticeContent;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("noticeId", getNoticeId())
|
||||
.append("noticeTitle", getNoticeTitle())
|
||||
.append("noticeType", getNoticeType())
|
||||
.append("noticeContent", getNoticeContent())
|
||||
.append("status", getStatus())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,269 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.annotation.Excel.ColumnType;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 操作日志记录表 oper_log
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysOperLog extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 日志主键 */
|
||||
@Excel(name = "操作序号", cellType = ColumnType.NUMERIC)
|
||||
private Long operId;
|
||||
|
||||
/** 操作模块 */
|
||||
@Excel(name = "操作模块")
|
||||
private String title;
|
||||
|
||||
/** 业务类型(0其它 1新增 2修改 3删除) */
|
||||
@Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据")
|
||||
private Integer businessType;
|
||||
|
||||
/** 业务类型数组 */
|
||||
private Integer[] businessTypes;
|
||||
|
||||
/** 请求方法 */
|
||||
@Excel(name = "请求方法")
|
||||
private String method;
|
||||
|
||||
/** 请求方式 */
|
||||
@Excel(name = "请求方式")
|
||||
private String requestMethod;
|
||||
|
||||
/** 操作类别(0其它 1后台用户 2手机端用户) */
|
||||
@Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
|
||||
private Integer operatorType;
|
||||
|
||||
/** 操作人员 */
|
||||
@Excel(name = "操作人员")
|
||||
private String operName;
|
||||
|
||||
/** 部门名称 */
|
||||
@Excel(name = "部门名称")
|
||||
private String deptName;
|
||||
|
||||
/** 请求url */
|
||||
@Excel(name = "请求地址")
|
||||
private String operUrl;
|
||||
|
||||
/** 操作地址 */
|
||||
@Excel(name = "操作地址")
|
||||
private String operIp;
|
||||
|
||||
/** 操作地点 */
|
||||
@Excel(name = "操作地点")
|
||||
private String operLocation;
|
||||
|
||||
/** 请求参数 */
|
||||
@Excel(name = "请求参数")
|
||||
private String operParam;
|
||||
|
||||
/** 返回参数 */
|
||||
@Excel(name = "返回参数")
|
||||
private String jsonResult;
|
||||
|
||||
/** 操作状态(0正常 1异常) */
|
||||
@Excel(name = "状态", readConverterExp = "0=正常,1=异常")
|
||||
private Integer status;
|
||||
|
||||
/** 错误消息 */
|
||||
@Excel(name = "错误消息")
|
||||
private String errorMsg;
|
||||
|
||||
/** 操作时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date operTime;
|
||||
|
||||
/** 消耗时间 */
|
||||
@Excel(name = "消耗时间", suffix = "毫秒")
|
||||
private Long costTime;
|
||||
|
||||
public Long getOperId()
|
||||
{
|
||||
return operId;
|
||||
}
|
||||
|
||||
public void setOperId(Long operId)
|
||||
{
|
||||
this.operId = operId;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public Integer getBusinessType()
|
||||
{
|
||||
return businessType;
|
||||
}
|
||||
|
||||
public void setBusinessType(Integer businessType)
|
||||
{
|
||||
this.businessType = businessType;
|
||||
}
|
||||
|
||||
public Integer[] getBusinessTypes()
|
||||
{
|
||||
return businessTypes;
|
||||
}
|
||||
|
||||
public void setBusinessTypes(Integer[] businessTypes)
|
||||
{
|
||||
this.businessTypes = businessTypes;
|
||||
}
|
||||
|
||||
public String getMethod()
|
||||
{
|
||||
return method;
|
||||
}
|
||||
|
||||
public void setMethod(String method)
|
||||
{
|
||||
this.method = method;
|
||||
}
|
||||
|
||||
public String getRequestMethod()
|
||||
{
|
||||
return requestMethod;
|
||||
}
|
||||
|
||||
public void setRequestMethod(String requestMethod)
|
||||
{
|
||||
this.requestMethod = requestMethod;
|
||||
}
|
||||
|
||||
public Integer getOperatorType()
|
||||
{
|
||||
return operatorType;
|
||||
}
|
||||
|
||||
public void setOperatorType(Integer operatorType)
|
||||
{
|
||||
this.operatorType = operatorType;
|
||||
}
|
||||
|
||||
public String getOperName()
|
||||
{
|
||||
return operName;
|
||||
}
|
||||
|
||||
public void setOperName(String operName)
|
||||
{
|
||||
this.operName = operName;
|
||||
}
|
||||
|
||||
public String getDeptName()
|
||||
{
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName)
|
||||
{
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public String getOperUrl()
|
||||
{
|
||||
return operUrl;
|
||||
}
|
||||
|
||||
public void setOperUrl(String operUrl)
|
||||
{
|
||||
this.operUrl = operUrl;
|
||||
}
|
||||
|
||||
public String getOperIp()
|
||||
{
|
||||
return operIp;
|
||||
}
|
||||
|
||||
public void setOperIp(String operIp)
|
||||
{
|
||||
this.operIp = operIp;
|
||||
}
|
||||
|
||||
public String getOperLocation()
|
||||
{
|
||||
return operLocation;
|
||||
}
|
||||
|
||||
public void setOperLocation(String operLocation)
|
||||
{
|
||||
this.operLocation = operLocation;
|
||||
}
|
||||
|
||||
public String getOperParam()
|
||||
{
|
||||
return operParam;
|
||||
}
|
||||
|
||||
public void setOperParam(String operParam)
|
||||
{
|
||||
this.operParam = operParam;
|
||||
}
|
||||
|
||||
public String getJsonResult()
|
||||
{
|
||||
return jsonResult;
|
||||
}
|
||||
|
||||
public void setJsonResult(String jsonResult)
|
||||
{
|
||||
this.jsonResult = jsonResult;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getErrorMsg()
|
||||
{
|
||||
return errorMsg;
|
||||
}
|
||||
|
||||
public void setErrorMsg(String errorMsg)
|
||||
{
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
|
||||
public Date getOperTime()
|
||||
{
|
||||
return operTime;
|
||||
}
|
||||
|
||||
public void setOperTime(Date operTime)
|
||||
{
|
||||
this.operTime = operTime;
|
||||
}
|
||||
|
||||
public Long getCostTime()
|
||||
{
|
||||
return costTime;
|
||||
}
|
||||
|
||||
public void setCostTime(Long costTime)
|
||||
{
|
||||
this.costTime = costTime;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,124 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.annotation.Excel.ColumnType;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 岗位表 sys_post
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysPost extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 岗位序号 */
|
||||
@Excel(name = "岗位序号", cellType = ColumnType.NUMERIC)
|
||||
private Long postId;
|
||||
|
||||
/** 岗位编码 */
|
||||
@Excel(name = "岗位编码")
|
||||
private String postCode;
|
||||
|
||||
/** 岗位名称 */
|
||||
@Excel(name = "岗位名称")
|
||||
private String postName;
|
||||
|
||||
/** 岗位排序 */
|
||||
@Excel(name = "岗位排序")
|
||||
private Integer postSort;
|
||||
|
||||
/** 状态(0正常 1停用) */
|
||||
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
||||
private String status;
|
||||
|
||||
/** 用户是否存在此岗位标识 默认不存在 */
|
||||
private boolean flag = false;
|
||||
|
||||
public Long getPostId()
|
||||
{
|
||||
return postId;
|
||||
}
|
||||
|
||||
public void setPostId(Long postId)
|
||||
{
|
||||
this.postId = postId;
|
||||
}
|
||||
|
||||
@NotBlank(message = "岗位编码不能为空")
|
||||
@Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符")
|
||||
public String getPostCode()
|
||||
{
|
||||
return postCode;
|
||||
}
|
||||
|
||||
public void setPostCode(String postCode)
|
||||
{
|
||||
this.postCode = postCode;
|
||||
}
|
||||
|
||||
@NotBlank(message = "岗位名称不能为空")
|
||||
@Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符")
|
||||
public String getPostName()
|
||||
{
|
||||
return postName;
|
||||
}
|
||||
|
||||
public void setPostName(String postName)
|
||||
{
|
||||
this.postName = postName;
|
||||
}
|
||||
|
||||
@NotNull(message = "显示顺序不能为空")
|
||||
public Integer getPostSort()
|
||||
{
|
||||
return postSort;
|
||||
}
|
||||
|
||||
public void setPostSort(Integer postSort)
|
||||
{
|
||||
this.postSort = postSort;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public boolean isFlag()
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setFlag(boolean flag)
|
||||
{
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("postId", getPostId())
|
||||
.append("postCode", getPostCode())
|
||||
.append("postName", getPostName())
|
||||
.append("postSort", getPostSort())
|
||||
.append("status", getStatus())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 角色和部门关联 sys_role_dept
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysRoleDept
|
||||
{
|
||||
/** 角色ID */
|
||||
private Long roleId;
|
||||
|
||||
/** 部门ID */
|
||||
private Long deptId;
|
||||
|
||||
public Long getRoleId()
|
||||
{
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Long roleId)
|
||||
{
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("roleId", getRoleId())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 角色和菜单关联 sys_role_menu
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysRoleMenu
|
||||
{
|
||||
/** 角色ID */
|
||||
private Long roleId;
|
||||
|
||||
/** 菜单ID */
|
||||
private Long menuId;
|
||||
|
||||
public Long getRoleId()
|
||||
{
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Long roleId)
|
||||
{
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public Long getMenuId()
|
||||
{
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(Long menuId)
|
||||
{
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("roleId", getRoleId())
|
||||
.append("menuId", getMenuId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,113 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
/**
|
||||
* 当前在线会话
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysUserOnline
|
||||
{
|
||||
/** 会话编号 */
|
||||
private String tokenId;
|
||||
|
||||
/** 部门名称 */
|
||||
private String deptName;
|
||||
|
||||
/** 用户名称 */
|
||||
private String userName;
|
||||
|
||||
/** 登录IP地址 */
|
||||
private String ipaddr;
|
||||
|
||||
/** 登录地址 */
|
||||
private String loginLocation;
|
||||
|
||||
/** 浏览器类型 */
|
||||
private String browser;
|
||||
|
||||
/** 操作系统 */
|
||||
private String os;
|
||||
|
||||
/** 登录时间 */
|
||||
private Long loginTime;
|
||||
|
||||
public String getTokenId()
|
||||
{
|
||||
return tokenId;
|
||||
}
|
||||
|
||||
public void setTokenId(String tokenId)
|
||||
{
|
||||
this.tokenId = tokenId;
|
||||
}
|
||||
|
||||
public String getDeptName()
|
||||
{
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName)
|
||||
{
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public String getUserName()
|
||||
{
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName)
|
||||
{
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getIpaddr()
|
||||
{
|
||||
return ipaddr;
|
||||
}
|
||||
|
||||
public void setIpaddr(String ipaddr)
|
||||
{
|
||||
this.ipaddr = ipaddr;
|
||||
}
|
||||
|
||||
public String getLoginLocation()
|
||||
{
|
||||
return loginLocation;
|
||||
}
|
||||
|
||||
public void setLoginLocation(String loginLocation)
|
||||
{
|
||||
this.loginLocation = loginLocation;
|
||||
}
|
||||
|
||||
public String getBrowser()
|
||||
{
|
||||
return browser;
|
||||
}
|
||||
|
||||
public void setBrowser(String browser)
|
||||
{
|
||||
this.browser = browser;
|
||||
}
|
||||
|
||||
public String getOs()
|
||||
{
|
||||
return os;
|
||||
}
|
||||
|
||||
public void setOs(String os)
|
||||
{
|
||||
this.os = os;
|
||||
}
|
||||
|
||||
public Long getLoginTime()
|
||||
{
|
||||
return loginTime;
|
||||
}
|
||||
|
||||
public void setLoginTime(Long loginTime)
|
||||
{
|
||||
this.loginTime = loginTime;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 用户和岗位关联 sys_user_post
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysUserPost
|
||||
{
|
||||
/** 用户ID */
|
||||
private Long userId;
|
||||
|
||||
/** 岗位ID */
|
||||
private Long postId;
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getPostId()
|
||||
{
|
||||
return postId;
|
||||
}
|
||||
|
||||
public void setPostId(Long postId)
|
||||
{
|
||||
this.postId = postId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("userId", getUserId())
|
||||
.append("postId", getPostId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 用户和角色关联 sys_user_role
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysUserRole
|
||||
{
|
||||
/** 用户ID */
|
||||
private Long userId;
|
||||
|
||||
/** 角色ID */
|
||||
private Long roleId;
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getRoleId()
|
||||
{
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Long roleId)
|
||||
{
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("userId", getUserId())
|
||||
.append("roleId", getRoleId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,146 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 视频设备对象 video_info
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-15
|
||||
*/
|
||||
public class VideoInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一标识 */
|
||||
private Long id;
|
||||
|
||||
/** 设备序列号 */
|
||||
@Excel(name = "设备序列号")
|
||||
private String sn;
|
||||
|
||||
/** 所在网关 */
|
||||
@Excel(name = "所在网关")
|
||||
private String gateway;
|
||||
|
||||
/** 摄像头索引 */
|
||||
@Excel(name = "摄像头索引")
|
||||
private String cameraIndex;
|
||||
|
||||
/** 视频索引 */
|
||||
@Excel(name = "视频索引")
|
||||
private String videoIndex;
|
||||
|
||||
/** 类型 */
|
||||
@Excel(name = "类型")
|
||||
private String type;
|
||||
|
||||
/** 设备类型 */
|
||||
@Excel(name = "设备类型")
|
||||
private String deviceType;
|
||||
|
||||
/** 在飞机的索引(飞机独有) */
|
||||
@Excel(name = "在飞机的索引(飞机独有)")
|
||||
private String flyIndex;
|
||||
|
||||
public String getBusinessName() {
|
||||
return businessName;
|
||||
}
|
||||
|
||||
public void setBusinessName(String businessName) {
|
||||
this.businessName = businessName;
|
||||
}
|
||||
|
||||
@Excel(name = "业务名称")
|
||||
private String businessName;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setSn(String sn)
|
||||
{
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public String getSn()
|
||||
{
|
||||
return sn;
|
||||
}
|
||||
public void setGateway(String gateway)
|
||||
{
|
||||
this.gateway = gateway;
|
||||
}
|
||||
|
||||
public String getGateway()
|
||||
{
|
||||
return gateway;
|
||||
}
|
||||
public void setCameraIndex(String cameraIndex)
|
||||
{
|
||||
this.cameraIndex = cameraIndex;
|
||||
}
|
||||
|
||||
public String getCameraIndex()
|
||||
{
|
||||
return cameraIndex;
|
||||
}
|
||||
public void setVideoIndex(String videoIndex)
|
||||
{
|
||||
this.videoIndex = videoIndex;
|
||||
}
|
||||
|
||||
public String getVideoIndex()
|
||||
{
|
||||
return videoIndex;
|
||||
}
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setDeviceType(String deviceType)
|
||||
{
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public String getDeviceType()
|
||||
{
|
||||
return deviceType;
|
||||
}
|
||||
public void setFlyIndex(String flyIndex)
|
||||
{
|
||||
this.flyIndex = flyIndex;
|
||||
}
|
||||
|
||||
public String getFlyIndex()
|
||||
{
|
||||
return flyIndex;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("sn", getSn())
|
||||
.append("gateway", getGateway())
|
||||
.append("cameraIndex", getCameraIndex())
|
||||
.append("videoIndex", getVideoIndex())
|
||||
.append("type", getType())
|
||||
.append("deviceType", getDeviceType())
|
||||
.append("flyIndex", getFlyIndex())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,106 @@
|
||||
package com.ruoyi.system.domain.vo;
|
||||
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
|
||||
/**
|
||||
* 路由显示信息
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class MetaVo
|
||||
{
|
||||
/**
|
||||
* 设置该路由在侧边栏和面包屑中展示的名字
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 设置该路由的图标,对应路径src/assets/icons/svg
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* 设置为true,则不会被 <keep-alive>缓存
|
||||
*/
|
||||
private boolean noCache;
|
||||
|
||||
/**
|
||||
* 内链地址(http(s)://开头)
|
||||
*/
|
||||
private String link;
|
||||
|
||||
public MetaVo()
|
||||
{
|
||||
}
|
||||
|
||||
public MetaVo(String title, String icon)
|
||||
{
|
||||
this.title = title;
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
public MetaVo(String title, String icon, boolean noCache)
|
||||
{
|
||||
this.title = title;
|
||||
this.icon = icon;
|
||||
this.noCache = noCache;
|
||||
}
|
||||
|
||||
public MetaVo(String title, String icon, String link)
|
||||
{
|
||||
this.title = title;
|
||||
this.icon = icon;
|
||||
this.link = link;
|
||||
}
|
||||
|
||||
public MetaVo(String title, String icon, boolean noCache, String link)
|
||||
{
|
||||
this.title = title;
|
||||
this.icon = icon;
|
||||
this.noCache = noCache;
|
||||
if (StringUtils.ishttp(link))
|
||||
{
|
||||
this.link = link;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isNoCache()
|
||||
{
|
||||
return noCache;
|
||||
}
|
||||
|
||||
public void setNoCache(boolean noCache)
|
||||
{
|
||||
this.noCache = noCache;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getIcon()
|
||||
{
|
||||
return icon;
|
||||
}
|
||||
|
||||
public void setIcon(String icon)
|
||||
{
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
public String getLink()
|
||||
{
|
||||
return link;
|
||||
}
|
||||
|
||||
public void setLink(String link)
|
||||
{
|
||||
this.link = link;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,148 @@
|
||||
package com.ruoyi.system.domain.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 路由配置信息
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
public class RouterVo
|
||||
{
|
||||
/**
|
||||
* 路由名字
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 路由地址
|
||||
*/
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* 是否隐藏路由,当设置 true 的时候该路由不会再侧边栏出现
|
||||
*/
|
||||
private boolean hidden;
|
||||
|
||||
/**
|
||||
* 重定向地址,当设置 noRedirect 的时候该路由在面包屑导航中不可被点击
|
||||
*/
|
||||
private String redirect;
|
||||
|
||||
/**
|
||||
* 组件地址
|
||||
*/
|
||||
private String component;
|
||||
|
||||
/**
|
||||
* 路由参数:如 {"id": 1, "name": "ry"}
|
||||
*/
|
||||
private String query;
|
||||
|
||||
/**
|
||||
* 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面
|
||||
*/
|
||||
private Boolean alwaysShow;
|
||||
|
||||
/**
|
||||
* 其他元素
|
||||
*/
|
||||
private MetaVo meta;
|
||||
|
||||
/**
|
||||
* 子路由
|
||||
*/
|
||||
private List<RouterVo> children;
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPath()
|
||||
{
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path)
|
||||
{
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public boolean getHidden()
|
||||
{
|
||||
return hidden;
|
||||
}
|
||||
|
||||
public void setHidden(boolean hidden)
|
||||
{
|
||||
this.hidden = hidden;
|
||||
}
|
||||
|
||||
public String getRedirect()
|
||||
{
|
||||
return redirect;
|
||||
}
|
||||
|
||||
public void setRedirect(String redirect)
|
||||
{
|
||||
this.redirect = redirect;
|
||||
}
|
||||
|
||||
public String getComponent()
|
||||
{
|
||||
return component;
|
||||
}
|
||||
|
||||
public void setComponent(String component)
|
||||
{
|
||||
this.component = component;
|
||||
}
|
||||
|
||||
public String getQuery()
|
||||
{
|
||||
return query;
|
||||
}
|
||||
|
||||
public void setQuery(String query)
|
||||
{
|
||||
this.query = query;
|
||||
}
|
||||
|
||||
public Boolean getAlwaysShow()
|
||||
{
|
||||
return alwaysShow;
|
||||
}
|
||||
|
||||
public void setAlwaysShow(Boolean alwaysShow)
|
||||
{
|
||||
this.alwaysShow = alwaysShow;
|
||||
}
|
||||
|
||||
public MetaVo getMeta()
|
||||
{
|
||||
return meta;
|
||||
}
|
||||
|
||||
public void setMeta(MetaVo meta)
|
||||
{
|
||||
this.meta = meta;
|
||||
}
|
||||
|
||||
public List<RouterVo> getChildren()
|
||||
{
|
||||
return children;
|
||||
}
|
||||
|
||||
public void setChildren(List<RouterVo> children)
|
||||
{
|
||||
this.children = children;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,129 @@
|
||||
package com.ruoyi.system.domain.vo;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 视频设备对象 video_info
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-09
|
||||
*/
|
||||
@ApiModel(value = "直播相关参数")
|
||||
public class VideoInfoVo {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 设备序列号
|
||||
*/
|
||||
@ApiModelProperty("设备序列号")
|
||||
@Excel(name = "设备序列号")
|
||||
private String sn;
|
||||
|
||||
/**
|
||||
* 摄像头索引
|
||||
*/
|
||||
@ApiModelProperty("摄像头索引")
|
||||
@Excel(name = "摄像头索引")
|
||||
private String cameraIndex;
|
||||
|
||||
/**
|
||||
* 视频索引
|
||||
*/
|
||||
@ApiModelProperty("视频索引")
|
||||
@Excel(name = "视频索引")
|
||||
private String videoIndex;
|
||||
|
||||
@ApiModelProperty("清晰度")
|
||||
@Excel(name = "清晰度")
|
||||
private Integer definition;
|
||||
|
||||
@ApiModelProperty("视频服务器主机")
|
||||
private String host;
|
||||
@ApiModelProperty("rtmp端口")
|
||||
private String rtmpPort;
|
||||
@ApiModelProperty("webrtc端口")
|
||||
private String rtcPort;
|
||||
|
||||
public String getHost() {
|
||||
return host;
|
||||
}
|
||||
|
||||
public void setHost(String host) {
|
||||
this.host = host;
|
||||
}
|
||||
|
||||
public String getRtmpPort() {
|
||||
return rtmpPort;
|
||||
}
|
||||
|
||||
public void setRtmpPort(String rtmpPort) {
|
||||
this.rtmpPort = rtmpPort;
|
||||
}
|
||||
|
||||
public String getRtcPort() {
|
||||
return rtcPort;
|
||||
}
|
||||
|
||||
public void setRtcPort(String rtcPort) {
|
||||
this.rtcPort = rtcPort;
|
||||
}
|
||||
|
||||
public Integer getDefinition() {
|
||||
return definition;
|
||||
}
|
||||
|
||||
public void setDefinition(Integer definition) {
|
||||
this.definition = definition;
|
||||
}
|
||||
|
||||
|
||||
public String getGateway() {
|
||||
return gateway;
|
||||
}
|
||||
|
||||
public void setGateway(String gateway) {
|
||||
this.gateway = gateway;
|
||||
}
|
||||
|
||||
@ApiModelProperty("网关")
|
||||
@Excel(name = "网关")
|
||||
private String gateway;
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setCameraIndex(String cameraIndex) {
|
||||
this.cameraIndex = cameraIndex;
|
||||
}
|
||||
|
||||
public String getCameraIndex() {
|
||||
return cameraIndex;
|
||||
}
|
||||
|
||||
public void setVideoIndex(String videoIndex) {
|
||||
this.videoIndex = videoIndex;
|
||||
}
|
||||
|
||||
public String getVideoIndex() {
|
||||
return videoIndex;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("sn", getSn())
|
||||
.append("cameraIndex", getCameraIndex())
|
||||
.append("videoIndex", getVideoIndex())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user