Xiajijian
2025-10-20 86164c8f03ba37c81bf91b0b73532ccac2654e92
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
package com.ard.web.controller.sample;
 
import com.ard.sample.common.model.ResponseResult;
import com.ard.sample.manage.model.param.CommandParam;
import com.ard.sample.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.*;
 
/**
 * @author sean
 * @version 1.2
 * @date 2022/7/29
 */
@Api(tags = "指令控制")
@RestController
@Slf4j
@RequestMapping("/dock/devices")
public class CommandController {
 
    @Autowired
    private ICommandService commandService;
 
    @ApiOperation("负载控制-拍照")
    @PostMapping("/{sn}/command/cameraPhotoTake")
    public ResponseResult cameraPhotoTake(@PathVariable String sn,
                                          @RequestBody CommandParam param) {
        return commandService.cameraPhotoTake(sn, param);
    }
 
}