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);
|
}
|
|
}
|