add:第一版测试版本,第二次联调。
This commit is contained in:
@@ -14,5 +14,5 @@ public class ScheduleAPISettingSpeedParam {
|
||||
* 速度,单位m/s
|
||||
*/
|
||||
@NotBlank(message = "速度不能为空")
|
||||
private Integer customSpeed;
|
||||
private double customSpeed;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
package org.nl.api.task.api;
|
||||
|
||||
import org.nl.api.task.core.QRCodeTaskRequestParam;
|
||||
import org.nl.response.WebResponse;
|
||||
|
||||
/**
|
||||
* @author dsh
|
||||
* 2025/12/11
|
||||
@@ -28,4 +31,32 @@ public interface TaskAPI {
|
||||
* @return
|
||||
*/
|
||||
String taskOperationConfirm(String taskCode,String vehicleNumber);
|
||||
|
||||
/**
|
||||
* 二维码生成任务
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
WebResponse createTask(QRCodeTaskRequestParam param);
|
||||
|
||||
/**
|
||||
* 二维码生成任务
|
||||
* @param taskCode
|
||||
* @return
|
||||
*/
|
||||
WebResponse cancelTask(String taskCode);
|
||||
|
||||
/**
|
||||
* 二维码查询任务信息
|
||||
* @param room
|
||||
* @return
|
||||
*/
|
||||
WebResponse queryTaskInfoByRoom(String room);
|
||||
|
||||
/**
|
||||
* 二维码查询任务信息
|
||||
* @param taskCode
|
||||
* @return
|
||||
*/
|
||||
WebResponse taskOperationConfirm(String taskCode);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
package org.nl.api.task.core;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author dsh
|
||||
* 2025/12/23
|
||||
*/
|
||||
@Data
|
||||
public class QRCodeTaskRequestParam {
|
||||
|
||||
/**
|
||||
* 目标点
|
||||
*/
|
||||
@NotBlank(message = "目标点不能为空")
|
||||
private String destinations;
|
||||
|
||||
/**
|
||||
* 任务类型
|
||||
*/
|
||||
@NotBlank(message = "任务类型不能为空")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 任务号
|
||||
*/
|
||||
private String task_code;
|
||||
|
||||
/**
|
||||
* 任务优先级
|
||||
*/
|
||||
private String priority;
|
||||
|
||||
/**
|
||||
* 指定车号
|
||||
*/
|
||||
private String vehicle_number;
|
||||
}
|
||||
Reference in New Issue
Block a user