Merge branch 'feature-BOX一期' of http://47.99.132.106:10081/wulin/qiuguo-iot into feature-BOX一期
This commit is contained in:
commit
c3105b125f
@ -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
|
||||
@ -13,8 +21,15 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@RequestMapping("/tuya")
|
||||
public class TuyaDeviceController {
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private TuyaDeviceService tuyaDeviceService;
|
||||
|
||||
@GetMapping("/set")
|
||||
public Mono<Boolean> set(TuyaQuery query) {
|
||||
|
||||
return tuyaDeviceService.controlDevice(query);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user