测试涂鸦

This commit is contained in:
weiyachao 2023-09-26 11:04:36 +08:00
parent 7cb59079b0
commit 408cf58743

View File

@ -1,7 +1,15 @@
package com.qiuguo.iot.user.api.controller.tuya;
import com.alibaba.fastjson.JSONObject;
import com.qiuguo.iot.third.query.TuyaQuery;
import com.qiuguo.iot.third.service.TuyaDeviceConnector;
import com.qiuguo.iot.third.service.TuyaDeviceService;
import java.util.Arrays;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;
/**
* XXX
@ -14,7 +22,14 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/tuya")
public class TuyaDeviceController {
@Autowired
private TuyaDeviceService tuyaDeviceService;
@GetMapping("/set")
public Mono<Boolean> set(TuyaQuery query) {
return tuyaDeviceService.controlDevice(query);
}
}