Xiajijian
2025-10-11 8fe759f26e23fb594f4bf02d6d4889f4521d41a7
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
package com.ard.web.controller.sample;
 
import com.ard.sample.common.model.ResponseResult;
import com.ard.sample.manage.model.param.RemoteDebugParam;
import com.ard.sample.manage.service.IControlService;
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 DockController {
 
    @Autowired
    private IControlService controlService;
 
    @ApiOperation("创建控制任务")
    @PostMapping("/{sn}/jobs/{service_identifier}")
    public ResponseResult createControlJob(@PathVariable String sn,
                                           @PathVariable("service_identifier") String serviceIdentifier,
                                           @RequestBody(required = false) RemoteDebugParam param) {
        return controlService.controlDock(sn, serviceIdentifier, param);
    }
 
}