update
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.maibu.uav.controller;
|
||||
|
||||
import com.maibu.core.business.dto.uav.FlightTaskCreateDTO;
|
||||
import com.maibu.core.controller.BaseController;
|
||||
import com.maibu.core.domain.AjaxResult;
|
||||
import com.maibu.core.page.TableDataInfo;
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
package com.maibu.uav.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class FlightTaskCreateDTO {
|
||||
private String name;
|
||||
private String sn;
|
||||
private String wayline_uuid;
|
||||
private String time_zone;
|
||||
private Integer rth_altitude;
|
||||
private String rth_mode;
|
||||
private String wayline_precision_type;
|
||||
private String resumable_status;
|
||||
private String task_type;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.maibu.uav.service;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.maibu.core.business.dto.uav.FlightTaskCreateDTO;
|
||||
import com.maibu.core.business.inter.uav.UAVCommandInter;
|
||||
|
||||
@Component
|
||||
public class UAVCommamdHandler implements UAVCommandInter {
|
||||
|
||||
@Autowired
|
||||
private UAVService uService;
|
||||
|
||||
@Override
|
||||
public void createFlightTask(FlightTaskCreateDTO dto){
|
||||
uService.createFlightTask(dto);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,6 +3,7 @@ package com.maibu.uav.service;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.maibu.core.business.dto.uav.FlightTaskCreateDTO;
|
||||
import com.maibu.core.business.uav.IotUAVDevice;
|
||||
import com.maibu.core.domain.entity.SysRole;
|
||||
import com.maibu.core.redis.RedisCache;
|
||||
|
||||
Reference in New Issue
Block a user