commit 514da053c4f7d0e9108e74b3933cb0d3a542c457
Author: 小鱼干 <1810377322@163.com>
Date: Fri Jun 6 17:44:29 2025 +0800
Initial commit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7006828
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,36 @@
+# Compiled class file
+*.class
+
+# Log file
+log
+*.log
+
+# BlueJ files
+*.ctxt
+
+# Mobile Tools for Java (J2ME)
+.mtj.tmp/
+
+# Package Files #
+*.war
+*.nar
+*.ear
+*.zip
+*.tar.gz
+*.rar
+
+# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
+hs_err_pid*
+.idea
+target
+*.iml
+data/elasticsearch
+.init
+*.db
+.flattened-pom.xml
+
+.DS_Store
+dependency-reduced-pom.xml
+/data/plugins
+/data/dist
+/data/iot-oss
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..11ddf4c
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,33 @@
+# 操作步骤:
+# 1. 打包前端项目,复制dis到data目录
+# 2. 打包java项目
+# 3. docker build -t iot-iita .
+# 4. docker tag iot-iita iotkits/iot-iita
+# 5. docker push iotkits/iot-iita
+
+# 使用包含Java的基础镜像
+FROM eclipse-temurin:11-jre
+# 设置工作目录
+WORKDIR /app
+
+# 复制后端Java应用的JAR文件
+COPY ./iot-starter/target/iot-starter-0.5.3.jar app.jar
+COPY ./data/init/* data/init/
+
+# 安装Nginx
+RUN apt-get update && apt-get install -y nginx
+
+# 复制Nginx配置文件
+COPY ./data/nginx.conf /etc/nginx/nginx.conf
+
+# 复制静态资源
+COPY ./data/dist/ /usr/share/nginx/html
+
+# 暴露端口
+EXPOSE 8082 8086 1883 1884
+# 插件预留端口
+EXPOSE 8130-8140
+
+# 设置容器启动命令
+CMD ["/bin/bash", "-c", "java -jar /app/app.jar & nginx -g 'daemon off;'"]
+
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..261eeb9
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..f0e8d29
--- /dev/null
+++ b/README.md
@@ -0,0 +1,153 @@
+
+
+
+
+ * 枚举 {@link TODO worder_status 对应的类}
+ */
+ private Integer worderStatus;
+
+ /**
+ * fwid
+ */
+ private Long fwId;
+
+ /**
+ * 指派人电话
+ */
+ private String assignPhone;
+ private Long tenantId;
+}
\ No newline at end of file
diff --git a/iot-dao/iot-data-service/pom.xml b/iot-dao/iot-data-service/pom.xml
new file mode 100644
index 0000000..29b44ed
--- /dev/null
+++ b/iot-dao/iot-data-service/pom.xml
@@ -0,0 +1,37 @@
+
+
+
+ iot-dao
+ cc.iotkit
+ 0.5.3
+
+ 4.0.0
+ 0.5.3
+ iot-data-service
+
+
+
+
+ cc.iotkit
+ iot-data-model
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.8.1
+
+ ${java.version}
+ ${java.version}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/ICommonData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/ICommonData.java
new file mode 100644
index 0000000..303792d
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/ICommonData.java
@@ -0,0 +1,89 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data;
+
+import cc.iotkit.common.api.PageRequest;
+import cc.iotkit.common.api.Paging;
+import cc.iotkit.model.Id;
+
+import java.util.Collection;
+import java.util.List;
+
+/**
+ * 数据基础服务接口
+ */
+public interface ICommonData, ID> {
+
+ /**
+ * 通过ID取数据
+ */
+ T findById(ID id);
+
+ /**
+ * 通过ID取数据
+ */
+ List findByIds(Collection id);
+
+
+ /**
+ * 保存数据,id不为空更新,否则添加
+ */
+ T save(T data) ;
+
+
+ /**
+ * 批量保存数据
+ */
+ void batchSave(List data) ;
+ /**
+ * 按id删除
+ */
+ void deleteById(ID id) ;
+ /**
+ * 按id批量删除
+ */
+ void deleteByIds(Collection ids) ;
+ /**
+ * 总数统计
+ */
+ long count();
+ /**
+ * 取所有数据
+ */
+ List findAll() ;
+
+ /**
+ * 分页获取所有信息
+ */
+ Paging findAll(PageRequest pageRequest) ;
+
+ /**
+ * 按条件查询多个结果
+ */
+ List findAllByCondition(T data);
+
+ /**
+ * 按条件查询单个结果
+ */
+ T findOneByCondition(T data);
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/IOwnedData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/IOwnedData.java
new file mode 100644
index 0000000..f0dc58b
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/IOwnedData.java
@@ -0,0 +1,57 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data;
+
+import cc.iotkit.common.api.Paging;
+import cc.iotkit.model.Owned;
+
+import java.util.Collections;
+import java.util.List;
+
+/**
+ * 数据基础服务接口
+ */
+public interface IOwnedData, ID> extends ICommonData {
+
+ /**
+ * 按所属用户取数据
+ * @return
+ */
+ default List findByUid(String uid) {
+ return Collections.emptyList();
+
+ }
+
+ default Paging findByUid(String uid, int page, int size) {
+ return null;
+ }
+
+ /**
+ * 按所属用户统计总数
+ */
+ default long countByUid(String uid) {
+ return 0L;
+
+ }
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IAlertConfigData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IAlertConfigData.java
new file mode 100644
index 0000000..571e2d0
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IAlertConfigData.java
@@ -0,0 +1,35 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.common.api.PageRequest;
+import cc.iotkit.common.api.Paging;
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.alert.AlertConfig;
+
+
+public interface IAlertConfigData extends ICommonData {
+
+
+ Paging selectAlertConfigPage(PageRequest request);
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IAlertRecordData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IAlertRecordData.java
new file mode 100644
index 0000000..343569c
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IAlertRecordData.java
@@ -0,0 +1,41 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.common.api.PageRequest;
+import cc.iotkit.common.api.Paging;
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.alert.AlertRecord;
+import cc.iotkit.model.stats.AlertStatDTO;
+
+import java.util.List;
+
+
+public interface IAlertRecordData extends ICommonData {
+
+
+ Paging selectAlertConfigPage(PageRequest request);
+
+
+ List getAlertRecord();
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ICategoryData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ICategoryData.java
new file mode 100644
index 0000000..d7f203f
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ICategoryData.java
@@ -0,0 +1,29 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.product.Category;
+
+public interface ICategoryData extends ICommonData {
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IChannelConfigData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IChannelConfigData.java
new file mode 100644
index 0000000..4de9b79
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IChannelConfigData.java
@@ -0,0 +1,35 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.notify.ChannelConfig;
+
+/**
+ * author: 石恒
+ * date: 2023-05-11 17:15
+ * description:
+ **/
+public interface IChannelConfigData extends ICommonData {
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IChannelData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IChannelData.java
new file mode 100644
index 0000000..ba4b8bf
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IChannelData.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.notify.Channel;
+
+/**
+ * author: 石恒
+ * date: 2023-05-11 17:15
+ * description:
+ **/
+public interface IChannelData extends ICommonData {
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IChannelTemplateData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IChannelTemplateData.java
new file mode 100644
index 0000000..2bdd9fb
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IChannelTemplateData.java
@@ -0,0 +1,35 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.notify.ChannelTemplate;
+
+/**
+ * author: 石恒
+ * date: 2023-05-11 17:15
+ * description:
+ **/
+public interface IChannelTemplateData extends ICommonData {
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDIccidRecordData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDIccidRecordData.java
new file mode 100644
index 0000000..be4925a
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDIccidRecordData.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.iccid.DIccidRecordDO;
+import cc.iotkit.model.space.Home;
+
+import java.util.List;
+
+
+public interface IDIccidRecordData extends ICommonData {
+
+
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceConfigData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceConfigData.java
new file mode 100644
index 0000000..d7e78d5
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceConfigData.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.device.DeviceConfig;
+
+public interface IDeviceConfigData extends ICommonData {
+
+ DeviceConfig findByDeviceName(String deviceName);
+
+ DeviceConfig findByDeviceId(String deviceId);
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceGroupData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceGroupData.java
new file mode 100644
index 0000000..3433518
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceGroupData.java
@@ -0,0 +1,33 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.common.api.Paging;
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.device.DeviceGroup;
+
+public interface IDeviceGroupData extends ICommonData {
+
+ Paging findByNameLike(String name, int page, int size);
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceInfoData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceInfoData.java
new file mode 100644
index 0000000..9eb781a
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceInfoData.java
@@ -0,0 +1,190 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.common.api.Paging;
+import cc.iotkit.data.IOwnedData;
+import cc.iotkit.model.device.DeviceInfo;
+import cc.iotkit.model.device.message.DevicePropertyCache;
+import cc.iotkit.model.stats.AlertStatDTO;
+import cc.iotkit.model.stats.DataItem;
+import cc.iotkit.model.stats.ProductKeyCountDTO;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+public interface IDeviceInfoData extends IOwnedData {
+
+ /**
+ * 保存设备属性
+ *
+ * @param deviceId 设备id
+ * @param properties 设备属性map
+ */
+ void saveProperties(String deviceId, Map properties);
+
+ /**
+ * 获取设备属性map
+ *
+ * @param deviceId 设备id
+ */
+ Map getProperties(String deviceId);
+
+ /**
+ * 获取设备属性更新时间
+ *
+ * @param deviceId 设备id
+ * @return timestamp
+ */
+ long getPropertyUpdateTime(String deviceId);
+
+ /**
+ * 获取设备最新通讯时间
+ *
+ * @param deviceId 设备id
+ * @return timestamp
+ */
+ long getLastTime(String deviceId);
+ /**
+ * 设置设备最新通讯时间
+ *
+ * @param deviceId 设备id
+ * @return timestamp
+ */
+ void setLastTime(String deviceId, long lastTime);
+
+ /**
+ * 根据设备ID取设备信息
+ *
+ * @param deviceId 设备ID
+ */
+ DeviceInfo findByDeviceId(String deviceId);
+
+ /**
+ * 根据父设备ID取子设备列表
+ *
+ * @param parentId 父设备ID
+ */
+ List findByParentId(String parentId);
+ public List findByConditionsList(String productKey);
+ /**
+ * 根据父设备ID取子设备ID列表
+ *
+ * @param parentId 父设备ID
+ */
+ List findSubDeviceIds(String parentId);
+
+ /**
+ * 根据deviceName查找设备
+ */
+ DeviceInfo findByDeviceName(String deviceName);
+
+ /**
+ * 按条件搜索设备
+ *
+ * @param uid 所属账号id
+ * @param subUid 子账号id
+ * @param productKey 产品key
+ * @param groupId 设备分组
+ * @param online 是否在线:true在线,false离线
+ * @param keyword 关键字
+ * @param page 页码
+ * @param size 分页大小
+ */
+ Paging findByConditions(String uid, String subUid, String productKey,
+ String groupId, Boolean online, String keyword,
+ int page, int size,Long areaDepeId);
+
+ /**
+ * 更新设备标签
+ *
+ * @param deviceId 设备ID
+ * @param tag 标签
+ */
+ void updateTag(String deviceId, DeviceInfo.Tag tag);
+
+ /**
+ * 获取按品类统计的用户设备数
+ */
+ List getDeviceStatsByCategory(String uid);
+ List getProductDevice(Long deptAreaId, String startDate, String endDate);
+ /**
+ * 按分组id统计设备数量
+ */
+ long countByGroupId(String groupId);
+
+ /**
+ * 将设备添加到分组
+ *
+ * @param deviceId 设备ID
+ * @param group 设备分组
+ */
+ void addToGroup(String deviceId, DeviceInfo.Group group);
+
+ /**
+ * 按组id更新设备分组
+ *
+ * @param groupId 分组ID
+ * @param group 设备分组信息
+ */
+ void updateGroup(String groupId, DeviceInfo.Group group);
+
+ /**
+ * 移除指定设备信息中的分组
+ *
+ * @param deviceId 设备ID
+ * @param groupId 分组ID
+ */
+ void removeGroup(String deviceId, String groupId);
+
+ /**
+ * 移除设备信息中的分组
+ *
+ * @param groupId 分组ID
+ */
+ void removeGroup(String groupId);
+
+ /**
+ * 获取所有网关类型设备
+ *
+ * @return
+ */
+ List findByProductNodeType(String uid);
+
+ /**
+ * 是否存在product类型的设备
+ *
+ * @param productKey
+ * @return
+ */
+ boolean existByProductKey(String productKey);
+
+ /**
+ * 查找待激活设备
+ * @return
+ */
+ List findNeverUsedDevices();
+
+ List getDeviceRecord();
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceOtaDetailData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceOtaDetailData.java
new file mode 100644
index 0000000..b7f4bc5
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceOtaDetailData.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.ota.DeviceOtaDetail;
+import cc.iotkit.model.ota.DeviceOtaInfo;
+
+/**
+ * @Author: 石恒
+ * @Date: 2023/6/15 22:14
+ * @Description:
+ */
+public interface IDeviceOtaDetailData extends ICommonData {
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceOtaInfoData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceOtaInfoData.java
new file mode 100644
index 0000000..5475b43
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceOtaInfoData.java
@@ -0,0 +1,35 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.ota.DeviceOtaInfo;
+
+/**
+ * @Author: 石恒
+ * @Date: 2023/6/15 22:14
+ * @Description:
+ */
+public interface IDeviceOtaInfoData extends ICommonData {
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IFeedBackEvaluationData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IFeedBackEvaluationData.java
new file mode 100644
index 0000000..e610370
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IFeedBackEvaluationData.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.FeedBackEvaluation.FeedBackEvaluationDO;
+
+
+
+public interface IFeedBackEvaluationData extends ICommonData {
+
+
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IHomeData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IHomeData.java
new file mode 100644
index 0000000..588e7f9
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IHomeData.java
@@ -0,0 +1,39 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.space.Home;
+
+import java.util.List;
+
+
+public interface IHomeData extends ICommonData {
+
+ Home findByUserIdAndCurrent(Long userId, boolean current);
+
+ List findByUserId(Long userId);
+
+ boolean checkHomeNameUnique(Home home);
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IIconData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IIconData.java
new file mode 100644
index 0000000..b078484
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IIconData.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.product.Icon;
+
+/**
+ * @Author: tfd
+ * @Date: 2024/4/25 14:32
+ * @Description:
+ */
+public interface IIconData extends ICommonData {
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IIconTypeData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IIconTypeData.java
new file mode 100644
index 0000000..10527ea
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IIconTypeData.java
@@ -0,0 +1,33 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.product.IconType;
+/**
+ * @Author: tfd
+ * @Date: 2024/4/25 14:32
+ * @Description:
+ */
+public interface IIconTypeData extends ICommonData {
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/INotifyMessageData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/INotifyMessageData.java
new file mode 100644
index 0000000..e902ebb
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/INotifyMessageData.java
@@ -0,0 +1,35 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.notify.NotifyMessage;
+
+/**
+ * @Author: 石恒
+ * @Date: 2023/5/13 18:32
+ * @Description:
+ */
+public interface INotifyMessageData extends ICommonData {
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IOauthClientData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IOauthClientData.java
new file mode 100644
index 0000000..854eb34
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IOauthClientData.java
@@ -0,0 +1,32 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.OauthClient;
+
+public interface IOauthClientData extends ICommonData {
+
+ OauthClient findByClientId(String clientId);
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IOtaDeviceData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IOtaDeviceData.java
new file mode 100644
index 0000000..07b9739
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IOtaDeviceData.java
@@ -0,0 +1,35 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.ota.OtaDevice;
+
+/**
+ * @Author: 石恒
+ * @Date: 2023/5/25 23:40
+ * @Description:
+ */
+public interface IOtaDeviceData extends ICommonData {
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IOtaPackageData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IOtaPackageData.java
new file mode 100644
index 0000000..0ac25cb
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IOtaPackageData.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.ota.OtaPackage;
+
+/**
+ * @Author: 石恒
+ * @Date: 2023/5/19 21:46
+ * @Description:
+ */
+public interface IOtaPackageData extends ICommonData {
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IPluginInfoData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IPluginInfoData.java
new file mode 100644
index 0000000..75d07ef
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IPluginInfoData.java
@@ -0,0 +1,43 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.plugin.PluginInfo;
+
+/**
+ * 插件信息接口
+ *
+ * @author sjg
+ */
+public interface IPluginInfoData extends ICommonData {
+
+ /**
+ * 按插件包id取插件信息
+ *
+ * @param pluginId 插件包id
+ * @return 插件信息
+ */
+ PluginInfo findByPluginId(String pluginId);
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IPluginInstanceData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IPluginInstanceData.java
new file mode 100644
index 0000000..85195f8
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IPluginInstanceData.java
@@ -0,0 +1,44 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.plugin.PluginInstance;
+
+/**
+ * 插件实例接口
+ *
+ * @author sjg
+ */
+public interface IPluginInstanceData extends ICommonData {
+
+ /**
+ * 获取插件实例
+ *
+ * @param mainId 主程序id
+ * @param pluginId 插件包id
+ * @return 插件实例
+ */
+ PluginInstance findInstance(String mainId, String pluginId);
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IProductData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IProductData.java
new file mode 100644
index 0000000..fddb591
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IProductData.java
@@ -0,0 +1,44 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.product.Product;
+
+import java.util.List;
+
+/**
+ * 产品接口
+ */
+public interface IProductData extends ICommonData {
+
+ /**
+ * 按品类取产品列表
+ */
+ List findByCategory(String category);
+
+
+ Product findByProductKey(String productKey);
+
+ void delByProductKey(String productKey);
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IProductModelData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IProductModelData.java
new file mode 100644
index 0000000..e5ba428
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IProductModelData.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.product.ProductModel;
+
+import java.util.List;
+
+public interface IProductModelData extends ICommonData {
+
+ ProductModel findByModel(String model);
+
+ List findByProductKey(String productKey);
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IRuleInfoData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IRuleInfoData.java
new file mode 100644
index 0000000..f7d3f61
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IRuleInfoData.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+
+package cc.iotkit.data.manager;
+
+import cc.iotkit.common.api.Paging;
+import cc.iotkit.data.IOwnedData;
+import cc.iotkit.model.rule.RuleInfo;
+
+import java.util.List;
+
+public interface IRuleInfoData extends IOwnedData {
+
+ List findByUidAndType(String uid, String type);
+
+ Paging findByUidAndType(String uid, String type, int page, int size);
+
+ Paging findByType(String type, int page, int size);
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IScreenApiData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IScreenApiData.java
new file mode 100644
index 0000000..af45923
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IScreenApiData.java
@@ -0,0 +1,39 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.IOwnedData;
+import cc.iotkit.model.screen.ScreenApi;
+
+import java.util.List;
+
+/**
+ * @Author:tfd
+ * @Date:2023/6/25 15:34
+ */
+public interface IScreenApiData extends IOwnedData {
+ List findByScreenId(Long id);
+
+ void deleteByScreenId(Long id);
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IScreenData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IScreenData.java
new file mode 100644
index 0000000..d131f2b
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IScreenData.java
@@ -0,0 +1,39 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.IOwnedData;
+import cc.iotkit.model.screen.Screen;
+
+import java.util.List;
+
+/**
+ * @Author:tfd
+ * @Date:2023/6/25 15:34
+ */
+public interface IScreenData extends IOwnedData {
+ Screen findByIsDefault(boolean isDefault);
+
+ List findByState(String state);
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ISpaceData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ISpaceData.java
new file mode 100644
index 0000000..c784952
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ISpaceData.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.space.Space;
+
+import java.util.List;
+
+public interface ISpaceData extends ICommonData {
+
+ List findByHomeId(Long homeId);
+
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ISpaceDeviceData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ISpaceDeviceData.java
new file mode 100644
index 0000000..4488dc0
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ISpaceDeviceData.java
@@ -0,0 +1,41 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.space.SpaceDevice;
+
+import java.util.List;
+
+public interface ISpaceDeviceData extends ICommonData {
+
+ List findByHomeIdAndCollect(Long homeId,boolean collect);
+
+ List findByHomeId(Long homeId);
+
+ List findBySpaceId(Long spaceId);
+
+ SpaceDevice findByDeviceId(String deviceId);
+
+ void deleteAllBySpaceId(Long spaceId);
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ITaskInfoData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ITaskInfoData.java
new file mode 100644
index 0000000..2f2ac6f
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ITaskInfoData.java
@@ -0,0 +1,30 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.IOwnedData;
+import cc.iotkit.model.rule.TaskInfo;
+
+public interface ITaskInfoData extends IOwnedData {
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IThingModelData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IThingModelData.java
new file mode 100644
index 0000000..858b764
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IThingModelData.java
@@ -0,0 +1,32 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.product.ThingModel;
+
+public interface IThingModelData extends ICommonData {
+
+ ThingModel findByProductKey(String productKey);
+}
diff --git a/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IUserInfoData.java b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IUserInfoData.java
new file mode 100644
index 0000000..af26b82
--- /dev/null
+++ b/iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IUserInfoData.java
@@ -0,0 +1,35 @@
+/*
+ *
+ * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
+ * * +----------------------------------------------------------------------
+ * * | Author: xw2sy@163.com
+ * * +----------------------------------------------------------------------
+ *
+ * Copyright [2024] [OPENIITA]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * /
+ */
+package cc.iotkit.data.manager;
+
+import cc.iotkit.data.ICommonData;
+import cc.iotkit.model.UserInfo;
+
+import java.util.List;
+
+public interface IUserInfoData extends ICommonData {
+
+ UserInfo findByUid(String uid);
+
+ List