parent
6b7fa1f1c7
commit
9718a4b3a3
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 394 B |
Binary file not shown.
@ -0,0 +1,20 @@
|
||||
package com.dsideal.iot.controllers;
|
||||
|
||||
import com.dsideal.iot.models.ApiResponse;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@Api(tags = "71洞庭湖系列网络锁")
|
||||
@RequestMapping("/lock2")
|
||||
@RestController
|
||||
@CrossOrigin
|
||||
public class Lock2Controller extends BaseDeviceController {
|
||||
@ApiOperation(value = "解锁")
|
||||
@GetMapping(value = "21open", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public ApiResponse open(@ApiParam(required = true, value = "设备ID") @RequestParam String id) {
|
||||
return super.sendControl(id, "111");
|
||||
}
|
||||
}
|
Loading…
Reference in new issue