添加日志
This commit is contained in:
parent
4df11ebcc8
commit
ce96ca3988
|
|
@ -20,16 +20,16 @@ public class DroneReturnHomeRequest implements Serializable {
|
|||
/** 机场SN号 */
|
||||
@Schema(description = "机场SN号", example = "THJSQ03B2309DN7VQN43")
|
||||
private String sn;
|
||||
//
|
||||
// /** 消息ID */
|
||||
// @Schema(description = "消息ID", example = "9056")
|
||||
// private Long messageID;
|
||||
//
|
||||
// /** 任务ID */
|
||||
// @Schema(description = "任务ID", example = "9074")
|
||||
// private Long taskId;
|
||||
|
||||
/** 消息ID */
|
||||
@Schema(description = "消息ID", example = "9056")
|
||||
private Long messageID;
|
||||
|
||||
/** 任务ID */
|
||||
@Schema(description = "任务ID", example = "9074")
|
||||
private Long taskId;
|
||||
|
||||
/** 返航类型 */
|
||||
@Schema(description = "返航类型", example = "03")
|
||||
private String zhilin;
|
||||
// /** 返航类型 */
|
||||
// @Schema(description = "返航类型", example = "03")
|
||||
// private String zhilin;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,14 +20,14 @@ public class DroneTakeoffRequest implements Serializable {
|
|||
/** 机场SN号 */
|
||||
@Schema(description = "机场SN号", example = "THJSQ03B2309DN7VQN43")
|
||||
private String sn;
|
||||
//
|
||||
// /** 消息ID */
|
||||
// @Schema(description = "消息ID", example = "9056")
|
||||
// private Long messageID;
|
||||
|
||||
/** 消息ID */
|
||||
@Schema(description = "消息ID", example = "9056")
|
||||
private Long messageID;
|
||||
|
||||
/** 航线文件URL */
|
||||
@Schema(description = "航线文件URL", example = "https://minio-jndsj.t-aaron.com:2443/th-airport/testFile/13912c62-b96f-4df5-ab65-813c8c4b04eb.waypoints")
|
||||
private String airlineFileUrl;
|
||||
// /** 航线文件URL */
|
||||
// @Schema(description = "航线文件URL", example = "https://minio-jndsj.t-aaron.com:2443/th-airport/testFile/13912c62-b96f-4df5-ab65-813c8c4b04eb.waypoints")
|
||||
// private String airlineFileUrl;
|
||||
|
||||
/** 最低电池电量 */
|
||||
@Schema(description = "最低电池电量", example = "0.3")
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
package com.ruoyi.task.api.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
public enum TaskTypeEnum {
|
||||
ONE_CLICK_TAKE_OFF("one_click_take_off", "一键起飞"),
|
||||
PLAN_TASK("plan_task", "计划任务"),
|
||||
|
|
@ -13,6 +16,7 @@ public enum TaskTypeEnum {
|
|||
this.name = name;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
|
@ -21,6 +25,7 @@ public enum TaskTypeEnum {
|
|||
return name;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
public static TaskTypeEnum getByCode(String code) {
|
||||
for (TaskTypeEnum type : values()) {
|
||||
if (type.code.equals(code)) {
|
||||
|
|
@ -29,4 +34,4 @@ public enum TaskTypeEnum {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue