/*
|
* 【机场1】从 dock2 原类 com.ard.web.controller.sample.CommandController 复制/独立适配(DJI Dock 1 / M30)。
|
* 与 dock2 原类同服务共存;本文件内的适配差异以「// 机场1:」内联注释标出。
|
*/
|
package com.ard.web.controller.sample.dock1;
|
|
import com.ard.sample.common.model.ResponseResult;
|
import com.ard.sample.manage.model.param.CommandParam;
|
import com.ard.sample.dock1.manage.service.ICommandService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
import com.ard.web.controller.sample.CommandController;
|
|
/**
|
* @author sean
|
* @version 1.2
|
* @date 2022/7/29
|
*/
|
@Api(tags = "指令控制")
|
@RestController
|
@Slf4j
|
@RequestMapping("/dock1/devices")
|
public class Dock1CommandController {
|
|
@Autowired
|
private ICommandService commandService;
|
|
@ApiOperation("负载控制-拍照")
|
@PostMapping("/{sn}/command/cameraPhotoTake")
|
public ResponseResult cameraPhotoTake(@PathVariable String sn,
|
@RequestBody CommandParam param) {
|
return commandService.cameraPhotoTake(sn, param);
|
}
|
|
}
|