|
|
@@ -1,13 +1,12 @@
|
|
|
package com.zhongshu.iot.server.core.controller.iot.openAPI;
|
|
|
|
|
|
-import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
-import com.github.microservice.auth.security.type.AuthType;
|
|
|
import com.github.microservice.busInfoModel.thing.IotThing2DeviceModel;
|
|
|
import com.github.microservice.busInfoModel.thing.IotThing2DeviceSearch;
|
|
|
import com.github.microservice.busInfoModel.thing.IotThingModel;
|
|
|
import com.github.microservice.busInfoModel.thing.IotThingSearch;
|
|
|
import com.github.microservice.models.baseParam.IDParam;
|
|
|
import com.github.microservice.net.ResultContent;
|
|
|
+import com.github.microservice.staticVariable.OpenApiMark;
|
|
|
import com.zhongshu.iot.server.core.service.iot.IotThing2DeviceService;
|
|
|
import com.zhongshu.iot.server.core.service.iot.IotThingService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
@@ -29,7 +28,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @author TRX
|
|
|
* @date 2024/3/21
|
|
|
*/
|
|
|
-@RequestMapping("/iotOpenAPI/manager/v1/thing")
|
|
|
+@RequestMapping("/" + OpenApiMark.iotOpenAPI + "/manager/v1/thing")
|
|
|
@RestController
|
|
|
@Validated
|
|
|
@Tag(name = "物模型-物模型管理")
|
|
|
@@ -41,7 +40,6 @@ public class IotThingOpenAPIController {
|
|
|
@Autowired
|
|
|
private IotThing2DeviceService iotThing2DeviceService;
|
|
|
|
|
|
- @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "物模型列表-分页查询")
|
|
|
@RequestMapping(value = {"page"}, method = {RequestMethod.POST})
|
|
|
public ResultContent<Page<IotThingModel>> page(
|
|
|
@@ -50,7 +48,6 @@ public class IotThingOpenAPIController {
|
|
|
return iotThingService.page(pageable, param);
|
|
|
}
|
|
|
|
|
|
- @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "物模型详情")
|
|
|
@RequestMapping(value = "getDetail", method = {RequestMethod.POST})
|
|
|
public ResultContent getDetail(@RequestBody IDParam param) {
|
|
|
@@ -59,7 +56,6 @@ public class IotThingOpenAPIController {
|
|
|
|
|
|
//--------------------------------物模型设备信息 start-----------------
|
|
|
|
|
|
- @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "物模型设备列表-分页查询")
|
|
|
@RequestMapping(value = {"pageDevice"}, method = {RequestMethod.POST})
|
|
|
public ResultContent<Page<IotThing2DeviceModel>> pageDevice(
|