nishiwei
5 days ago 3f43e40ed1a1e9f66b3ad2862da9dbc4b710c712
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * 【机场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);
    }
 
}