opt:1.Param中@NotBlank和@NotNull国际化。2.音量设置接口。
This commit is contained in:
@@ -3,6 +3,7 @@ package org.nl.api.schedule.setting.api;
|
||||
import cn.hutool.http.HttpResponse;
|
||||
import org.nl.api.schedule.setting.core.ScheduleAPISettingChargeParam;
|
||||
import org.nl.api.schedule.setting.core.ScheduleAPISettingSpeedParam;
|
||||
import org.nl.response.WebResponse;
|
||||
|
||||
/**
|
||||
* @author dsh
|
||||
@@ -23,4 +24,12 @@ public interface ScheduleSettingAPI {
|
||||
* @return HttpResponse
|
||||
*/
|
||||
HttpResponse settingCharge(ScheduleAPISettingChargeParam scheduleAPISettingChargeParam);
|
||||
|
||||
/**
|
||||
* 设置音量
|
||||
* @param volume
|
||||
* @param agvId
|
||||
* @return
|
||||
*/
|
||||
WebResponse settingVolume(Integer volume, String agvId);
|
||||
}
|
||||
|
||||
@@ -13,6 +13,6 @@ public class ScheduleAPISettingSpeedParam {
|
||||
/**
|
||||
* 速度,单位m/s
|
||||
*/
|
||||
@NotBlank(message = "速度不能为空")
|
||||
@NotBlank(message = "{validation_speed_empty}")
|
||||
private double customSpeed;
|
||||
}
|
||||
|
||||
@@ -13,18 +13,18 @@ public class ScheduleAPICreateOneClickTaskParam {
|
||||
/**
|
||||
* 任务号
|
||||
*/
|
||||
@NotBlank(message = "调度任务号不能为空")
|
||||
@NotBlank(message = "{validation_schedule_task_code_empty}")
|
||||
private String task_code;
|
||||
|
||||
/**
|
||||
* 一键任务类型
|
||||
*/
|
||||
@NotBlank(message = "调度一键任务类型不能为空")
|
||||
@NotBlank(message = "{validation_schedule_one_click_type_empty}")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 车号
|
||||
*/
|
||||
@NotBlank(message = "车号不能为空")
|
||||
@NotBlank(message = "{validation_vehicle_number_empty}")
|
||||
private String vehicle_number;
|
||||
}
|
||||
|
||||
@@ -59,4 +59,11 @@ public interface TaskAPI {
|
||||
* @return
|
||||
*/
|
||||
WebResponse taskOperationConfirm(String taskCode);
|
||||
|
||||
/**
|
||||
* 根据目标点查询是否有任务
|
||||
* @param destination
|
||||
* @return
|
||||
*/
|
||||
boolean queryTaskInfoByDestination(String destination);
|
||||
}
|
||||
|
||||
@@ -13,13 +13,13 @@ public class TaskRequestParam {
|
||||
/**
|
||||
* 目标点
|
||||
*/
|
||||
@NotBlank(message = "目标点不能为空")
|
||||
@NotBlank(message = "{validation_destinations_empty}")
|
||||
private String destinations;
|
||||
|
||||
/**
|
||||
* 任务类型
|
||||
*/
|
||||
@NotBlank(message = "任务类型不能为空")
|
||||
@NotBlank(message = "{validation_task_type_empty}")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user