|
|
@@ -5,6 +5,7 @@ import com.github.microservice.auth.security.type.AuthType;
|
|
|
import com.github.microservice.net.ResultContent;
|
|
|
import com.github.microservice.types.deviceUse.DeviceCategory;
|
|
|
import com.github.microservice.types.deviceUse.DeviceType;
|
|
|
+import com.github.microservice.types.deviceUse.OnLineState;
|
|
|
import com.zhongshu.iot.server.core.service.base.CommonService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
@@ -42,4 +43,11 @@ public class CommonController {
|
|
|
public ResultContent getDeviceCategory() {
|
|
|
return ResultContent.buildSuccess(commonService.getEnums(DeviceCategory.values()));
|
|
|
}
|
|
|
+
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
+ @Operation(summary = "设备状态 选择项")
|
|
|
+ @RequestMapping(value = "getOnLineState", method = {RequestMethod.GET})
|
|
|
+ public ResultContent getOnLineState() {
|
|
|
+ return ResultContent.buildSuccess(commonService.getEnums(OnLineState.values()));
|
|
|
+ }
|
|
|
}
|