├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── data ├── init │ ├── category.json │ ├── channel.json │ ├── channelConfig.json │ ├── channelTemplate.json │ ├── deviceGroup.json │ ├── deviceInfo.json │ ├── home.json │ ├── icon.json │ ├── iconType.json │ ├── notifyMessage.json │ ├── oauthClient.json │ ├── pluginInfo.json │ ├── product.json │ ├── productModel.json │ ├── ruleInfo.json │ ├── space.json │ ├── spaceDevice.json │ ├── sys_app.json │ ├── sys_config.json │ ├── sys_dept.json │ ├── sys_dict_data.json │ ├── sys_dict_type.json │ ├── sys_logininfor.json │ ├── sys_menu.json │ ├── sys_notice.json │ ├── sys_oper_log.json │ ├── sys_oss.json │ ├── sys_oss_config.json │ ├── sys_post.json │ ├── sys_role.json │ ├── sys_role_dept.json │ ├── sys_role_menu.json │ ├── sys_tenant.json │ ├── sys_tenant_package.json │ ├── sys_user.json │ ├── sys_user_post.json │ ├── sys_user_role.json │ ├── taskInfo.json │ ├── thingModel.json │ ├── userInfo.json │ └── virtualDevice.json └── nginx.conf ├── doc ├── .keep ├── WechatIMG539.png ├── image-20230702173737805.png ├── image-20230702173852342.png ├── image-20230702174747305.png ├── image.png ├── ma.png ├── ma2.png ├── screenshot.jpg ├── screenshot.png └── 集群.png ├── docker-compose.yml ├── docker.env ├── git规范.md ├── iot-dao ├── iot-data-model │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── model │ │ ├── BaseModel.java │ │ ├── Id.java │ │ ├── InvokeResult.java │ │ ├── OauthClient.java │ │ ├── Owned.java │ │ ├── TenantModel.java │ │ ├── UserInfo.java │ │ ├── alert │ │ ├── AlertConfig.java │ │ └── AlertRecord.java │ │ ├── device │ │ ├── DeviceConfig.java │ │ ├── DeviceGroup.java │ │ ├── DeviceInfo.java │ │ ├── VirtualDevice.java │ │ ├── VirtualDeviceLog.java │ │ └── message │ │ │ ├── DeviceProperty.java │ │ │ └── DevicePropertyCache.java │ │ ├── modbus │ │ ├── ModbusInfo.java │ │ └── ModbusThingModel.java │ │ ├── notify │ │ ├── Channel.java │ │ ├── ChannelConfig.java │ │ ├── ChannelTemplate.java │ │ └── NotifyMessage.java │ │ ├── ota │ │ ├── DeviceOta.java │ │ ├── DeviceOtaDetail.java │ │ ├── DeviceOtaInfo.java │ │ ├── OtaDevice.java │ │ ├── OtaInfo.java │ │ └── OtaPackage.java │ │ ├── plugin │ │ ├── PluginInfo.java │ │ └── PluginInstance.java │ │ ├── product │ │ ├── AppDesign.java │ │ ├── Category.java │ │ ├── Icon.java │ │ ├── IconType.java │ │ ├── Product.java │ │ ├── ProductModel.java │ │ └── ThingModel.java │ │ ├── rule │ │ ├── FilterConfig.java │ │ ├── RuleAction.java │ │ ├── RuleInfo.java │ │ ├── RuleLog.java │ │ ├── TaskInfo.java │ │ └── TaskLog.java │ │ ├── screen │ │ ├── Screen.java │ │ └── ScreenApi.java │ │ ├── space │ │ ├── Home.java │ │ ├── Space.java │ │ └── SpaceDevice.java │ │ ├── stats │ │ ├── DataItem.java │ │ └── TimeData.java │ │ └── system │ │ ├── SysApp.java │ │ ├── SysConfig.java │ │ ├── SysDept.java │ │ ├── SysDictData.java │ │ ├── SysDictType.java │ │ ├── SysLoginInfo.java │ │ ├── SysMenu.java │ │ ├── SysNotice.java │ │ ├── SysOperLog.java │ │ ├── SysOss.java │ │ ├── SysOssConfig.java │ │ ├── SysPost.java │ │ ├── SysRole.java │ │ ├── SysRoleDept.java │ │ ├── SysRoleMenu.java │ │ ├── SysTenant.java │ │ ├── SysTenantPackage.java │ │ ├── SysUser.java │ │ ├── SysUserPost.java │ │ └── SysUserRole.java ├── iot-data-service │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── data │ │ ├── ICommonData.java │ │ ├── IOwnedData.java │ │ ├── manager │ │ ├── IAlertConfigData.java │ │ ├── IAlertRecordData.java │ │ ├── ICategoryData.java │ │ ├── IChannelConfigData.java │ │ ├── IChannelData.java │ │ ├── IChannelTemplateData.java │ │ ├── IDeviceConfigData.java │ │ ├── IDeviceGroupData.java │ │ ├── IDeviceInfoData.java │ │ ├── IDeviceOtaDetailData.java │ │ ├── IDeviceOtaInfoData.java │ │ ├── IHomeData.java │ │ ├── IIconData.java │ │ ├── IIconTypeData.java │ │ ├── INotifyMessageData.java │ │ ├── IOauthClientData.java │ │ ├── IOtaDeviceData.java │ │ ├── IOtaPackageData.java │ │ ├── IPluginInfoData.java │ │ ├── IPluginInstanceData.java │ │ ├── IProductData.java │ │ ├── IProductModelData.java │ │ ├── IRuleInfoData.java │ │ ├── IScreenApiData.java │ │ ├── IScreenData.java │ │ ├── ISpaceData.java │ │ ├── ISpaceDeviceData.java │ │ ├── ITaskInfoData.java │ │ ├── IThingModelData.java │ │ ├── IUserInfoData.java │ │ └── IVirtualDeviceData.java │ │ └── system │ │ ├── ISysAppData.java │ │ ├── ISysConfigData.java │ │ ├── ISysDeptData.java │ │ ├── ISysDictData.java │ │ ├── ISysDictTypeData.java │ │ ├── ISysLogininforData.java │ │ ├── ISysMenuData.java │ │ ├── ISysNoticeData.java │ │ ├── ISysOperLogData.java │ │ ├── ISysOssConfigData.java │ │ ├── ISysOssData.java │ │ ├── ISysPostData.java │ │ ├── ISysRoleData.java │ │ ├── ISysRoleDeptData.java │ │ ├── ISysRoleMenuData.java │ │ ├── ISysTenantData.java │ │ ├── ISysTenantPackageData.java │ │ ├── ISysUserData.java │ │ ├── ISysUserPostData.java │ │ └── ISysUserRoleData.java ├── iot-data-serviceImpl-cache │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── data │ │ ├── cache │ │ ├── CategoryCacheEvict.java │ │ ├── DeviceInfoCacheEvict.java │ │ ├── DeviceInfoCachePut.java │ │ ├── OauthClientCacheEvict.java │ │ ├── ProductCacheEvict.java │ │ ├── ProductModelCacheEvict.java │ │ ├── SpaceCacheEvict.java │ │ ├── ThingModelCacheEvict.java │ │ └── UserInfoCacheEvict.java │ │ ├── config │ │ └── CacheConfig.java │ │ └── service │ │ ├── CategoryDataCache.java │ │ ├── DeviceInfoDataCache.java │ │ ├── DeviceInfoPropertyDataCache.java │ │ ├── OauthClientDataCache.java │ │ ├── ProductDataCache.java │ │ ├── ProductModelDataCache.java │ │ ├── SpaceDataCache.java │ │ ├── ThingModelDataCache.java │ │ └── UserInfoDataCache.java ├── iot-data-serviceImpl-rdb │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── data │ │ ├── config │ │ ├── AutoMapperConfig3.java │ │ ├── JdbcTemplateConfig.java │ │ ├── JpaConfig.java │ │ ├── UserIDAuditorConfig.java │ │ └── id │ │ │ └── SnowflakeIdGenerator.java │ │ ├── dao │ │ ├── AlertConfigRepository.java │ │ ├── AlertRecordRepository.java │ │ ├── CategoryRepository.java │ │ ├── ChannelConfigRepository.java │ │ ├── ChannelRepository.java │ │ ├── ChannelTemplateRepository.java │ │ ├── DeviceConfigRepository.java │ │ ├── DeviceGroupMappingRepository.java │ │ ├── DeviceGroupRepository.java │ │ ├── DeviceInfoRepository.java │ │ ├── DeviceOtaDetailRepository.java │ │ ├── DeviceOtaInfoRepository.java │ │ ├── DeviceSubUserRepository.java │ │ ├── DeviceTagRepository.java │ │ ├── HomeRepository.java │ │ ├── IJPACommData.java │ │ ├── IOtaDeviceRepository.java │ │ ├── IOtaPackageRepository.java │ │ ├── IconRepository.java │ │ ├── IconTypeRepository.java │ │ ├── NotifyMessageRepository.java │ │ ├── OauthClientRepository.java │ │ ├── PluginInfoRepository.java │ │ ├── PluginInstanceRepository.java │ │ ├── ProductModelRepository.java │ │ ├── ProductRepository.java │ │ ├── RuleInfoRepository.java │ │ ├── ScreenApiRepository.java │ │ ├── ScreenRepository.java │ │ ├── SpaceDeviceRepository.java │ │ ├── SpaceRepository.java │ │ ├── SysAppRepository.java │ │ ├── SysConfigRepository.java │ │ ├── SysDeptRepository.java │ │ ├── SysDictDataRepository.java │ │ ├── SysDictTypeRepository.java │ │ ├── SysLogininforRepository.java │ │ ├── SysMenuRepository.java │ │ ├── SysNoticRepository.java │ │ ├── SysOperLogRepository.java │ │ ├── SysOssConfigRepository.java │ │ ├── SysOssRepository.java │ │ ├── SysPostRepository.java │ │ ├── SysRoleDeptRepository.java │ │ ├── SysRoleMenuRepository.java │ │ ├── SysRoleRepository.java │ │ ├── SysTenantPackageRepository.java │ │ ├── SysTenantRepository.java │ │ ├── SysUserPostRepository.java │ │ ├── SysUserRepository.java │ │ ├── SysUserRoleRepository.java │ │ ├── TaskInfoRepository.java │ │ ├── ThingModelRepository.java │ │ ├── UserInfoRepository.java │ │ ├── VirtualDeviceMappingRepository.java │ │ └── VirtualDeviceRepository.java │ │ ├── model │ │ ├── BaseEntity.java │ │ ├── DeviceIdGroup.java │ │ ├── TbAlertConfig.java │ │ ├── TbAlertRecord.java │ │ ├── TbCategory.java │ │ ├── TbChannel.java │ │ ├── TbChannelConfig.java │ │ ├── TbChannelTemplate.java │ │ ├── TbDeviceConfig.java │ │ ├── TbDeviceGroup.java │ │ ├── TbDeviceGroupMapping.java │ │ ├── TbDeviceInfo.java │ │ ├── TbDeviceOtaDetail.java │ │ ├── TbDeviceOtaInfo.java │ │ ├── TbDeviceSubUser.java │ │ ├── TbDeviceTag.java │ │ ├── TbHome.java │ │ ├── TbIcon.java │ │ ├── TbIconType.java │ │ ├── TbNotifyMessage.java │ │ ├── TbOauthClient.java │ │ ├── TbOtaDevice.java │ │ ├── TbOtaPackage.java │ │ ├── TbPluginInfo.java │ │ ├── TbPluginInstance.java │ │ ├── TbProduct.java │ │ ├── TbProductModel.java │ │ ├── TbRuleInfo.java │ │ ├── TbScreen.java │ │ ├── TbScreenApi.java │ │ ├── TbSpace.java │ │ ├── TbSpaceDevice.java │ │ ├── TbSysApp.java │ │ ├── TbSysConfig.java │ │ ├── TbSysDept.java │ │ ├── TbSysDictData.java │ │ ├── TbSysDictType.java │ │ ├── TbSysLogininfor.java │ │ ├── TbSysMenu.java │ │ ├── TbSysNotice.java │ │ ├── TbSysOperLog.java │ │ ├── TbSysOss.java │ │ ├── TbSysOssConfig.java │ │ ├── TbSysPost.java │ │ ├── TbSysRole.java │ │ ├── TbSysRoleDept.java │ │ ├── TbSysRoleMenu.java │ │ ├── TbSysTenant.java │ │ ├── TbSysTenantPackage.java │ │ ├── TbSysUser.java │ │ ├── TbSysUserPost.java │ │ ├── TbSysUserRole.java │ │ ├── TbTaskInfo.java │ │ ├── TbThingModel.java │ │ ├── TbUserInfo.java │ │ ├── TbVirtualDevice.java │ │ └── TbVirtualDeviceMapping.java │ │ ├── service │ │ ├── AlertConfigDataImpl.java │ │ ├── AlertRecordDataImpl.java │ │ ├── CategoryDataImpl.java │ │ ├── ChannelConfigDataImpl.java │ │ ├── ChannelDataImpl.java │ │ ├── ChannelTemplateDataImpl.java │ │ ├── DeviceConfigDataImpl.java │ │ ├── DeviceGroupDataImpl.java │ │ ├── DeviceInfoDataImpl.java │ │ ├── DeviceOtaDetailDataImpl.java │ │ ├── DeviceOtaInfoDataImpl.java │ │ ├── HomeDataImpl.java │ │ ├── IOtaDeviceDataImpl.java │ │ ├── IOtaPackageDataImpl.java │ │ ├── IconDataImpl.java │ │ ├── IconTypeDataImpl.java │ │ ├── NotifyMessageDataImpl.java │ │ ├── OauthClientDataImpl.java │ │ ├── PluginInfoDataImpl.java │ │ ├── PluginInstanceDataImpl.java │ │ ├── ProductDataImpl.java │ │ ├── ProductModelDataImpl.java │ │ ├── RuleInfoDataImpl.java │ │ ├── ScreenApiDataImpl.java │ │ ├── ScreenDataImpl.java │ │ ├── SpaceDataImpl.java │ │ ├── SpaceDeviceDataImpl.java │ │ ├── SysAppDataImpl.java │ │ ├── SysConfigDataImpl.java │ │ ├── SysDeptDataImpl.java │ │ ├── SysDictDataImpl.java │ │ ├── SysDictTypeDataImpl.java │ │ ├── SysLogininfoDataImpl.java │ │ ├── SysMenuDataImpl.java │ │ ├── SysNoticeDataImpl.java │ │ ├── SysOperLogDataImpl.java │ │ ├── SysOssConfigDataImpl.java │ │ ├── SysOssDataImpl.java │ │ ├── SysPostDataImpl.java │ │ ├── SysRoleDataImpl.java │ │ ├── SysRoleDeptDataImpl.java │ │ ├── SysRoleMenuDataImpl.java │ │ ├── SysTenantDataImpl.java │ │ ├── SysTenantPackageDataImpl.java │ │ ├── SysUserDataImpl.java │ │ ├── SysUserPostDataImpl.java │ │ ├── SysUserRoleDataImpl.java │ │ ├── TaskInfoDataImpl.java │ │ ├── ThingModelDataImpl.java │ │ ├── UserInfoDataImpl.java │ │ └── VirtualDeviceDataImpl.java │ │ └── util │ │ ├── PageBuilder.java │ │ └── PredicateBuilder.java ├── iot-temporal-service │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── temporal │ │ ├── IDbStructureData.java │ │ ├── IDevicePropertyData.java │ │ ├── IRuleLogData.java │ │ ├── ITaskLogData.java │ │ ├── IThingModelMessageData.java │ │ └── IVirtualDeviceLogData.java ├── iot-temporal-serviceImpl-es │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── temporal │ │ └── es │ │ ├── config │ │ └── ElasticsearchConfiguration.java │ │ ├── dao │ │ ├── RuleLogRepository.java │ │ ├── TaskLogRepository.java │ │ ├── ThingModelMessageRepository.java │ │ └── VirtualDeviceLogRepository.java │ │ ├── document │ │ ├── DocDeviceProperty.java │ │ ├── DocRuleLog.java │ │ ├── DocTaskLog.java │ │ ├── DocThingModelMessage.java │ │ └── DocVirtualDeviceLog.java │ │ └── service │ │ ├── DbStructureDataImpl.java │ │ ├── DevicePropertyDataImpl.java │ │ ├── RuleLogDataImpl.java │ │ ├── TaskLogDataImpl.java │ │ ├── ThingModelMessageDataImpl.java │ │ └── VirtualDeviceLogDataImpl.java ├── iot-temporal-serviceImpl-iotdb │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── temporal │ │ └── iotdb │ │ ├── config │ │ └── IotDbConf.java │ │ ├── dao │ │ └── IotDbTemplate.java │ │ ├── model │ │ └── Record.java │ │ └── service │ │ ├── DbStructureDataImpl.java │ │ ├── DevicePropertyDataImpl.java │ │ ├── RuleLogDataImpl.java │ │ ├── TaskLogDataImpl.java │ │ ├── ThingModelMessageDataImpl.java │ │ └── VirtualDeviceLogDataImpl.java ├── iot-temporal-serviceImpl-td │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── temporal │ │ └── td │ │ ├── config │ │ ├── Constants.java │ │ └── TdDatasourceConfig.java │ │ ├── dao │ │ └── TdTemplate.java │ │ ├── dm │ │ ├── FieldParser.java │ │ ├── TableManager.java │ │ ├── TdField.java │ │ ├── TdResponse.java │ │ └── TdRestApi.java │ │ ├── model │ │ ├── TbDeviceProperty.java │ │ ├── TbRuleLog.java │ │ ├── TbTaskLog.java │ │ ├── TbThingModelMessage.java │ │ └── TbVirtualDeviceLog.java │ │ └── service │ │ ├── DbStructureDataImpl.java │ │ ├── DevicePropertyDataImpl.java │ │ ├── RuleLogDataImpl.java │ │ ├── TaskLogDataImpl.java │ │ ├── ThingModelMessageDataImpl.java │ │ └── VirtualDeviceLogDataImpl.java ├── iot-temporal-serviceImpl-ts │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── temporal │ │ └── ts │ │ ├── config │ │ ├── Constants.java │ │ └── TsDatasourceConfig.java │ │ ├── dao │ │ └── TsTemplate.java │ │ ├── dm │ │ ├── DbField.java │ │ ├── FieldParser.java │ │ ├── TableManager.java │ │ └── TsField.java │ │ ├── model │ │ ├── TsDeviceProperty.java │ │ ├── TsRuleLog.java │ │ ├── TsTaskLog.java │ │ ├── TsThingModelMessage.java │ │ ├── TsTimeData.java │ │ └── TsVirtualDeviceLog.java │ │ └── service │ │ ├── DbStructureDataImpl.java │ │ ├── DevicePropertyDataImpl.java │ │ ├── RuleLogDataImpl.java │ │ ├── TaskLogDataImpl.java │ │ ├── ThingModelMessageDataImpl.java │ │ └── VirtualDeviceLogDataImpl.java └── pom.xml ├── iot-module ├── iot-generator │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── cc │ │ │ └── iotkit │ │ │ └── generator │ │ │ ├── config │ │ │ ├── GenConfig.java │ │ │ └── MybatisPlusConfig.java │ │ │ ├── constant │ │ │ └── GenConstants.java │ │ │ ├── controller │ │ │ └── GenController.java │ │ │ ├── core │ │ │ ├── BaseEntity.java │ │ │ ├── BaseMapperPlus.java │ │ │ ├── DataBaseHelper.java │ │ │ ├── DataBaseType.java │ │ │ ├── DbIdGenerator.java │ │ │ ├── PageBuilder.java │ │ │ ├── PageQuery.java │ │ │ └── SqlUtil.java │ │ │ ├── domain │ │ │ ├── GenTable.java │ │ │ └── GenTableColumn.java │ │ │ ├── dto │ │ │ └── bo │ │ │ │ └── ImportTableBo.java │ │ │ ├── factory │ │ │ └── YmlPropertySourceFactory.java │ │ │ ├── mapper │ │ │ ├── GenTableColumnMapper.java │ │ │ └── GenTableMapper.java │ │ │ ├── service │ │ │ ├── GenTableServiceImpl.java │ │ │ └── IGenTableService.java │ │ │ └── util │ │ │ ├── GenUtils.java │ │ │ ├── VelocityInitializer.java │ │ │ └── VelocityUtils.java │ │ └── resources │ │ ├── META-INF │ │ └── spring │ │ │ └── org.springframework.boot.autoconfigure.AutoConfiguration.imports │ │ ├── application-generator.yml │ │ ├── common-mybatis.yml │ │ ├── generator.yml │ │ ├── mapper │ │ ├── generator │ │ │ ├── GenTableColumnMapper.xml │ │ │ └── GenTableMapper.xml │ │ └── package-info.md │ │ └── vm │ │ ├── java │ │ ├── bo.java.vm │ │ ├── controller.java.vm │ │ ├── idata.java.vm │ │ ├── idataimpl.java.vm │ │ ├── mapper.java.vm │ │ ├── model.java.vm │ │ ├── repository.java.vm │ │ ├── service.java.vm │ │ ├── serviceImpl.java.vm │ │ ├── tbmodel.java.vm │ │ └── vo.java.vm │ │ ├── js │ │ └── api.js.vm │ │ ├── sql │ │ ├── oracle │ │ │ └── sql.vm │ │ ├── postgres │ │ │ └── sql.vm │ │ ├── sql.vm │ │ └── sqlserver │ │ │ └── sql.vm │ │ ├── ts │ │ ├── api.ts.vm │ │ └── types.ts.vm │ │ ├── vue │ │ ├── index-tree.vue.vm │ │ └── index.vue.vm │ │ └── xml │ │ └── mapper.xml.vm ├── iot-manager │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── manager │ │ ├── config │ │ ├── AliyunConfig.java │ │ └── AutoMapperConfig2.java │ │ ├── controller │ │ ├── AlertController.java │ │ ├── DeviceController.java │ │ ├── NotifyController.java │ │ ├── OtaController.java │ │ ├── PluginController.java │ │ ├── ProductController.java │ │ ├── RuleEngineController.java │ │ ├── ScreenController.java │ │ ├── SpaceController.java │ │ ├── SpaceDeviceController.java │ │ ├── StatsController.java │ │ ├── UserInfoController.java │ │ └── VirtualDeviceController.java │ │ ├── dto │ │ ├── bo │ │ │ ├── ChangeStateBo.java │ │ │ ├── category │ │ │ │ └── CategoryBo.java │ │ │ ├── channel │ │ │ │ ├── ChannelConfigBo.java │ │ │ │ └── ChannelTemplateBo.java │ │ │ ├── device │ │ │ │ ├── DeviceConsumerBo.java │ │ │ │ ├── DeviceInfoBo.java │ │ │ │ ├── DeviceLogQueryBo.java │ │ │ │ ├── DevicePropertyLogQueryBo.java │ │ │ │ ├── DeviceQueryBo.java │ │ │ │ ├── DeviceQueryByPkDnBo.java │ │ │ │ ├── DeviceSaveScriptBo.java │ │ │ │ ├── DeviceTagAddBo.java │ │ │ │ ├── GetDeviceServicePorpertyBo.java │ │ │ │ ├── ServiceInvokeBo.java │ │ │ │ └── SetDeviceServicePorpertyBo.java │ │ │ ├── deviceconfig │ │ │ │ ├── DeviceConfigAddBo.java │ │ │ │ └── DeviceConfigBo.java │ │ │ ├── devicegroup │ │ │ │ ├── DeviceAddGroupBo.java │ │ │ │ └── DeviceGroupBo.java │ │ │ ├── ota │ │ │ │ ├── DeviceOtaDetailBo.java │ │ │ │ ├── DeviceOtaInfoBo.java │ │ │ │ ├── DeviceUpgradeBo.java │ │ │ │ └── OtaPackageBo.java │ │ │ ├── plugin │ │ │ │ └── PluginInfoBo.java │ │ │ ├── product │ │ │ │ ├── IconBo.java │ │ │ │ ├── IconTypeBo.java │ │ │ │ ├── ProductBo.java │ │ │ │ └── ProductListReqBo.java │ │ │ ├── productmodel │ │ │ │ └── ProductModelBo.java │ │ │ ├── ruleinfo │ │ │ │ ├── RuleInfoBo.java │ │ │ │ └── RuleLogBo.java │ │ │ ├── screen │ │ │ │ ├── DebugChangeBo.java │ │ │ │ └── PublishChangeBo.java │ │ │ ├── space │ │ │ │ └── HomeBo.java │ │ │ ├── taskinfo │ │ │ │ ├── TaskInfoBo.java │ │ │ │ └── TaskLogBo.java │ │ │ ├── thingmodel │ │ │ │ ├── ThingModelBo.java │ │ │ │ └── ThingModelMessageBo.java │ │ │ └── virtualdevice │ │ │ │ └── VirtualSaveDevicesBo.java │ │ └── vo │ │ │ ├── category │ │ │ └── CategoryVo.java │ │ │ ├── channel │ │ │ ├── ChannelConfigVo.java │ │ │ └── ChannelTemplateVo.java │ │ │ ├── deviceconfig │ │ │ └── DeviceConfigVo.java │ │ │ ├── devicegroup │ │ │ ├── DeviceGroupImportVo.java │ │ │ └── DeviceGroupVo.java │ │ │ ├── deviceinfo │ │ │ ├── DeviceInfoImportVo.java │ │ │ ├── DeviceInfoVo.java │ │ │ └── ParentDeviceVo.java │ │ │ ├── ota │ │ │ ├── DeviceOtaDetailVo.java │ │ │ ├── DeviceOtaInfoVo.java │ │ │ ├── DeviceUpgradeVo.java │ │ │ └── OtaPackageUploadVo.java │ │ │ ├── plugin │ │ │ └── PluginInfoVo.java │ │ │ ├── product │ │ │ ├── IconTypeVo.java │ │ │ ├── IconVo.java │ │ │ └── ProductVo.java │ │ │ ├── productmodel │ │ │ └── ProductModelVo.java │ │ │ ├── ruleinfo │ │ │ ├── RuleInfoVo.java │ │ │ └── RuleLogVo.java │ │ │ ├── taskinfo │ │ │ ├── TaskInfoVo.java │ │ │ └── TaskLogVo.java │ │ │ └── thingmodel │ │ │ └── ThingModelVo.java │ │ ├── listener │ │ ├── DeviceGroupImportListener.java │ │ └── DeviceInfoImportListener.java │ │ ├── model │ │ ├── query │ │ │ └── DeviceQuery.java │ │ ├── stats │ │ │ └── MainStats.java │ │ └── vo │ │ │ ├── AppDesignVo.java │ │ │ ├── AppPageNode.java │ │ │ ├── DeviceLog.java │ │ │ ├── FindDeviceVo.java │ │ │ ├── LoginResult.java │ │ │ ├── MessageVo.java │ │ │ ├── SpaceDeviceVo.java │ │ │ └── SpaceInfo.java │ │ └── service │ │ ├── AlertMessageEventListener.java │ │ ├── AlertService.java │ │ ├── DataOwnerService.java │ │ ├── DeferredDataConsumer.java │ │ ├── DeviceCtrlService.java │ │ ├── DeviceStateCheckTask.java │ │ ├── ExampleDataInit.java │ │ ├── IDeviceManagerService.java │ │ ├── IHomeService.java │ │ ├── IPluginService.java │ │ ├── IProductService.java │ │ ├── IRuleEngineService.java │ │ ├── IScreenService.java │ │ ├── ISpaceDeviceService.java │ │ ├── ISpaceService.java │ │ ├── NotifyService.java │ │ ├── OtaService.java │ │ ├── SpaceDeviceService.java │ │ ├── ThingModelService.java │ │ └── impl │ │ ├── DeviceManagerServiceImpl.java │ │ ├── HomeServiceImpl.java │ │ ├── PluginServiceImpl.java │ │ ├── ProductServiceImpl.java │ │ ├── RuleEngineServiceImpl.java │ │ ├── ScreenServiceImpl.java │ │ ├── SpaceDeviceServiceImpl.java │ │ └── SpaceServiceImpl.java ├── iot-message-notify │ ├── pom.xml │ ├── readme.md │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── cc │ │ │ └── iotkit │ │ │ └── message │ │ │ ├── config │ │ │ └── VertxManager.java │ │ │ ├── enums │ │ │ └── ChannelEnum.java │ │ │ ├── event │ │ │ └── MessageEvent.java │ │ │ ├── listener │ │ │ ├── DingTalkEventListener.java │ │ │ ├── EmailEventListener.java │ │ │ ├── MessageEventListener.java │ │ │ └── QyWechatEventListener.java │ │ │ ├── model │ │ │ ├── DingTalkConfig.java │ │ │ ├── DingTalkMessage.java │ │ │ ├── EmailConfig.java │ │ │ ├── EmailMessage.java │ │ │ ├── Message.java │ │ │ ├── QyWechatConfig.java │ │ │ └── QyWechatMessage.java │ │ │ └── service │ │ │ └── MessageService.java │ └── 消息中心文档.md ├── iot-modbus │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── modbus │ │ ├── controller │ │ └── ModbusController.java │ │ ├── dao │ │ ├── ModbusInfoRepository.java │ │ └── ModbusThingModelRepository.java │ │ ├── data │ │ ├── IModbusInfoData.java │ │ ├── IModbusThingModelData.java │ │ └── Impl │ │ │ ├── ModbusInfoDataImpl.java │ │ │ └── ModbusThingModelDataImpl.java │ │ ├── dto │ │ ├── bo │ │ │ └── modbus │ │ │ │ ├── ModbusInfoBo.java │ │ │ │ └── ModbusThingModelBo.java │ │ └── vo │ │ │ └── modbus │ │ │ ├── ModbusInfoVo.java │ │ │ ├── ModbusThingModelImportVo.java │ │ │ └── ModbusThingModelVo.java │ │ ├── model │ │ ├── TbModbusInfo.java │ │ └── TbModbusThingModel.java │ │ └── service │ │ ├── IModbusInfoService.java │ │ └── impl │ │ └── ModbusInfoServiceImpl.java ├── iot-openapi │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── openapi │ │ ├── controller │ │ ├── OpenAuthController.java │ │ └── OpenDeviceController.java │ │ ├── dto │ │ ├── bo │ │ │ ├── TokenVerifyBo.java │ │ │ └── device │ │ │ │ ├── OpenapiDeviceBo.java │ │ │ │ └── OpenapiSetDeviceServicePropertyBo.java │ │ └── vo │ │ │ ├── OpenDeviceInfoVo.java │ │ │ ├── OpenDevicePropertyVo.java │ │ │ └── OpenPropertyVo.java │ │ └── service │ │ ├── OpenBaseService.java │ │ ├── OpenDeviceService.java │ │ └── impl │ │ ├── OpenBaseServiceImpl.java │ │ └── OpenDeviceServiceImpl.java ├── iot-plugin │ ├── iot-plugin-main │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── cc │ │ │ │ └── iotkit │ │ │ │ └── plugin │ │ │ │ └── main │ │ │ │ ├── DeviceRouter.java │ │ │ │ ├── IPluginMain.java │ │ │ │ ├── PluginHost.java │ │ │ │ ├── PluginInitListener.java │ │ │ │ ├── PluginMainImpl.java │ │ │ │ ├── PluginRouter.java │ │ │ │ ├── ThingServiceImpl.java │ │ │ │ └── script │ │ │ │ ├── Chan.java │ │ │ │ ├── DataDecoder.java │ │ │ │ ├── DataEncoder.java │ │ │ │ ├── DataPackage.java │ │ │ │ ├── DataReader.java │ │ │ │ ├── PluginScriptEngine.java │ │ │ │ ├── PluginScriptServer.java │ │ │ │ ├── ScriptClientVerticle.java │ │ │ │ ├── ScriptServerConfig.java │ │ │ │ ├── ScriptVerticle.java │ │ │ │ └── VertxTcpClient.java │ │ │ └── resources │ │ │ └── application.yml │ └── pom.xml ├── iot-rule-engine │ ├── .DS_Store │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── cc │ │ │ └── iotkit │ │ │ ├── Application.java │ │ │ └── ruleengine │ │ │ ├── action │ │ │ ├── Action.java │ │ │ ├── ScriptService.java │ │ │ ├── alert │ │ │ │ ├── AlertAction.java │ │ │ │ └── AlertService.java │ │ │ ├── device │ │ │ │ ├── DeviceAction.java │ │ │ │ └── DeviceActionService.java │ │ │ ├── http │ │ │ │ ├── HttpAction.java │ │ │ │ └── HttpService.java │ │ │ ├── kafka │ │ │ │ ├── KafkaAction.java │ │ │ │ └── KafkaService.java │ │ │ ├── mqtt │ │ │ │ ├── MqttAction.java │ │ │ │ └── MqttService.java │ │ │ └── tcp │ │ │ │ ├── TcpAction.java │ │ │ │ └── TcpService.java │ │ │ ├── alert │ │ │ ├── Alerter.java │ │ │ ├── DingdRobotAlerter.java │ │ │ └── EmailAlerter.java │ │ │ ├── config │ │ │ ├── JobFactory.java │ │ │ ├── QuartzConfiguration.java │ │ │ └── RuleConfiguration.java │ │ │ ├── expression │ │ │ └── Expression.java │ │ │ ├── filter │ │ │ ├── DeviceCondition.java │ │ │ ├── DeviceFilter.java │ │ │ └── Filter.java │ │ │ ├── handler │ │ │ ├── DeviceMessageHandler.java │ │ │ ├── RuleDeviceConsumer.java │ │ │ └── sys │ │ │ │ ├── DeviceConfigHandler.java │ │ │ │ ├── DeviceMessageLogHandler.java │ │ │ │ ├── DevicePropertyHandler.java │ │ │ │ └── DeviceStateCheckHandler.java │ │ │ ├── link │ │ │ ├── BaseSinkLink.java │ │ │ ├── LinkFactory.java │ │ │ ├── LinkService.java │ │ │ └── impl │ │ │ │ ├── KafkaLink.java │ │ │ │ ├── MqttClientLink.java │ │ │ │ └── TcpClientLink.java │ │ │ ├── listener │ │ │ ├── DeviceCondition.java │ │ │ ├── DeviceListener.java │ │ │ └── Listener.java │ │ │ ├── rule │ │ │ ├── Rule.java │ │ │ ├── RuleExecutor.java │ │ │ ├── RuleManager.java │ │ │ └── RuleMessageHandler.java │ │ │ └── task │ │ │ ├── ActionExecutor.java │ │ │ ├── ActionExecutorManager.java │ │ │ ├── CommonJob.java │ │ │ ├── DeviceActionExecutor.java │ │ │ └── TaskManager.java │ │ └── resources │ │ ├── script.js │ │ └── spring.factories ├── iot-screen │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── screen │ │ ├── ScreenManager.java │ │ ├── api │ │ ├── HttpContent.java │ │ └── ScreenApiHandle.java │ │ ├── config │ │ └── ScreenConfig.java │ │ └── staticres │ │ ├── ScreenComponent.java │ │ └── ScreenVerticle.java ├── iot-system │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cc │ │ └── iotkit │ │ └── system │ │ ├── config │ │ └── AutoMapperConfig.java │ │ ├── controller │ │ ├── SysAppController.java │ │ ├── SysConfigController.java │ │ ├── SysDeptController.java │ │ ├── SysDictDataController.java │ │ ├── SysDictTypeController.java │ │ ├── SysLogininforController.java │ │ ├── SysMenuController.java │ │ ├── SysNoticeController.java │ │ ├── SysOperlogController.java │ │ ├── SysOssConfigController.java │ │ ├── SysOssController.java │ │ ├── SysPostController.java │ │ ├── SysProfileController.java │ │ ├── SysRoleController.java │ │ ├── SysTenantController.java │ │ ├── SysTenantPackageController.java │ │ ├── SysUserController.java │ │ └── SysUserOnlineController.java │ │ ├── dto │ │ ├── LoginBody.java │ │ ├── RegisterBody.java │ │ ├── SysCache.java │ │ ├── SysRoleMenu.java │ │ ├── SysUserOnline.java │ │ ├── SysUserPost.java │ │ ├── bo │ │ │ ├── SysAppBo.java │ │ │ ├── SysChangePwdBo.java │ │ │ ├── SysConfigBo.java │ │ │ ├── SysDeptBo.java │ │ │ ├── SysDictDataBo.java │ │ │ ├── SysDictTypeBo.java │ │ │ ├── SysLoginInfoBo.java │ │ │ ├── SysMenuBo.java │ │ │ ├── SysNoticeBo.java │ │ │ ├── SysOperLogBo.java │ │ │ ├── SysOssBo.java │ │ │ ├── SysOssConfigBo.java │ │ │ ├── SysPostBo.java │ │ │ ├── SysRoleAuthBo.java │ │ │ ├── SysRoleBo.java │ │ │ ├── SysTenantBo.java │ │ │ ├── SysTenantPackageBo.java │ │ │ ├── SysUserBo.java │ │ │ ├── SysUserProfileBo.java │ │ │ ├── SysUserRolesBo.java │ │ │ ├── UserOnlineBo.java │ │ │ ├── XcxLoginBo.java │ │ │ └── XcxLoginUserBo.java │ │ └── vo │ │ │ ├── AvatarVo.java │ │ │ ├── CacheListInfoVo.java │ │ │ ├── DeptTreeSelectVo.java │ │ │ ├── MenuTreeSelectVo.java │ │ │ ├── MetaVo.java │ │ │ ├── ProfileVo.java │ │ │ ├── RouterVo.java │ │ │ ├── SysAppVo.java │ │ │ ├── SysConfigVo.java │ │ │ ├── SysDeptVo.java │ │ │ ├── SysDictDataVo.java │ │ │ ├── SysDictTypeVo.java │ │ │ ├── SysLogininforVo.java │ │ │ ├── SysMenuVo.java │ │ │ ├── SysNoticeVo.java │ │ │ ├── SysOperLogVo.java │ │ │ ├── SysOssConfigVo.java │ │ │ ├── SysOssUploadVo.java │ │ │ ├── SysOssVo.java │ │ │ ├── SysPostVo.java │ │ │ ├── SysRoleVo.java │ │ │ ├── SysTenantPackageVo.java │ │ │ ├── SysTenantVo.java │ │ │ ├── SysUserExportVo.java │ │ │ ├── SysUserImportVo.java │ │ │ ├── SysUserInfoVo.java │ │ │ ├── SysUserVo.java │ │ │ └── UserInfoVo.java │ │ ├── listener │ │ └── SysUserImportListener.java │ │ └── service │ │ ├── ISysAppService.java │ │ ├── ISysConfigService.java │ │ ├── ISysDeptService.java │ │ ├── ISysDictDataService.java │ │ ├── ISysDictTypeService.java │ │ ├── ISysLogininforService.java │ │ ├── ISysMenuService.java │ │ ├── ISysNoticeService.java │ │ ├── ISysOperLogService.java │ │ ├── ISysOssConfigService.java │ │ ├── ISysOssService.java │ │ ├── ISysPermissionService.java │ │ ├── ISysPostService.java │ │ ├── ISysRoleService.java │ │ ├── ISysTenantPackageService.java │ │ ├── ISysTenantService.java │ │ ├── ISysUserService.java │ │ └── impl │ │ ├── SysAppServiceImpl.java │ │ ├── SysConfigServiceImpl.java │ │ ├── SysDataScopeServiceImpl.java │ │ ├── SysDeptServiceImpl.java │ │ ├── SysDictDataServiceImpl.java │ │ ├── SysDictTypeServiceImpl.java │ │ ├── SysLogininforServiceImpl.java │ │ ├── SysMenuServiceImpl.java │ │ ├── SysNoticeServiceImpl.java │ │ ├── SysOperLogServiceImpl.java │ │ ├── SysOssConfigServiceImpl.java │ │ ├── SysOssServiceImpl.java │ │ ├── SysPermissionServiceImpl.java │ │ ├── SysPostServiceImpl.java │ │ ├── SysRoleServiceImpl.java │ │ ├── SysTenantPackageServiceImpl.java │ │ ├── SysTenantServiceImpl.java │ │ └── SysUserServiceImpl.java └── pom.xml ├── iot-starter ├── pom.xml ├── readme.md └── src │ └── main │ ├── .DS_Store │ ├── bin │ ├── clear_data.sh │ ├── start.bat │ ├── start.sh │ └── stop.sh │ ├── java │ └── cc │ │ └── iotkit │ │ ├── Application.java │ │ ├── config │ │ ├── EmbeddedElasticSearchConfig.java │ │ ├── EmbeddedRedisConfig.java │ │ └── SchedulerConfig.java │ │ └── web │ │ ├── controller │ │ ├── AuthController.java │ │ └── CaptchaController.java │ │ ├── domain │ │ └── vo │ │ │ ├── CaptchaVo.java │ │ │ ├── LoginTenantVo.java │ │ │ ├── LoginVo.java │ │ │ └── TenantListVo.java │ │ └── service │ │ ├── SysLoginService.java │ │ └── SysRegisterService.java │ └── resources │ ├── application-dev.yml │ ├── application.yml │ ├── assemblies │ └── standalone-package.xml │ ├── ip2region.xdb │ ├── logback.xml │ └── sql │ ├── schema-postgre.sql │ └── schema.sql ├── iot-test-tool ├── iot-virtual-device │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── cc │ │ │ └── iotkit │ │ │ └── virtualdevice │ │ │ ├── VirtualExecutor.java │ │ │ ├── VirtualManager.java │ │ │ ├── config │ │ │ └── VirtualConfig.java │ │ │ └── trigger │ │ │ ├── RandomScheduleBuilder.java │ │ │ └── RandomTrigger.java │ │ └── resources │ │ └── spring.factories └── pom.xml ├── pom.xml ├── 待优化项.md └── 项目规范.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | log 6 | *.log 7 | 8 | # BlueJ files 9 | *.ctxt 10 | 11 | # Mobile Tools for Java (J2ME) 12 | .mtj.tmp/ 13 | 14 | # Package Files # 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | 22 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 23 | hs_err_pid* 24 | .idea 25 | target 26 | *.iml 27 | data/elasticsearch 28 | .init 29 | *.db 30 | .flattened-pom.xml 31 | 32 | .DS_Store 33 | dependency-reduced-pom.xml 34 | /data/plugins 35 | /data/dist 36 | /data/iot-oss -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # 操作步骤: 2 | # 1. 打包前端项目,复制dis到data目录 3 | # 2. 打包java项目 4 | # 3. docker build -t iot-iita . 5 | # 4. docker tag iot-iita iotkits/iot-iita 6 | # 5. docker push iotkits/iot-iita 7 | 8 | # 使用包含Java的基础镜像 9 | FROM adoptopenjdk:11-jre-hotspot 10 | # 设置工作目录 11 | WORKDIR /app 12 | 13 | # 复制后端Java应用的JAR文件 14 | COPY ./iot-starter/target/iot-starter-0.5.2-SNAPSHOT.jar app.jar 15 | COPY ./data/init/* data/init/ 16 | 17 | # 安装Nginx 18 | RUN apt-get update && apt-get install -y nginx 19 | 20 | # 复制Nginx配置文件 21 | COPY ./data/nginx.conf /etc/nginx/nginx.conf 22 | 23 | # 复制静态资源 24 | COPY ./data/dist/ /usr/share/nginx/html 25 | 26 | # 暴露端口 27 | EXPOSE 8082 8086 1883 1884 28 | # 插件预留端口 29 | EXPOSE 8130-8140 30 | 31 | # 设置容器启动命令 32 | CMD ["/bin/bash", "-c", "java -jar /app/app.jar & nginx -g 'daemon off;'"] 33 | 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | #### 介绍 3 | {**以下是 Gitee 平台说明,您可以替换此简介** 4 | Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 5 | 无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} 6 | 7 | #### 软件架构 8 | 软件架构说明 9 | 10 | 11 | #### 安装教程 12 | 13 | 1. xxxx 14 | 2. xxxx 15 | 3. xxxx 16 | 17 | #### 使用说明 18 | 19 | 1. xxxx 20 | 2. xxxx 21 | 3. xxxx 22 | 23 | #### 参与贡献 24 | 25 | 1. Fork 本仓库 26 | 2. 新建 Feat_xxx 分支 27 | 3. 提交代码 28 | 4. 新建 Pull Request 29 | 30 | 31 | #### 特技 32 | 33 | 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 34 | 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 35 | 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 36 | 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 37 | 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 38 | 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) 39 | -------------------------------------------------------------------------------- /data/init/category.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "id" : "switch", 3 | "name" : "开关", 4 | "createAt" : 1647599367057 5 | }, { 6 | "id" : "sensor", 7 | "name" : "传感器", 8 | "createAt" : 1649743382683 9 | }, { 10 | "id" : "meter", 11 | "name" : "表计", 12 | "createAt" : 1654237582120 13 | }, { 14 | "id" : "light", 15 | "name" : "灯", 16 | "createAt" : 1650174762755 17 | }, { 18 | "id" : "gateway", 19 | "name" : "网关", 20 | "createAt" : 1646637047902 21 | }, { 22 | "id" : "fan", 23 | "name" : "风扇", 24 | "createAt" : 1646630215889 25 | }, { 26 | "id" : "door", 27 | "name" : "门磁", 28 | "createAt" : 1650173898298 29 | }, { 30 | "id" : "SmartPlug", 31 | "name" : "智能插座", 32 | "createAt" : 1645409421118 33 | }, { 34 | "id" : "FreshAir", 35 | "name" : "新风", 36 | "createAt" : 1681444312184 37 | }, { 38 | "id" : "SmartMeter", 39 | "name" : "智能电表", 40 | "createAt" : 1681444312184 41 | }, { 42 | "id" : "OpenIitaGateway", 43 | "name" : "铱塔智联智能网关", 44 | "createAt" : 1688969826383 45 | }, { 46 | "id" : "OpenIitaPump", 47 | "name" : "铱塔智联水泵", 48 | "createAt" : 1688969826383 49 | } ] -------------------------------------------------------------------------------- /data/init/channel.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "id" : 1, 3 | "code" : "DingTalk", 4 | "title" : "钉钉", 5 | "icon" : "http://www.baidu.com", 6 | "createAt" : 1683816661690 7 | }, { 8 | "id" : 2, 9 | "code" : "QyWechat", 10 | "title" : "企业微信", 11 | "icon" : "http://www.baidu.com", 12 | "createAt" : 1683816661690 13 | }, { 14 | "id" : 3, 15 | "code" : "Email", 16 | "title" : "邮箱", 17 | "icon" : "http://www.baidu.com", 18 | "createAt" : 1683816661690 19 | } ] -------------------------------------------------------------------------------- /data/init/channelConfig.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "id" : 1312312, 3 | "channelId" : 3, 4 | "title" : "告警邮件配置", 5 | "param" : "{\"userName\":\"xxx@163.com\",\"passWord\":\"xxx\",\"host\":\"smtp.163.com\",\"port\":465,\"mailSmtpAuth\":true,\"from\":\"xxxx@163.com\",\"to\":\"xxxx@163.com\"}\t", 6 | "createAt" : 1683816661690 7 | }, { 8 | "id" : 1313123, 9 | "channelId" : 1, 10 | "title" : "告警钉钉配置", 11 | "param" : "{\"dingTalkWebhook\":\"xxxxxxxxxxxxxxxx\",\"dingTalkSecret\":\"xxxx\"}", 12 | "createAt" : 1683816661690 13 | }, { 14 | "id" : 32141342, 15 | "channelId" : 2, 16 | "title" : "告警企业微信配置", 17 | "param" : "{\"qyWechatWebhook\":\"xxxxxxxxxxxxxxxx\"}", 18 | "createAt" : 1683816661690 19 | } ] -------------------------------------------------------------------------------- /data/init/channelTemplate.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "id" : 12312312, 3 | "channelConfigId" : 1312312, 4 | "title" : "告警邮件模板", 5 | "content" : "您的设备【${title}】温度过高", 6 | "createAt" : 1683816661690 7 | }, { 8 | "id" : 342353425, 9 | "channelConfigId" : 1313123, 10 | "title" : "告警钉钉模板", 11 | "content" : "您的设备【${title}】温度过高", 12 | "createAt" : 1683816661690 13 | }, { 14 | "id" : 786778567, 15 | "channelConfigId" : 32141342, 16 | "title" : "告警企业微信模板", 17 | "content" : "您的设备【${title}】温度过高", 18 | "createAt" : 1683816661690 19 | } ] -------------------------------------------------------------------------------- /data/init/deviceGroup.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "id" : "g3", 3 | "name" : "组3", 4 | "uid" : "1", 5 | "remark" : "2223333", 6 | "deviceQty" : 7, 7 | "createAt" : 0 8 | }, { 9 | "id" : "g2", 10 | "name" : "组2", 11 | "uid" : "1", 12 | "remark" : "222", 13 | "deviceQty" : 12, 14 | "createAt" : 0 15 | }, { 16 | "id" : "g1", 17 | "name" : "分组1", 18 | "uid" : "1", 19 | "remark" : "1111", 20 | "deviceQty" : 10, 21 | "createAt" : 0 22 | } ] -------------------------------------------------------------------------------- /data/init/iconType.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "id" : 541592097542213, 3 | "createBy" : null, 4 | "createTime" : 1708254320774, 5 | "updateBy" : null, 6 | "updateTime" : 1708254320774, 7 | "tenantId" : 0, 8 | "typeDescribe" : null, 9 | "typeName" : "智能家居" 10 | }, { 11 | "id" : 541673667244101, 12 | "createBy" : null, 13 | "createTime" : 1708254320774, 14 | "updateBy" : null, 15 | "updateTime" : 1708254320774, 16 | "tenantId" : 0, 17 | "typeDescribe" : null, 18 | "typeName" : "工业物联网" 19 | }] -------------------------------------------------------------------------------- /data/init/oauthClient.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "clientId": "iotkit", 4 | "name": "奇特物联", 5 | "clientSecret": "b86cb53d-c005-48a3-bb02-3c262151b68c", 6 | "allowUrl": "*", 7 | "createAt": 1652840868485 8 | }, 9 | { 10 | "clientId": "dueros", 11 | "name": "小度音箱", 12 | "clientSecret": "750c67c2-29cb-40c3-bf4d-c0b9bf3eed88", 13 | "allowUrl": "*", 14 | "createAt": 1652840868485 15 | } 16 | ] -------------------------------------------------------------------------------- /data/init/productModel.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "id" : "M1", 3 | "model" : null, 4 | "name" : "型号1", 5 | "productKey" : "AWcJnf7ymGSkaz5M", 6 | "type" : "LuaScript", 7 | "script" : "\nfunction decode(msg)\n return {\n ['identifier'] = 'report',\n ['mid'] = '1',\n ['type'] = 'property',\n ['data'] ={\n ['power']=string.sub(msg.data,3,3)\n }\n }\nend\n\nfunction encode(service)\n return {\n\t['mid'] = 1,\n\t['model'] = 'M1',\n\t['mac'] = service.deviceName,\n\t['data'] = 'BB2'\n }\nend\n", 8 | "state" : "publish", 9 | "modifyAt" : 1708254320711 10 | } ] -------------------------------------------------------------------------------- /data/init/ruleInfo.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "id" : "2c10229b-dcb2-439e-b411-5425b49657a1", 3 | "name" : "小度设备属性更新推送", 4 | "type" : "flow", 5 | "listeners" : [ ], 6 | "filters" : [ ], 7 | "actions" : [ ], 8 | "uid" : "1", 9 | "state" : "running", 10 | "desc" : "开关插座开关状态推送", 11 | "createAt" : 1652515471242 12 | }, { 13 | "id" : "2820c218-660e-48ff-a234-c7b6793a5bb8", 14 | "name" : "测试场景1", 15 | "type" : "scene", 16 | "listeners" : [ ], 17 | "filters" : [ ], 18 | "actions" : [ ], 19 | "uid" : "1", 20 | "state" : "stopped", 21 | "desc" : "test", 22 | "createAt" : 1649167998895 23 | } ] -------------------------------------------------------------------------------- /data/init/sys_app.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "createDept" : null, 3 | "createBy" : null, 4 | "createTime" : 1708254323547, 5 | "updateBy" : null, 6 | "updateTime" : 1708254323547, 7 | "tenantId" : 0, 8 | "id" : 453554819821637, 9 | "appName" : "微信小程序", 10 | "appId" : "xxx", 11 | "appSecret" : "xxx", 12 | "appType" : "1", 13 | "remark" : "微信小程序" 14 | } ] -------------------------------------------------------------------------------- /data/init/sys_logininfor.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "id" : 516579924885573, 3 | "tenantId" : 0, 4 | "userName" : "admin", 5 | "status" : "0", 6 | "ipaddr" : "127.0.0.1", 7 | "loginLocation" : "内网IP", 8 | "browser" : "Chrome", 9 | "os" : "OSX", 10 | "msg" : "user.login.success", 11 | "loginTime" : 1708254547722 12 | }, { 13 | "id" : 1665628533390614529, 14 | "tenantId" : 0, 15 | "userName" : "admin", 16 | "status" : "0", 17 | "ipaddr" : "127.0.0.1", 18 | "loginLocation" : "内网IP", 19 | "browser" : "Chrome", 20 | "os" : "Windows 10 or Windows Server 2016", 21 | "msg" : "登录成功", 22 | "loginTime" : null 23 | } ] -------------------------------------------------------------------------------- /data/init/sys_notice.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "createDept" : 103, 3 | "createBy" : 1, 4 | "createTime" : 1708254322623, 5 | "updateBy" : null, 6 | "updateTime" : 1708254322623, 7 | "tenantId" : 0, 8 | "id" : 1, 9 | "noticeTitle" : "温馨提醒:2018-07-01 新版本发布啦", 10 | "noticeType" : "2", 11 | "noticeContent" : "5paw54mI5pys5YaF5a65", 12 | "status" : "0", 13 | "remark" : "管理员", 14 | "createByName" : null 15 | }, { 16 | "createDept" : 103, 17 | "createBy" : 1, 18 | "createTime" : 1708254322639, 19 | "updateBy" : null, 20 | "updateTime" : 1708254322639, 21 | "tenantId" : 0, 22 | "id" : 2, 23 | "noticeTitle" : "维护通知:2018-07-01 系统凌晨维护", 24 | "noticeType" : "1", 25 | "noticeContent" : "57u05oqk5YaF5a65", 26 | "status" : "0", 27 | "remark" : "管理员", 28 | "createByName" : null 29 | } ] -------------------------------------------------------------------------------- /data/init/sys_oss.json: -------------------------------------------------------------------------------- 1 | [ ] -------------------------------------------------------------------------------- /data/init/sys_post.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "createDept" : 103, 3 | "createBy" : 1, 4 | "createTime" : 1708254322729, 5 | "updateBy" : null, 6 | "updateTime" : 1708254322729, 7 | "tenantId" : 0, 8 | "id" : 1, 9 | "postCode" : "ceo", 10 | "postName" : "董事长", 11 | "postSort" : 1, 12 | "status" : "0", 13 | "remark" : "" 14 | }, { 15 | "createDept" : 103, 16 | "createBy" : 1, 17 | "createTime" : 1708254322742, 18 | "updateBy" : null, 19 | "updateTime" : 1708254322742, 20 | "tenantId" : 0, 21 | "id" : 2, 22 | "postCode" : "se", 23 | "postName" : "项目经理", 24 | "postSort" : 2, 25 | "status" : "0", 26 | "remark" : "" 27 | }, { 28 | "createDept" : 103, 29 | "createBy" : 1, 30 | "createTime" : 1708254322745, 31 | "updateBy" : null, 32 | "updateTime" : 1708254322745, 33 | "tenantId" : 0, 34 | "id" : 3, 35 | "postCode" : "hr", 36 | "postName" : "人力资源", 37 | "postSort" : 3, 38 | "status" : "0", 39 | "remark" : "" 40 | }, { 41 | "createDept" : 103, 42 | "createBy" : 1, 43 | "createTime" : 1708254322750, 44 | "updateBy" : null, 45 | "updateTime" : 1708254322750, 46 | "tenantId" : 0, 47 | "id" : 4, 48 | "postCode" : "user", 49 | "postName" : "普通员工", 50 | "postSort" : 4, 51 | "status" : "0", 52 | "remark" : "" 53 | } ] -------------------------------------------------------------------------------- /data/init/sys_role.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "createDept" : 103, 3 | "createBy" : 1, 4 | "createTime" : 1708254322779, 5 | "updateBy" : null, 6 | "updateTime" : 1708254322779, 7 | "tenantId" : 0, 8 | "id" : 1, 9 | "roleName" : "超级管理员", 10 | "roleKey" : "superadmin", 11 | "roleSort" : 1, 12 | "dataScope" : null, 13 | "menuCheckStrictly" : null, 14 | "deptCheckStrictly" : null, 15 | "status" : "0", 16 | "remark" : "超级管理员", 17 | "flag" : false, 18 | "superAdmin" : true 19 | }, { 20 | "createDept" : 103, 21 | "createBy" : 1, 22 | "createTime" : 1708254322799, 23 | "updateBy" : null, 24 | "updateTime" : 1708254322799, 25 | "tenantId" : 0, 26 | "id" : 2, 27 | "roleName" : "普通角色", 28 | "roleKey" : "common", 29 | "roleSort" : 2, 30 | "dataScope" : null, 31 | "menuCheckStrictly" : null, 32 | "deptCheckStrictly" : null, 33 | "status" : "0", 34 | "remark" : "普通角色", 35 | "flag" : false, 36 | "superAdmin" : false 37 | } ] -------------------------------------------------------------------------------- /data/init/sys_role_dept.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "createDept" : null, 3 | "createBy" : null, 4 | "createTime" : null, 5 | "updateBy" : null, 6 | "updateTime" : null, 7 | "id" : 516579003666501, 8 | "roleId" : 2, 9 | "deptId" : 100 10 | }, { 11 | "createDept" : null, 12 | "createBy" : null, 13 | "createTime" : null, 14 | "updateBy" : null, 15 | "updateTime" : null, 16 | "id" : 516579003695173, 17 | "roleId" : 2, 18 | "deptId" : 101 19 | }, { 20 | "createDept" : null, 21 | "createBy" : null, 22 | "createTime" : null, 23 | "updateBy" : null, 24 | "updateTime" : null, 25 | "id" : 516579003699269, 26 | "roleId" : 2, 27 | "deptId" : 105 28 | }, { 29 | "createDept" : null, 30 | "createBy" : null, 31 | "createTime" : null, 32 | "updateBy" : null, 33 | "updateTime" : null, 34 | "id" : 516579003707461, 35 | "roleId" : 452767970971717, 36 | "deptId" : 452767971254341 37 | } ] -------------------------------------------------------------------------------- /data/init/sys_tenant.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "createDept" : 103, 3 | "createBy" : 1, 4 | "createTime" : 1708254323415, 5 | "updateBy" : null, 6 | "updateTime" : 1708254323415, 7 | "id" : 1, 8 | "tenantId" : 0, 9 | "contactUserName" : "管理组", 10 | "contactPhone" : "15888888888", 11 | "companyName" : "XXX有限公司", 12 | "licenseNumber" : null, 13 | "address" : null, 14 | "domain" : null, 15 | "intro" : "多租户通用后台管理管理系统", 16 | "remark" : null, 17 | "packageId" : null, 18 | "expireTime" : null, 19 | "accountCount" : -1, 20 | "status" : "0" 21 | }, { 22 | "createDept" : null, 23 | "createBy" : null, 24 | "createTime" : 1708254323430, 25 | "updateBy" : null, 26 | "updateTime" : 1708254323430, 27 | "id" : 452748015235141, 28 | "tenantId" : "452748015218757", 29 | "contactUserName" : "测试人员", 30 | "contactPhone" : "18888888888", 31 | "companyName" : "测试租户有限公司", 32 | "licenseNumber" : "12312312312", 33 | "address" : "13123123", 34 | "domain" : null, 35 | "intro" : "测试租户有限公司管理系统", 36 | "remark" : "租户管理员账密:test/test123", 37 | "packageId" : 450389924483141, 38 | "expireTime" : null, 39 | "accountCount" : -1, 40 | "status" : "0" 41 | } ] -------------------------------------------------------------------------------- /data/init/sys_user.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "createDept" : 103, 3 | "createBy" : 1, 4 | "createTime" : 1708254323474, 5 | "updateBy" : 1, 6 | "updateTime" : 1708254547736, 7 | "tenantId" : 0, 8 | "id" : 1, 9 | "deptId" : 103, 10 | "userName" : "admin", 11 | "nickName" : "admin", 12 | "userType" : "sys_user", 13 | "email" : "xw2sy@163.com", 14 | "phonenumber" : "15888888888", 15 | "sex" : "1", 16 | "avatar" : null, 17 | "password" : "$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2", 18 | "status" : "0", 19 | "loginIp" : "127.0.0.1", 20 | "loginDate" : 1708254547731, 21 | "remark" : "管理员", 22 | "dept" : null, 23 | "roles" : null, 24 | "roleIds" : null, 25 | "postIds" : null, 26 | "roleId" : null 27 | } ] -------------------------------------------------------------------------------- /data/init/sys_user_post.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "createDept" : null, 3 | "createBy" : null, 4 | "createTime" : 1708254323498, 5 | "updateBy" : null, 6 | "updateTime" : 1708254323498, 7 | "id" : 516579006476357, 8 | "userId" : 1, 9 | "postId" : 1 10 | } ] -------------------------------------------------------------------------------- /data/init/sys_user_role.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "createDept" : null, 3 | "createBy" : null, 4 | "createTime" : 1708254323519, 5 | "updateBy" : null, 6 | "updateTime" : 1708254323519, 7 | "id" : 516579006554181, 8 | "userId" : 1, 9 | "roleId" : 1 10 | }] -------------------------------------------------------------------------------- /data/init/taskInfo.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "id" : "97f79dde-bf3c-4d5b-bfd8-8102539002ad", 3 | "name" : "测试111", 4 | "type" : "timer", 5 | "expression" : "*/25 * * * * ? *", 6 | "desc" : "sss入网", 7 | "actions" : null, 8 | "state" : "stopped", 9 | "uid" : "1", 10 | "createAt" : 1645928016031, 11 | "reason" : "stop by 1" 12 | }, { 13 | "id" : "667bbfa1-a7ed-4ce8-9ce0-cfa8cac90e6c", 14 | "name" : "2222", 15 | "type" : "delay", 16 | "expression" : "22", 17 | "desc" : "2222", 18 | "actions" : null, 19 | "state" : "stopped", 20 | "uid" : null, 21 | "createAt" : 1645871966035, 22 | "reason" : "stop by 6286886077b91b031115e6a6" 23 | } ] -------------------------------------------------------------------------------- /doc/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/doc/.keep -------------------------------------------------------------------------------- /doc/WechatIMG539.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/doc/WechatIMG539.png -------------------------------------------------------------------------------- /doc/image-20230702173737805.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/doc/image-20230702173737805.png -------------------------------------------------------------------------------- /doc/image-20230702173852342.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/doc/image-20230702173852342.png -------------------------------------------------------------------------------- /doc/image-20230702174747305.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/doc/image-20230702174747305.png -------------------------------------------------------------------------------- /doc/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/doc/image.png -------------------------------------------------------------------------------- /doc/ma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/doc/ma.png -------------------------------------------------------------------------------- /doc/ma2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/doc/ma2.png -------------------------------------------------------------------------------- /doc/screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/doc/screenshot.jpg -------------------------------------------------------------------------------- /doc/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/doc/screenshot.png -------------------------------------------------------------------------------- /doc/集群.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/doc/集群.png -------------------------------------------------------------------------------- /docker.env: -------------------------------------------------------------------------------- 1 | ## mysql 2 | MYSQL_DATABASE=iotkit 3 | MYSQL_ROOT_PASSWORD=123456 4 | 5 | ## server 6 | JAVA_OPTS=-Xms512m -Xmx512m -Djava.security.egd=file:/dev/./urandom -DdisabledEmbeddedRedis=true 7 | 8 | MASTER_DATASOURCE_URL=jdbc:mysql://iot-mysql:3306/${MYSQL_DATABASE}?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true 9 | MASTER_DATASOURCE_USERNAME=root 10 | MASTER_DATASOURCE_PASSWORD=${MYSQL_ROOT_PASSWORD} 11 | SLAVE_DATASOURCE_URL=${MASTER_DATASOURCE_URL} 12 | SLAVE_DATASOURCE_USERNAME=${MASTER_DATASOURCE_USERNAME} 13 | SLAVE_DATASOURCE_PASSWORD=${MASTER_DATASOURCE_PASSWORD} 14 | REDIS_HOST=iot-redis 15 | 16 | ## admin 17 | NODE_ENV=production 18 | PUBLIC_PATH=/ 19 | VUE_APP_TITLE=iot管理系统 20 | -------------------------------------------------------------------------------- /iot-dao/iot-data-model/src/main/java/cc/iotkit/model/Id.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.model; 24 | 25 | public interface Id { 26 | 27 | T getId(); 28 | 29 | void setId(T id); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-model/src/main/java/cc/iotkit/model/OauthClient.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.model; 25 | 26 | import lombok.Data; 27 | 28 | /** 29 | * oauth2的client 30 | */ 31 | @Data 32 | public class OauthClient implements Id { 33 | 34 | private String id; 35 | 36 | private String clientId; 37 | 38 | private String name; 39 | 40 | private String clientSecret; 41 | 42 | private String allowUrl; 43 | 44 | private Long createAt; 45 | 46 | } 47 | -------------------------------------------------------------------------------- /iot-dao/iot-data-model/src/main/java/cc/iotkit/model/Owned.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.model; 24 | 25 | public interface Owned extends Id { 26 | 27 | String getUid(); 28 | 29 | void setUid(String uid); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-model/src/main/java/cc/iotkit/model/TenantModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.model; 25 | 26 | import lombok.Data; 27 | import lombok.EqualsAndHashCode; 28 | 29 | /** 30 | * 租户基类 31 | * 32 | * @author Michelle.Chung 33 | */ 34 | @Data 35 | @EqualsAndHashCode(callSuper = true) 36 | public class TenantModel extends BaseModel { 37 | 38 | /** 39 | * 租户编号 40 | */ 41 | private Long tenantId; 42 | 43 | } 44 | -------------------------------------------------------------------------------- /iot-dao/iot-data-model/src/main/java/cc/iotkit/model/ota/DeviceOta.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.model.ota; 25 | 26 | import cc.iotkit.model.TenantModel; 27 | import lombok.Data; 28 | 29 | /** 30 | * @Author: 石恒 31 | * @Date: 2023/6/10 14:36 32 | * @Description: 33 | */ 34 | @Data 35 | public class DeviceOta extends TenantModel { 36 | private String currentVersion; 37 | private String deviceId; 38 | } -------------------------------------------------------------------------------- /iot-dao/iot-data-model/src/main/java/cc/iotkit/model/ota/OtaInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.model.ota; 25 | 26 | import cc.iotkit.model.TenantModel; 27 | import lombok.Data; 28 | 29 | import java.io.Serializable; 30 | 31 | /** 32 | * @Author: 石恒 33 | * @Date: 2023/6/15 22:54 34 | * @Description: 35 | */ 36 | @Data 37 | public class OtaInfo extends TenantModel implements Serializable { 38 | 39 | } 40 | -------------------------------------------------------------------------------- /iot-dao/iot-data-model/src/main/java/cc/iotkit/model/product/Category.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.model.product; 24 | 25 | import cc.iotkit.model.Id; 26 | import cc.iotkit.model.TenantModel; 27 | import lombok.Data; 28 | 29 | @Data 30 | public class Category extends TenantModel implements Id { 31 | 32 | private String id; 33 | 34 | private String name; 35 | 36 | private Long createAt; 37 | 38 | } 39 | -------------------------------------------------------------------------------- /iot-dao/iot-data-model/src/main/java/cc/iotkit/model/rule/FilterConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.model.rule; 25 | 26 | import lombok.Data; 27 | 28 | /** 29 | * 监听器和过滤器的过滤条件配置 30 | * 31 | * @author sjg 32 | */ 33 | @Data 34 | public class FilterConfig { 35 | /** 36 | * 条件类型 37 | */ 38 | private String type; 39 | 40 | /** 41 | * 条件配置 42 | */ 43 | protected String config; 44 | } 45 | -------------------------------------------------------------------------------- /iot-dao/iot-data-model/src/main/java/cc/iotkit/model/stats/TimeData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.model.stats; 24 | 25 | import lombok.AllArgsConstructor; 26 | import lombok.Data; 27 | import lombok.NoArgsConstructor; 28 | 29 | /** 30 | * 统计的时间数据 31 | */ 32 | @Data 33 | @NoArgsConstructor 34 | @AllArgsConstructor 35 | public class TimeData { 36 | 37 | /** 38 | * 时间 39 | */ 40 | private long time; 41 | 42 | /** 43 | * 数据值 44 | */ 45 | private Object data; 46 | 47 | } 48 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | iot-dao 7 | cc.iotkit 8 | 0.5.3 9 | 10 | 4.0.0 11 | 0.5.3 12 | iot-data-service 13 | 14 | 15 | 16 | 17 | cc.iotkit 18 | iot-data-model 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | org.apache.maven.plugins 27 | maven-compiler-plugin 28 | 3.8.1 29 | 30 | ${java.version} 31 | ${java.version} 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IAlertConfigData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.manager; 24 | 25 | import cc.iotkit.common.api.PageRequest; 26 | import cc.iotkit.common.api.Paging; 27 | import cc.iotkit.data.ICommonData; 28 | import cc.iotkit.model.alert.AlertConfig; 29 | 30 | 31 | public interface IAlertConfigData extends ICommonData { 32 | 33 | 34 | Paging selectAlertConfigPage(PageRequest request); 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IAlertRecordData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.manager; 24 | 25 | import cc.iotkit.common.api.PageRequest; 26 | import cc.iotkit.common.api.Paging; 27 | import cc.iotkit.data.ICommonData; 28 | import cc.iotkit.model.alert.AlertRecord; 29 | 30 | 31 | public interface IAlertRecordData extends ICommonData { 32 | 33 | 34 | Paging selectAlertConfigPage(PageRequest request); 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ICategoryData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.manager; 24 | 25 | import cc.iotkit.data.ICommonData; 26 | import cc.iotkit.model.product.Category; 27 | 28 | public interface ICategoryData extends ICommonData { 29 | } 30 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IChannelConfigData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.manager; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.notify.ChannelConfig; 28 | 29 | /** 30 | * author: 石恒 31 | * date: 2023-05-11 17:15 32 | * description: 33 | **/ 34 | public interface IChannelConfigData extends ICommonData { 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IChannelData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.manager; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.notify.Channel; 28 | 29 | /** 30 | * author: 石恒 31 | * date: 2023-05-11 17:15 32 | * description: 33 | **/ 34 | public interface IChannelData extends ICommonData { 35 | 36 | } 37 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IChannelTemplateData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.manager; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.notify.ChannelTemplate; 28 | 29 | /** 30 | * author: 石恒 31 | * date: 2023-05-11 17:15 32 | * description: 33 | **/ 34 | public interface IChannelTemplateData extends ICommonData { 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceConfigData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.manager; 24 | 25 | import cc.iotkit.data.ICommonData; 26 | import cc.iotkit.model.device.DeviceConfig; 27 | 28 | public interface IDeviceConfigData extends ICommonData { 29 | 30 | DeviceConfig findByDeviceName(String deviceName); 31 | 32 | DeviceConfig findByDeviceId(String deviceId); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceGroupData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.manager; 24 | 25 | import cc.iotkit.common.api.Paging; 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.device.DeviceGroup; 28 | 29 | public interface IDeviceGroupData extends ICommonData { 30 | 31 | Paging findByNameLike(String name, int page, int size); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceOtaDetailData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.manager; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.ota.DeviceOtaDetail; 28 | import cc.iotkit.model.ota.DeviceOtaInfo; 29 | 30 | /** 31 | * @Author: 石恒 32 | * @Date: 2023/6/15 22:14 33 | * @Description: 34 | */ 35 | public interface IDeviceOtaDetailData extends ICommonData { 36 | } 37 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IDeviceOtaInfoData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.manager; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.ota.DeviceOtaInfo; 28 | 29 | /** 30 | * @Author: 石恒 31 | * @Date: 2023/6/15 22:14 32 | * @Description: 33 | */ 34 | public interface IDeviceOtaInfoData extends ICommonData { 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IHomeData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.manager; 24 | 25 | import cc.iotkit.data.ICommonData; 26 | import cc.iotkit.model.space.Home; 27 | 28 | import java.util.List; 29 | 30 | 31 | public interface IHomeData extends ICommonData { 32 | 33 | Home findByUserIdAndCurrent(Long userId, boolean current); 34 | 35 | List findByUserId(Long userId); 36 | 37 | boolean checkHomeNameUnique(Home home); 38 | 39 | } 40 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IIconData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.manager; 24 | 25 | import cc.iotkit.data.ICommonData; 26 | import cc.iotkit.model.product.Icon; 27 | 28 | /** 29 | * @Author: tfd 30 | * @Date: 2024/4/25 14:32 31 | * @Description: 32 | */ 33 | public interface IIconData extends ICommonData { 34 | } 35 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IIconTypeData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.manager; 24 | 25 | import cc.iotkit.data.ICommonData; 26 | import cc.iotkit.model.product.IconType; 27 | /** 28 | * @Author: tfd 29 | * @Date: 2024/4/25 14:32 30 | * @Description: 31 | */ 32 | public interface IIconTypeData extends ICommonData { 33 | } 34 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/INotifyMessageData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.manager; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.notify.NotifyMessage; 28 | 29 | /** 30 | * @Author: 石恒 31 | * @Date: 2023/5/13 18:32 32 | * @Description: 33 | */ 34 | public interface INotifyMessageData extends ICommonData { 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IOauthClientData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.manager; 24 | 25 | import cc.iotkit.data.ICommonData; 26 | import cc.iotkit.model.OauthClient; 27 | 28 | public interface IOauthClientData extends ICommonData { 29 | 30 | OauthClient findByClientId(String clientId); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IOtaDeviceData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.manager; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.ota.OtaDevice; 28 | 29 | /** 30 | * @Author: 石恒 31 | * @Date: 2023/5/25 23:40 32 | * @Description: 33 | */ 34 | public interface IOtaDeviceData extends ICommonData { 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IOtaPackageData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.manager; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.ota.OtaPackage; 28 | 29 | /** 30 | * @Author: 石恒 31 | * @Date: 2023/5/19 21:46 32 | * @Description: 33 | */ 34 | public interface IOtaPackageData extends ICommonData { 35 | 36 | } 37 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IProductModelData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.manager; 24 | 25 | import cc.iotkit.data.ICommonData; 26 | import cc.iotkit.model.product.ProductModel; 27 | 28 | import java.util.List; 29 | 30 | public interface IProductModelData extends ICommonData { 31 | 32 | ProductModel findByModel(String model); 33 | 34 | List findByProductKey(String productKey); 35 | 36 | } 37 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IScreenApiData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.manager; 25 | 26 | import cc.iotkit.data.IOwnedData; 27 | import cc.iotkit.model.screen.ScreenApi; 28 | 29 | import java.util.List; 30 | 31 | /** 32 | * @Author:tfd 33 | * @Date:2023/6/25 15:34 34 | */ 35 | public interface IScreenApiData extends IOwnedData { 36 | List findByScreenId(Long id); 37 | 38 | void deleteByScreenId(Long id); 39 | } 40 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IScreenData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.manager; 25 | 26 | import cc.iotkit.data.IOwnedData; 27 | import cc.iotkit.model.screen.Screen; 28 | 29 | import java.util.List; 30 | 31 | /** 32 | * @Author:tfd 33 | * @Date:2023/6/25 15:34 34 | */ 35 | public interface IScreenData extends IOwnedData { 36 | Screen findByIsDefault(boolean isDefault); 37 | 38 | List findByState(String state); 39 | } 40 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ISpaceData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.manager; 24 | 25 | import cc.iotkit.data.ICommonData; 26 | import cc.iotkit.model.space.Space; 27 | 28 | import java.util.List; 29 | 30 | public interface ISpaceData extends ICommonData { 31 | 32 | List findByHomeId(Long homeId); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/ITaskInfoData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.manager; 25 | 26 | import cc.iotkit.data.IOwnedData; 27 | import cc.iotkit.model.rule.TaskInfo; 28 | 29 | public interface ITaskInfoData extends IOwnedData { 30 | } 31 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IThingModelData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.manager; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.product.ThingModel; 28 | 29 | public interface IThingModelData extends ICommonData { 30 | 31 | ThingModel findByProductKey(String productKey); 32 | } 33 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/manager/IUserInfoData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.manager; 24 | 25 | import cc.iotkit.data.ICommonData; 26 | import cc.iotkit.model.UserInfo; 27 | 28 | import java.util.List; 29 | 30 | public interface IUserInfoData extends ICommonData { 31 | 32 | UserInfo findByUid(String uid); 33 | 34 | List findByType(int type); 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/system/ISysAppData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.system; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.system.SysApp; 28 | 29 | /** 30 | * 数据接口 31 | * 32 | * @author Lion Li 33 | * @date 2023-08-10 34 | */ 35 | public interface ISysAppData extends ICommonData { 36 | 37 | SysApp findByAppId(String appId); 38 | 39 | } 40 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/system/ISysOssConfigData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.system; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.system.SysOssConfig; 28 | 29 | /** 30 | * 操作日志数据接口 31 | * 32 | * @author sjg 33 | */ 34 | public interface ISysOssConfigData extends ICommonData { 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/system/ISysOssData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.system; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.system.SysOss; 28 | 29 | /** 30 | * 操作日志数据接口 31 | * 32 | * @author sjg 33 | */ 34 | public interface ISysOssData extends ICommonData { 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/system/ISysTenantData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.system; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.system.SysTenant; 28 | 29 | /** 30 | * 租户数据接口 31 | * 32 | * @author tfd 33 | */ 34 | public interface ISysTenantData extends ICommonData { 35 | 36 | boolean checkCompanyNameUnique(SysTenant to); 37 | 38 | } 39 | -------------------------------------------------------------------------------- /iot-dao/iot-data-service/src/main/java/cc/iotkit/data/system/ISysTenantPackageData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.system; 25 | 26 | import cc.iotkit.data.ICommonData; 27 | import cc.iotkit.model.system.SysTenantPackage; 28 | 29 | /** 30 | * 操作日志数据接口 31 | * 32 | * @author sjg 33 | */ 34 | public interface ISysTenantPackageData extends ICommonData { 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-cache/src/main/java/cc/iotkit/data/cache/SpaceCacheEvict.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.cache; 25 | 26 | import cc.iotkit.common.constant.Constants; 27 | import org.springframework.cache.annotation.CacheEvict; 28 | import org.springframework.stereotype.Component; 29 | 30 | @Component 31 | public class SpaceCacheEvict { 32 | 33 | @CacheEvict(value = Constants.CACHE_SPACE, key = "#root.method.name+#s") 34 | public void findById(Long s) { 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/config/AutoMapperConfig3.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.config; 25 | 26 | import io.github.linpeilie.annotations.MapperConfig; 27 | 28 | /** 29 | * @Author: jay 30 | * @Date: 2023/6/4 14:21 31 | * @Version: V1.0 32 | * @Description: mapperstruct 配置 33 | */ 34 | @MapperConfig(adapterClassName = "dataAdapter") 35 | 36 | public class AutoMapperConfig3 { 37 | } 38 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/AlertConfigRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbAlertConfig; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | 28 | public interface AlertConfigRepository extends JpaRepository { 29 | 30 | } 31 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/AlertRecordRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbAlertRecord; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface AlertRecordRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/CategoryRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbCategory; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | 28 | public interface CategoryRepository extends JpaRepository { 29 | 30 | } 31 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/ChannelConfigRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.dao; 25 | 26 | import cc.iotkit.data.model.TbChannelConfig; 27 | import org.springframework.data.jpa.repository.JpaRepository; 28 | 29 | /** 30 | * @Author: 石恒 31 | * @Date: 2023/5/11 21:00 32 | * @Description: 33 | */ 34 | public interface ChannelConfigRepository extends JpaRepository { 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/ChannelRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.dao; 25 | 26 | import cc.iotkit.data.model.TbChannel; 27 | import org.springframework.data.jpa.repository.JpaRepository; 28 | 29 | /** 30 | * author: 石恒 31 | * date: 2023-05-11 17:51 32 | * description: 33 | **/ 34 | public interface ChannelRepository extends JpaRepository { 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/ChannelTemplateRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.dao; 25 | 26 | import cc.iotkit.data.model.TbChannelTemplate; 27 | import org.springframework.data.jpa.repository.JpaRepository; 28 | 29 | /** 30 | * @Author: 石恒 31 | * @Date: 2023/5/11 21:00 32 | * @Description: 33 | */ 34 | public interface ChannelTemplateRepository extends JpaRepository { 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/DeviceConfigRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbDeviceConfig; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | 28 | public interface DeviceConfigRepository extends JpaRepository { 29 | 30 | TbDeviceConfig findByDeviceName(String deviceName); 31 | 32 | TbDeviceConfig findByDeviceId(String deviceId); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/DeviceSubUserRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.dao; 25 | 26 | import cc.iotkit.data.model.TbDeviceSubUser; 27 | import org.springframework.data.jpa.repository.JpaRepository; 28 | 29 | import java.util.List; 30 | 31 | public interface DeviceSubUserRepository extends JpaRepository { 32 | 33 | List findByDeviceId(String deviceId); 34 | 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/IOtaDeviceRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.dao; 25 | 26 | import cc.iotkit.data.model.TbOtaDevice; 27 | import org.springframework.data.jpa.repository.JpaRepository; 28 | 29 | /** 30 | * @Author: 石恒 31 | * @Date: 2023/5/25 23:43 32 | * @Description: 33 | */ 34 | public interface IOtaDeviceRepository extends JpaRepository { 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/IconRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.dao; 25 | 26 | import cc.iotkit.data.model.TbIcon; 27 | import org.springframework.data.jpa.repository.JpaRepository; 28 | 29 | /** 30 | * @Author:tfd 31 | * @Date:2024/4/28 16:41 32 | */ 33 | public interface IconRepository extends JpaRepository { 34 | } 35 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/IconTypeRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.dao; 25 | 26 | import cc.iotkit.data.model.TbIconType; 27 | import org.springframework.data.jpa.repository.JpaRepository; 28 | 29 | /** 30 | * @Author:tfd 31 | * @Date:2024/4/28 16:41 32 | */ 33 | public interface IconTypeRepository extends JpaRepository { 34 | } 35 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/NotifyMessageRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.data.dao; 25 | 26 | import cc.iotkit.data.model.TbNotifyMessage; 27 | import org.springframework.data.jpa.repository.JpaRepository; 28 | 29 | /** 30 | * @Author: 石恒 31 | * @Date: 2023/5/13 18:36 32 | * @Description: 33 | */ 34 | public interface NotifyMessageRepository extends JpaRepository { 35 | 36 | } 37 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/OauthClientRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbOauthClient; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | 28 | public interface OauthClientRepository extends JpaRepository { 29 | 30 | TbOauthClient findByClientId(String clientId); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SpaceRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSpace; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | 28 | import java.util.List; 29 | 30 | public interface SpaceRepository extends JpaRepository { 31 | 32 | List findByHomeId(Long homeId); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysDeptRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysDept; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysDeptRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysDictDataRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysDictData; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysDictDataRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysDictTypeRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysDictType; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysDictTypeRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysLogininforRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysLogininfor; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysLogininforRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysMenuRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysMenu; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysMenuRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysNoticRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysNotice; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysNoticRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysOperLogRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysOperLog; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysOperLogRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysOssConfigRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysOssConfig; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysOssConfigRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysOssRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysOss; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysOssRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysPostRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysPost; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysPostRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysRoleDeptRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysRoleDept; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysRoleDeptRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysRoleMenuRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysRoleMenu; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysRoleMenuRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysRoleRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysRole; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysRoleRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysTenantPackageRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysTenantPackage; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysTenantPackageRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysTenantRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysTenant; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysTenantRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysUserRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysUser; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysUserRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/SysUserRoleRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbSysUserRole; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 28 | 29 | public interface SysUserRoleRepository extends JpaRepository, QuerydslPredicateExecutor { 30 | int deleteAllByUserId(Long userId); 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/ThingModelRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbThingModel; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | 28 | import java.util.Optional; 29 | 30 | public interface ThingModelRepository extends JpaRepository { 31 | 32 | Optional findByProductKey(String productKey); 33 | } 34 | -------------------------------------------------------------------------------- /iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/dao/UserInfoRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.data.dao; 24 | 25 | import cc.iotkit.data.model.TbUserInfo; 26 | import org.springframework.data.jpa.repository.JpaRepository; 27 | 28 | import java.util.List; 29 | 30 | public interface UserInfoRepository extends JpaRepository { 31 | 32 | TbUserInfo findByUid(String uid); 33 | 34 | List findByType(int type); 35 | 36 | } 37 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-service/src/main/java/cc/iotkit/temporal/IRuleLogData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.temporal; 25 | 26 | import cc.iotkit.common.api.Paging; 27 | import cc.iotkit.model.rule.RuleLog; 28 | 29 | public interface IRuleLogData { 30 | 31 | void deleteByRuleId(String ruleId); 32 | 33 | Paging findByRuleId(String ruleId, int page, int size); 34 | 35 | void add(RuleLog log); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-service/src/main/java/cc/iotkit/temporal/ITaskLogData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.temporal; 25 | 26 | import cc.iotkit.common.api.Paging; 27 | import cc.iotkit.model.rule.TaskLog; 28 | 29 | public interface ITaskLogData { 30 | void deleteByTaskId(String taskId); 31 | 32 | Paging findByTaskId(String taskId, int page, int size); 33 | 34 | void add(TaskLog log); 35 | } 36 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-service/src/main/java/cc/iotkit/temporal/IVirtualDeviceLogData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.temporal; 25 | 26 | import cc.iotkit.common.api.Paging; 27 | import cc.iotkit.model.device.VirtualDeviceLog; 28 | 29 | public interface IVirtualDeviceLogData { 30 | 31 | Paging findByVirtualDeviceId(String virtualDeviceId, int page, int size); 32 | 33 | void add(VirtualDeviceLog log); 34 | } 35 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-es/src/main/java/cc/iotkit/temporal/es/dao/ThingModelMessageRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.temporal.es.dao; 24 | 25 | import cc.iotkit.temporal.es.document.DocThingModelMessage; 26 | import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; 27 | 28 | public interface ThingModelMessageRepository extends ElasticsearchRepository { 29 | } 30 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-iotdb/src/main/java/cc/iotkit/temporal/iotdb/model/Record.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.temporal.iotdb.model; 25 | 26 | 27 | /** 28 | * @author sjg 29 | */ 30 | public interface Record { 31 | 32 | /** 33 | * 设备Id 34 | * 35 | * @return string 36 | */ 37 | String getDeviceId(); 38 | 39 | /** 40 | * 时间 41 | * 42 | * @return long 43 | */ 44 | Long getTime(); 45 | 46 | } 47 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-td/src/main/java/cc/iotkit/temporal/td/dm/TdField.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.temporal.td.dm; 24 | 25 | import lombok.AllArgsConstructor; 26 | import lombok.Data; 27 | import lombok.NoArgsConstructor; 28 | 29 | @Data 30 | @NoArgsConstructor 31 | @AllArgsConstructor 32 | public class TdField { 33 | private String name; 34 | private String type; 35 | private int length; 36 | } -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-td/src/main/java/cc/iotkit/temporal/td/model/TbTaskLog.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.temporal.td.model; 24 | 25 | import lombok.AllArgsConstructor; 26 | import lombok.Data; 27 | import lombok.NoArgsConstructor; 28 | 29 | @Data 30 | @NoArgsConstructor 31 | @AllArgsConstructor 32 | public class TbTaskLog { 33 | 34 | private Long time; 35 | 36 | private String taskId; 37 | 38 | private String content; 39 | 40 | private Boolean success; 41 | 42 | } 43 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-ts/src/main/java/cc/iotkit/temporal/ts/config/Constants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * +---------------------------------------------------------------------- 3 | * | Copyright (c) 奇特物联 2021-2022 All rights reserved. 4 | * +---------------------------------------------------------------------- 5 | * | Licensed 未经许可不能去掉「奇特物联」相关版权 6 | * +---------------------------------------------------------------------- 7 | * | Author: xw2sy@163.com 8 | * +---------------------------------------------------------------------- 9 | */ 10 | package cc.iotkit.temporal.ts.config; 11 | 12 | public interface Constants { 13 | 14 | /** 15 | * 根据产品key获取产品属性超级表名 16 | */ 17 | static String getProductPropertySTableName(String productKey) { 18 | return String.format("product_property_%s", productKey.toLowerCase()); 19 | } 20 | 21 | /** 22 | * 根据deviceId获取设备属性表名 23 | */ 24 | static String getDevicePropertyTableName(String deviceId) { 25 | return String.format("device_property_%s", deviceId.toLowerCase()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-ts/src/main/java/cc/iotkit/temporal/ts/dao/TsTemplate.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.temporal.ts.dao; 2 | 3 | import org.springframework.jdbc.core.JdbcTemplate; 4 | 5 | import javax.sql.DataSource; 6 | 7 | public class TsTemplate extends JdbcTemplate { 8 | 9 | public TsTemplate() { 10 | } 11 | 12 | public TsTemplate(DataSource dataSource) { 13 | super(dataSource); 14 | } 15 | 16 | public TsTemplate(DataSource dataSource, boolean lazyInit) { 17 | super(dataSource, lazyInit); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-ts/src/main/java/cc/iotkit/temporal/ts/dm/DbField.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.temporal.ts.dm; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | @Data 8 | @NoArgsConstructor 9 | @AllArgsConstructor 10 | public class DbField { 11 | private String name; 12 | private String type; 13 | 14 | private int length; 15 | } -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-ts/src/main/java/cc/iotkit/temporal/ts/dm/TsField.java: -------------------------------------------------------------------------------- 1 | /* 2 | * +---------------------------------------------------------------------- 3 | * | Copyright (c) 奇特物联 2021-2022 All rights reserved. 4 | * +---------------------------------------------------------------------- 5 | * | Licensed 未经许可不能去掉「奇特物联」相关版权 6 | * +---------------------------------------------------------------------- 7 | * | Author: xw2sy@163.com 8 | * +---------------------------------------------------------------------- 9 | */ 10 | package cc.iotkit.temporal.ts.dm; 11 | 12 | import lombok.AllArgsConstructor; 13 | import lombok.Data; 14 | import lombok.NoArgsConstructor; 15 | import org.jooq.DataType; 16 | 17 | @Data 18 | @NoArgsConstructor 19 | @AllArgsConstructor 20 | public class TsField { 21 | private String name; 22 | private DataType type; 23 | private int length; 24 | } -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-ts/src/main/java/cc/iotkit/temporal/ts/model/TsDeviceProperty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * +---------------------------------------------------------------------- 3 | * | Copyright (c) 奇特物联 2021-2022 All rights reserved. 4 | * +---------------------------------------------------------------------- 5 | * | Licensed 未经许可不能去掉「奇特物联」相关版权 6 | * +---------------------------------------------------------------------- 7 | * | Author: xw2sy@163.com 8 | * +---------------------------------------------------------------------- 9 | */ 10 | package cc.iotkit.temporal.ts.model; 11 | 12 | import lombok.AllArgsConstructor; 13 | import lombok.Data; 14 | import lombok.NoArgsConstructor; 15 | 16 | import java.util.Date; 17 | 18 | @Data 19 | @NoArgsConstructor 20 | @AllArgsConstructor 21 | public class TsDeviceProperty { 22 | 23 | private Date time; 24 | 25 | private String deviceId; 26 | 27 | private String name; 28 | 29 | private Object value; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-ts/src/main/java/cc/iotkit/temporal/ts/model/TsRuleLog.java: -------------------------------------------------------------------------------- 1 | /* 2 | * +---------------------------------------------------------------------- 3 | * | Copyright (c) 奇特物联 2021-2022 All rights reserved. 4 | * +---------------------------------------------------------------------- 5 | * | Licensed 未经许可不能去掉「奇特物联」相关版权 6 | * +---------------------------------------------------------------------- 7 | * | Author: xw2sy@163.com 8 | * +---------------------------------------------------------------------- 9 | */ 10 | package cc.iotkit.temporal.ts.model; 11 | 12 | import lombok.AllArgsConstructor; 13 | import lombok.Data; 14 | import lombok.NoArgsConstructor; 15 | 16 | import java.util.Date; 17 | 18 | @Data 19 | @NoArgsConstructor 20 | @AllArgsConstructor 21 | public class TsRuleLog { 22 | 23 | private Date time; 24 | 25 | private String ruleId; 26 | 27 | private String state1; 28 | 29 | private String content; 30 | 31 | private Boolean success; 32 | 33 | } 34 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-ts/src/main/java/cc/iotkit/temporal/ts/model/TsTaskLog.java: -------------------------------------------------------------------------------- 1 | /* 2 | * +---------------------------------------------------------------------- 3 | * | Copyright (c) 奇特物联 2021-2022 All rights reserved. 4 | * +---------------------------------------------------------------------- 5 | * | Licensed 未经许可不能去掉「奇特物联」相关版权 6 | * +---------------------------------------------------------------------- 7 | * | Author: xw2sy@163.com 8 | * +---------------------------------------------------------------------- 9 | */ 10 | package cc.iotkit.temporal.ts.model; 11 | 12 | import lombok.AllArgsConstructor; 13 | import lombok.Data; 14 | import lombok.NoArgsConstructor; 15 | 16 | @Data 17 | @NoArgsConstructor 18 | @AllArgsConstructor 19 | public class TsTaskLog { 20 | 21 | private Long time; 22 | 23 | private String taskId; 24 | 25 | private String content; 26 | 27 | private Boolean success; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-ts/src/main/java/cc/iotkit/temporal/ts/model/TsThingModelMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * +---------------------------------------------------------------------- 3 | * | Copyright (c) 奇特物联 2021-2022 All rights reserved. 4 | * +---------------------------------------------------------------------- 5 | * | Licensed 未经许可不能去掉「奇特物联」相关版权 6 | * +---------------------------------------------------------------------- 7 | * | Author: xw2sy@163.com 8 | * +---------------------------------------------------------------------- 9 | */ 10 | package cc.iotkit.temporal.ts.model; 11 | 12 | import lombok.AllArgsConstructor; 13 | import lombok.Data; 14 | import lombok.NoArgsConstructor; 15 | 16 | import java.util.Date; 17 | 18 | @Data 19 | @NoArgsConstructor 20 | @AllArgsConstructor 21 | public class TsThingModelMessage { 22 | 23 | private Date time; 24 | 25 | private String mid; 26 | 27 | private String deviceId; 28 | 29 | private String productKey; 30 | 31 | private String deviceName; 32 | 33 | private String uid; 34 | 35 | private String type; 36 | 37 | private String identifier; 38 | 39 | private int code; 40 | 41 | private String data; 42 | 43 | private Long reportTime; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-ts/src/main/java/cc/iotkit/temporal/ts/model/TsTimeData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * +---------------------------------------------------------------------- 3 | * | Copyright (c) 奇特物联 2021-2022 All rights reserved. 4 | * +---------------------------------------------------------------------- 5 | * | Licensed 未经许可不能去掉「奇特物联」相关版权 6 | * +---------------------------------------------------------------------- 7 | * | Author: xw2sy@163.com 8 | * +---------------------------------------------------------------------- 9 | */ 10 | package cc.iotkit.temporal.ts.model; 11 | 12 | import lombok.AllArgsConstructor; 13 | import lombok.Data; 14 | import lombok.NoArgsConstructor; 15 | 16 | import java.util.Date; 17 | 18 | /** 19 | * 统计的时间数据 20 | */ 21 | @Data 22 | @NoArgsConstructor 23 | @AllArgsConstructor 24 | public class TsTimeData { 25 | 26 | /** 27 | * 时间 28 | */ 29 | private Date time; 30 | 31 | /** 32 | * 数据值 33 | */ 34 | private Object data; 35 | 36 | } 37 | -------------------------------------------------------------------------------- /iot-dao/iot-temporal-serviceImpl-ts/src/main/java/cc/iotkit/temporal/ts/model/TsVirtualDeviceLog.java: -------------------------------------------------------------------------------- 1 | /* 2 | * +---------------------------------------------------------------------- 3 | * | Copyright (c) 奇特物联 2021-2022 All rights reserved. 4 | * +---------------------------------------------------------------------- 5 | * | Licensed 未经许可不能去掉「奇特物联」相关版权 6 | * +---------------------------------------------------------------------- 7 | * | Author: xw2sy@163.com 8 | * +---------------------------------------------------------------------- 9 | */ 10 | package cc.iotkit.temporal.ts.model; 11 | 12 | import lombok.AllArgsConstructor; 13 | import lombok.Data; 14 | import lombok.NoArgsConstructor; 15 | 16 | import java.util.Date; 17 | 18 | @Data 19 | @NoArgsConstructor 20 | @AllArgsConstructor 21 | public class TsVirtualDeviceLog { 22 | 23 | private Date time; 24 | 25 | private String virtualDeviceId; 26 | 27 | private String virtualDeviceName; 28 | 29 | private int deviceTotal; 30 | 31 | private String result; 32 | 33 | } 34 | -------------------------------------------------------------------------------- /iot-dao/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | iotkit-parent 7 | cc.iotkit 8 | 0.5.3 9 | 10 | 4.0.0 11 | pom 12 | 13 | 14 | 与数据存取相关内容的模块 15 | 包含:数据接口定义、数据实体类定义、关系型数据库接口实现、NoSQL数据库接口实现、数据缓存服务 16 | 17 | 18 | 19 | iot-data-model 20 | iot-data-service 21 | iot-data-serviceImpl-cache 22 | iot-data-serviceImpl-rdb 23 | iot-temporal-service 24 | iot-temporal-serviceImpl-td 25 | iot-temporal-serviceImpl-es 26 | iot-temporal-serviceImpl-iotdb 27 | 28 | 29 | iot-dao 30 | 31 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/java/cc/iotkit/generator/core/DataBaseType.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.generator.core; 2 | 3 | import cc.iotkit.common.utils.StringUtils; 4 | import lombok.AllArgsConstructor; 5 | import lombok.Getter; 6 | 7 | 8 | /** 9 | * 数据库类型 10 | * 11 | * @author Lion Li 12 | */ 13 | @Getter 14 | @AllArgsConstructor 15 | public enum DataBaseType { 16 | 17 | /** 18 | * MySQL 19 | */ 20 | MY_SQL("MySQL"), 21 | 22 | H2("H2"), 23 | /** 24 | * Oracle 25 | */ 26 | ORACLE("Oracle"), 27 | 28 | /** 29 | * PostgreSQL 30 | */ 31 | POSTGRE_SQL("PostgreSQL"), 32 | 33 | /** 34 | * SQL Server 35 | */ 36 | SQL_SERVER("Microsoft SQL Server"); 37 | 38 | private final String type; 39 | 40 | public static DataBaseType find(String databaseProductName) { 41 | if (StringUtils.isBlank(databaseProductName)) { 42 | return null; 43 | } 44 | for (DataBaseType type : values()) { 45 | if (type.getType().equals(databaseProductName)) { 46 | return type; 47 | } 48 | } 49 | return null; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/java/cc/iotkit/generator/core/DbIdGenerator.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.generator.core; 2 | 3 | import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator; 4 | import com.github.yitter.contract.IdGeneratorOptions; 5 | import com.github.yitter.idgen.YitIdHelper; 6 | 7 | /** 8 | * @author: Jay 9 | * @description: 10 | * @date:created in 2023/5/18 10:20 11 | * @modificed by: 12 | */ 13 | public class DbIdGenerator implements IdentifierGenerator { 14 | 15 | 16 | public DbIdGenerator(Short workerId) { 17 | // 使用网卡信息绑定雪花生成器 18 | // 防止集群雪花ID重复 19 | 20 | IdGeneratorOptions options = new IdGeneratorOptions(workerId); 21 | YitIdHelper.setIdGenerator(options); 22 | } 23 | 24 | 25 | 26 | @Override 27 | public Number nextId(Object entity) { 28 | return YitIdHelper.nextId(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/java/cc/iotkit/generator/core/PageBuilder.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.generator.core; 2 | 3 | import cc.iotkit.common.api.PageRequest; 4 | import cn.hutool.core.util.ObjectUtil; 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 6 | 7 | import java.io.Serializable; 8 | 9 | /** 10 | * 分页查询实体类 11 | * 12 | * @author Lion Li 13 | */ 14 | 15 | 16 | public class PageBuilder implements Serializable { 17 | 18 | 19 | public static Page build(PageRequest pageRequest) { 20 | Integer pageNum = ObjectUtil.defaultIfNull(pageRequest.getPageNum(), PageQuery.DEFAULT_PAGE_NUM); 21 | Integer pageSize = ObjectUtil.defaultIfNull(pageRequest.getPageSize(), PageQuery.DEFAULT_PAGE_SIZE); 22 | return new Page(pageNum, pageSize); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/java/cc/iotkit/generator/dto/bo/ImportTableBo.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.generator.dto.bo; 2 | 3 | import cc.iotkit.common.api.BaseDto; 4 | import io.swagger.annotations.ApiModelProperty; 5 | import javax.validation.constraints.NotEmpty; 6 | import lombok.Data; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * @Author: jay 12 | * @Date: 2023/6/24 16:47 13 | * @Version: V1.0 14 | * @Description: 导入表Bo 15 | */ 16 | @Data 17 | public class ImportTableBo extends BaseDto { 18 | 19 | @ApiModelProperty(value = "表名列表", notes = "表名列表") 20 | @NotEmpty(message = "表名列表不能为空") 21 | private List tables; 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/java/cc/iotkit/generator/factory/YmlPropertySourceFactory.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.generator.factory; 2 | 3 | 4 | import cc.iotkit.common.utils.StringUtils; 5 | import org.springframework.beans.factory.config.YamlPropertiesFactoryBean; 6 | import org.springframework.core.env.PropertiesPropertySource; 7 | import org.springframework.core.env.PropertySource; 8 | import org.springframework.core.io.support.DefaultPropertySourceFactory; 9 | import org.springframework.core.io.support.EncodedResource; 10 | 11 | import java.io.IOException; 12 | 13 | /** 14 | * yml 配置源工厂 15 | * 16 | * @author Lion Li 17 | */ 18 | public class YmlPropertySourceFactory extends DefaultPropertySourceFactory { 19 | 20 | @Override 21 | public PropertySource createPropertySource(String name, EncodedResource resource) throws IOException { 22 | String sourceName = resource.getResource().getFilename(); 23 | if (StringUtils.isNotBlank(sourceName) && StringUtils.endsWithAny(sourceName, ".yml", ".yaml")) { 24 | YamlPropertiesFactoryBean factory = new YamlPropertiesFactoryBean(); 25 | factory.setResources(resource.getResource()); 26 | factory.afterPropertiesSet(); 27 | return new PropertiesPropertySource(sourceName, factory.getObject()); 28 | } 29 | return super.createPropertySource(name, resource); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/java/cc/iotkit/generator/mapper/GenTableColumnMapper.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.generator.mapper; 2 | 3 | import cc.iotkit.generator.core.BaseMapperPlus; 4 | import cc.iotkit.generator.domain.GenTableColumn; 5 | import com.baomidou.mybatisplus.annotation.InterceptorIgnore; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * 业务字段 数据层 11 | * 12 | * @author Lion Li 13 | */ 14 | @InterceptorIgnore(dataPermission = "true", tenantLine = "true") 15 | public interface GenTableColumnMapper extends BaseMapperPlus { 16 | /** 17 | * 根据表名称查询列信息 18 | * 19 | * @param tableName 表名称 20 | * @return 列信息 21 | */ 22 | List selectDbTableColumnsByName(String tableName); 23 | 24 | } 25 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/java/cc/iotkit/generator/util/VelocityInitializer.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.generator.util; 2 | 3 | import cc.iotkit.common.constant.Constants; 4 | import lombok.AccessLevel; 5 | import lombok.NoArgsConstructor; 6 | import org.apache.velocity.app.Velocity; 7 | 8 | import java.util.Properties; 9 | 10 | /** 11 | * VelocityEngine工厂 12 | * 13 | * @author ruoyi 14 | */ 15 | @NoArgsConstructor(access = AccessLevel.PRIVATE) 16 | public class VelocityInitializer { 17 | 18 | /** 19 | * 初始化vm方法 20 | */ 21 | public static void initVelocity() { 22 | Properties p = new Properties(); 23 | try { 24 | // 加载classpath目录下的vm文件 25 | p.setProperty("resource.loader.file.class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader"); 26 | // 定义字符集 27 | p.setProperty(Velocity.INPUT_ENCODING, Constants.UTF8); 28 | // 初始化Velocity引擎,指定配置Properties 29 | Velocity.init(p); 30 | } catch (Exception e) { 31 | throw new RuntimeException(e); 32 | } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports: -------------------------------------------------------------------------------- 1 | cc.iotkit.generator.config.MybatisPlusConfig -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/resources/common-mybatis.yml: -------------------------------------------------------------------------------- 1 | # 内置配置 不允许修改 如需修改请在 nacos 上写相同配置覆盖 2 | # MyBatisPlus配置 3 | # https://baomidou.com/config/ 4 | mybatis-plus: 5 | # 启动时是否检查 MyBatis XML 文件的存在,默认不检查 6 | checkConfigLocation: false 7 | configuration: 8 | # 自动驼峰命名规则(camel case)映射 9 | mapUnderscoreToCamelCase: true 10 | # MyBatis 自动映射策略 11 | # NONE:不启用 PARTIAL:只对非嵌套 resultMap 自动映射 FULL:对所有 resultMap 自动映射 12 | autoMappingBehavior: FULL 13 | # MyBatis 自动映射时未知列或未知属性处理策 14 | # NONE:不做处理 WARNING:打印相关警告 FAILING:抛出异常和详细信息 15 | autoMappingUnknownColumnBehavior: NONE 16 | # 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl 17 | # 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl 18 | # 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl 19 | logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl 20 | global-config: 21 | # 是否打印 Logo banner 22 | banner: true 23 | dbConfig: 24 | # 主键类型 25 | # AUTO 自增 NONE 空 INPUT 用户输入 ASSIGN_ID 雪花 ASSIGN_UUID 唯一 UUID 26 | idType: ASSIGN_ID 27 | # 逻辑已删除值(框架表均使用此值 禁止随意修改) 28 | logicDeleteValue: 2 29 | # 逻辑未删除值 30 | logicNotDeleteValue: 0 31 | insertStrategy: NOT_NULL 32 | updateStrategy: NOT_NULL 33 | whereStrategy: NOT_NULL 34 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/resources/generator.yml: -------------------------------------------------------------------------------- 1 | # 代码生成 2 | gen: 3 | # 作者 4 | author: iita 5 | # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool 6 | packageName: cc.iotkit.system 7 | # 自动去除表前缀,默认是false 8 | autoRemovePre: false 9 | # 表前缀(生成类名不会包含表前缀,多个用逗号分隔) 10 | tablePrefix: sys_ 11 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/resources/mapper/package-info.md: -------------------------------------------------------------------------------- 1 | java包使用 `.` 分割 resource 目录使用 `/` 分割 2 |
3 | 此文件目的 防止文件夹粘连找不到 `xml` 文件 -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/resources/vm/java/idata.java.vm: -------------------------------------------------------------------------------- 1 | package ${packageName}.data; 2 | 3 | import cc.iotkit.data.ICommonData; 4 | import ${packageName}.model.${ClassName}; 5 | import java.util.List; 6 | 7 | /** 8 | * 数据接口 9 | * 10 | * @author ${author} 11 | * @date ${datetime} 12 | */ 13 | public interface I${ClassName}Data extends ICommonData<${ClassName}, Long> { 14 | 15 | 16 | } 17 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/resources/vm/java/mapper.java.vm: -------------------------------------------------------------------------------- 1 | package ${packageName}.mapper; 2 | 3 | import ${packageName}.domain.${ClassName}; 4 | import ${packageName}.domain.vo.${ClassName}Vo; 5 | import cc.iotkit.common.mybatis.core.mapper.BaseMapperPlus; 6 | 7 | /** 8 | * ${functionName}Mapper接口 9 | * 10 | * @author ${author} 11 | * @date ${datetime} 12 | */ 13 | public interface ${ClassName}Mapper extends BaseMapperPlus<${ClassName}, ${ClassName}Vo> { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/resources/vm/java/model.java.vm: -------------------------------------------------------------------------------- 1 | package ${packageName}.model; 2 | 3 | import cc.iotkit.model.Id; 4 | #foreach ($column in $columns) 5 | #if($column.javaField=='tenantId') 6 | #set($IsTenant=1) 7 | #end 8 | #end 9 | #if($IsTenant==1) 10 | import cc.iotkit.model.TenantModel; 11 | #else 12 | import cc.iotkit.model.BaseModel; 13 | #end 14 | import lombok.Data; 15 | import lombok.EqualsAndHashCode; 16 | #foreach ($import in $importList) 17 | import ${import}; 18 | #end 19 | 20 | import java.io.Serializable; 21 | 22 | 23 | /** 24 | * ${functionName}对象 ${tableName} 25 | * 26 | * @author ${author} 27 | * @date ${datetime} 28 | */ 29 | #if($IsTenant==1) 30 | #set($Entity="TenantModel") 31 | #else 32 | #set($Entity="BaseModel") 33 | #end 34 | @Data 35 | @EqualsAndHashCode(callSuper = true) 36 | public class ${ClassName} extends ${Entity} implements Id, Serializable{ 37 | 38 | private static final long serialVersionUID = 1L; 39 | 40 | #foreach ($column in $columns) 41 | #if(!$table.isSuperColumn($column.javaField)) 42 | /** 43 | * $column.columnComment 44 | */ 45 | private $column.javaType $column.javaField; 46 | 47 | #end 48 | #end 49 | 50 | } 51 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/resources/vm/java/repository.java.vm: -------------------------------------------------------------------------------- 1 | package ${packageName}.data.dao; 2 | 3 | import ${packageName}.data.model.Tb${ClassName}; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.data.querydsl.QuerydslPredicateExecutor; 6 | 7 | /** 8 | * ${functionName}对象 ${tableName} 9 | * 10 | * @author ${author} 11 | * @date ${datetime} 12 | */ 13 | public interface ${ClassName}Repository extends JpaRepository, QuerydslPredicateExecutor { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/resources/vm/java/service.java.vm: -------------------------------------------------------------------------------- 1 | package ${packageName}.service; 2 | 3 | import ${packageName}.dto.vo.${ClassName}Vo; 4 | import ${packageName}.dto.bo.${ClassName}Bo; 5 | #if($table.crud || $table.sub) 6 | 7 | #end 8 | import cc.iotkit.common.api.Paging; 9 | import cc.iotkit.common.api.PageRequest; 10 | 11 | import java.util.Collection; 12 | import java.util.List; 13 | 14 | /** 15 | * ${functionName}Service接口 16 | * 17 | * @author ${author} 18 | * @date ${datetime} 19 | */ 20 | public interface I${ClassName}Service { 21 | 22 | /** 23 | * 查询${functionName} 24 | */ 25 | ${ClassName}Vo queryById(${pkColumn.javaType} ${pkColumn.javaField}); 26 | 27 | #if($table.crud || $table.sub) 28 | /** 29 | * 查询${functionName}列表 30 | */ 31 | Paging<${ClassName}Vo> queryPageList(PageRequest<${ClassName}Bo> pageQuery); 32 | #end 33 | 34 | /** 35 | * 查询${functionName}列表 36 | */ 37 | List<${ClassName}Vo> queryList(${ClassName}Bo bo); 38 | 39 | /** 40 | * 新增${functionName} 41 | */ 42 | Long insertByBo(${ClassName}Bo bo); 43 | 44 | /** 45 | * 修改${functionName} 46 | */ 47 | Boolean updateByBo(${ClassName}Bo bo); 48 | 49 | /** 50 | * 校验并批量删除${functionName}信息 51 | */ 52 | Boolean deleteWithValidByIds(Collection<${pkColumn.javaType}> ids, Boolean isValid); 53 | } 54 | -------------------------------------------------------------------------------- /iot-module/iot-generator/src/main/resources/vm/xml/mapper.xml.vm: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /iot-module/iot-manager/src/main/java/cc/iotkit/manager/config/AutoMapperConfig2.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.manager.config; 25 | 26 | import io.github.linpeilie.annotations.MapperConfig; 27 | 28 | /** 29 | * @Author: jay 30 | * @Date: 2023/6/4 14:21 31 | * @Version: V1.0 32 | * @Description: mapperstruct 配置 33 | */ 34 | @MapperConfig( adapterClassName = "managerAdapter") 35 | public class AutoMapperConfig2 { 36 | } 37 | -------------------------------------------------------------------------------- /iot-module/iot-manager/src/main/java/cc/iotkit/manager/dto/vo/ota/DeviceUpgradeVo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.manager.dto.vo.ota; 25 | 26 | import lombok.Builder; 27 | import lombok.Data; 28 | 29 | import java.io.Serializable; 30 | 31 | /** 32 | * @Author: 石恒 33 | * @Date: 2023/7/18 21:48 34 | * @Description: 35 | */ 36 | @Data 37 | @Builder 38 | public class DeviceUpgradeVo implements Serializable { 39 | private String result; 40 | } 41 | -------------------------------------------------------------------------------- /iot-module/iot-manager/src/main/java/cc/iotkit/manager/model/query/DeviceQuery.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.manager.model.query; 24 | 25 | import lombok.Data; 26 | 27 | @Data 28 | public class DeviceQuery { 29 | 30 | private String productKey; 31 | 32 | private String keyword; 33 | 34 | private String group; 35 | 36 | private String state; 37 | 38 | } 39 | -------------------------------------------------------------------------------- /iot-module/iot-manager/src/main/java/cc/iotkit/manager/model/vo/DeviceLog.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.manager.model.vo; 24 | 25 | import lombok.Data; 26 | 27 | @Data 28 | public class DeviceLog { 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /iot-module/iot-manager/src/main/java/cc/iotkit/manager/model/vo/LoginResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.manager.model.vo; 24 | 25 | import lombok.AllArgsConstructor; 26 | import lombok.Data; 27 | import lombok.NoArgsConstructor; 28 | 29 | @Data 30 | @NoArgsConstructor 31 | @AllArgsConstructor 32 | public class LoginResult { 33 | 34 | private String token; 35 | 36 | } 37 | -------------------------------------------------------------------------------- /iot-module/iot-manager/src/main/java/cc/iotkit/manager/model/vo/MessageVo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.manager.model.vo; 24 | 25 | import lombok.AllArgsConstructor; 26 | import lombok.Builder; 27 | import lombok.Data; 28 | import lombok.NoArgsConstructor; 29 | 30 | @Data 31 | @Builder 32 | @NoArgsConstructor 33 | @AllArgsConstructor 34 | public class MessageVo { 35 | 36 | private String content; 37 | 38 | private String time; 39 | } 40 | -------------------------------------------------------------------------------- /iot-module/iot-manager/src/main/java/cc/iotkit/manager/model/vo/SpaceInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.manager.model.vo; 24 | 25 | import lombok.AllArgsConstructor; 26 | import lombok.Data; 27 | import lombok.NoArgsConstructor; 28 | 29 | @Data 30 | @NoArgsConstructor 31 | @AllArgsConstructor 32 | public class SpaceInfo { 33 | 34 | private String address; 35 | 36 | private String userId; 37 | 38 | } 39 | -------------------------------------------------------------------------------- /iot-module/iot-manager/src/main/java/cc/iotkit/manager/service/ISpaceService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.manager.service; 25 | 26 | import cc.iotkit.model.space.Space; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * @Author:tfd 32 | * @Date:2023/8/25 10:22 33 | */ 34 | public interface ISpaceService { 35 | 36 | Space save(Space space); 37 | 38 | List findByHomeId(Long homeId); 39 | 40 | Space findById(Long id); 41 | 42 | void deleteById(Long id); 43 | } 44 | -------------------------------------------------------------------------------- /iot-module/iot-message-notify/readme.md: -------------------------------------------------------------------------------- 1 | ### 支持rocketMq作为消息总线 2 | 3 | 版本:0.4.2 4 | 5 | rocketMq版本:4.9.4 6 | 7 | ####开启方式: 8 | 9 | 1、application.yml中打开注释支持rocketMq作为消息总线 10 | 11 | 2、pom.xml中打开注释使用rocketmq消息总线 12 | -------------------------------------------------------------------------------- /iot-module/iot-message-notify/src/main/java/cc/iotkit/message/config/VertxManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.message.config; 24 | 25 | import io.vertx.core.Vertx; 26 | 27 | public enum VertxManager { 28 | INSTANCE; 29 | public Vertx getVertx() { 30 | return Vertx.vertx(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /iot-module/iot-message-notify/src/main/java/cc/iotkit/message/enums/ChannelEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.message.enums; 25 | 26 | /** 27 | * author: 石恒 28 | * date: 2023-05-11 15:01 29 | * description: 30 | **/ 31 | public enum ChannelEnum { 32 | DingTalk, 33 | QyWechat, 34 | Email, 35 | Phone; 36 | } 37 | -------------------------------------------------------------------------------- /iot-module/iot-message-notify/src/main/java/cc/iotkit/message/listener/MessageEventListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.message.listener; 25 | 26 | import cc.iotkit.message.event.MessageEvent; 27 | 28 | /** 29 | * author: 石恒 30 | * date: 2023-05-08 15:08 31 | * description: 32 | **/ 33 | public interface MessageEventListener { 34 | 35 | void doEvent(MessageEvent event); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /iot-module/iot-message-notify/src/main/java/cc/iotkit/message/model/DingTalkConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.message.model; 25 | 26 | import lombok.Data; 27 | 28 | import java.io.Serializable; 29 | 30 | /** 31 | * @author sjg 32 | */ 33 | @Data 34 | public class DingTalkConfig implements Serializable { 35 | private String dingTalkWebhook; 36 | } 37 | -------------------------------------------------------------------------------- /iot-module/iot-message-notify/src/main/java/cc/iotkit/message/model/EmailMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.message.model; 25 | 26 | import lombok.Data; 27 | 28 | import java.io.Serializable; 29 | 30 | /** 31 | * author: 石恒 32 | * date: 2023-05-08 15:58 33 | * description: 34 | **/ 35 | @Data 36 | public class EmailMessage implements Serializable { 37 | } 38 | -------------------------------------------------------------------------------- /iot-module/iot-message-notify/src/main/java/cc/iotkit/message/model/QyWechatConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.message.model; 25 | 26 | import lombok.Data; 27 | 28 | import java.io.Serializable; 29 | 30 | /** 31 | * @author sjg 32 | */ 33 | @Data 34 | public class QyWechatConfig implements Serializable { 35 | private String qyWechatWebhook; 36 | } 37 | -------------------------------------------------------------------------------- /iot-module/iot-modbus/src/main/java/cc/iotkit/modbus/dao/ModbusInfoRepository.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.modbus.dao; 2 | 3 | import cc.iotkit.modbus.model.TbModbusInfo; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | /** 7 | * @Description: ModbusInfoRepository 8 | * @Author: ZOUZDC 9 | * @Date: 2024/4/29 0:11 10 | */ 11 | public interface ModbusInfoRepository extends JpaRepository { 12 | 13 | 14 | TbModbusInfo findByProductKey(String productKey); 15 | } 16 | -------------------------------------------------------------------------------- /iot-module/iot-modbus/src/main/java/cc/iotkit/modbus/dao/ModbusThingModelRepository.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.modbus.dao; 2 | 3 | import cc.iotkit.modbus.model.TbModbusThingModel; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | /** 7 | * @Description: ModbusInfoRepository 8 | * @Author: ZOUZDC 9 | * @Date: 2024/4/29 0:11 10 | */ 11 | public interface ModbusThingModelRepository extends JpaRepository { 12 | 13 | TbModbusThingModel findByProductKey(String productKey); 14 | } 15 | -------------------------------------------------------------------------------- /iot-module/iot-modbus/src/main/java/cc/iotkit/modbus/data/IModbusInfoData.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.modbus.data; 2 | 3 | import cc.iotkit.data.ICommonData; 4 | import cc.iotkit.model.modbus.ModbusInfo; 5 | 6 | 7 | /** 8 | * @Description: ModbusInfo数据接口 9 | * @Author: ZOUZDC 10 | * @Date: 2024/4/29 0:10 11 | */ 12 | public interface IModbusInfoData extends ICommonData { 13 | ModbusInfo findByProductKey(String productKey); 14 | } 15 | -------------------------------------------------------------------------------- /iot-module/iot-modbus/src/main/java/cc/iotkit/modbus/data/IModbusThingModelData.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.modbus.data; 2 | 3 | import cc.iotkit.data.ICommonData; 4 | import cc.iotkit.model.modbus.ModbusThingModel; 5 | 6 | 7 | /** 8 | * @Description: ModbusThingModel数据接口 9 | * @Author: ZOUZDC 10 | * @Date: 2024/5/9 23:36 11 | */ 12 | public interface IModbusThingModelData extends ICommonData { 13 | 14 | ModbusThingModel findByProductKey(String productKey); 15 | 16 | ModbusThingModel save(ModbusThingModel thingModel); 17 | } 18 | -------------------------------------------------------------------------------- /iot-module/iot-modbus/src/main/java/cc/iotkit/modbus/dto/bo/modbus/ModbusInfoBo.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.modbus.dto.bo.modbus; 2 | 3 | import cc.iotkit.common.api.BaseDto; 4 | import cc.iotkit.model.modbus.ModbusInfo; 5 | import io.github.linpeilie.annotations.AutoMapper; 6 | import io.swagger.annotations.ApiModel; 7 | import io.swagger.annotations.ApiModelProperty; 8 | import lombok.Data; 9 | import lombok.EqualsAndHashCode; 10 | 11 | 12 | @ApiModel(value = "ModbusInfoBo") 13 | @Data 14 | @EqualsAndHashCode(callSuper = true) 15 | @AutoMapper(target = ModbusInfo.class, reverseConvertGenerate = false) 16 | public class ModbusInfoBo extends BaseDto { 17 | 18 | private static final long serialVersionUID = -1L; 19 | 20 | 21 | @ApiModelProperty(value="id") 22 | private Long id; 23 | 24 | @ApiModelProperty(value="产品名称") 25 | private String name; 26 | 27 | @ApiModelProperty(value="产品Key") 28 | private String productKey; 29 | 30 | @ApiModelProperty(value="说明") 31 | private String remark; 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /iot-module/iot-modbus/src/main/java/cc/iotkit/modbus/dto/bo/modbus/ModbusThingModelBo.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.modbus.dto.bo.modbus; 2 | 3 | import cc.iotkit.common.api.BaseDto; 4 | import cc.iotkit.model.modbus.ModbusThingModel; 5 | import io.github.linpeilie.annotations.AutoMapper; 6 | import io.github.linpeilie.annotations.AutoMapping; 7 | import io.github.linpeilie.annotations.ReverseAutoMapping; 8 | import io.swagger.annotations.ApiModel; 9 | import io.swagger.annotations.ApiModelProperty; 10 | import org.hibernate.validator.constraints.NotBlank; 11 | import javax.validation.constraints.Size; 12 | import lombok.Data; 13 | import lombok.EqualsAndHashCode; 14 | 15 | 16 | @ApiModel(value = "ModbusThingModelBo") 17 | @Data 18 | @EqualsAndHashCode(callSuper = true) 19 | @AutoMapper(target = ModbusThingModel.class, reverseConvertGenerate = false) 20 | public class ModbusThingModelBo extends BaseDto { 21 | private static final long serialVersionUID = -1L; 22 | 23 | @ApiModelProperty(value = "模型内容") 24 | @Size(max = 65535, message = "模型内容长度不正确") 25 | @AutoMapping(ignore = true) 26 | @ReverseAutoMapping(ignore = true) 27 | private String model; 28 | 29 | @NotBlank(message="产品Key不能为空") 30 | @ApiModelProperty(value = "产品key") 31 | @Size(min = 16, max = 16, message = "产品key长度不正确") 32 | private String productKey; 33 | 34 | } 35 | -------------------------------------------------------------------------------- /iot-module/iot-modbus/src/main/java/cc/iotkit/modbus/dto/vo/modbus/ModbusInfoVo.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.modbus.dto.vo.modbus; 2 | 3 | import cc.iotkit.model.modbus.ModbusInfo; 4 | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; 5 | import com.alibaba.excel.annotation.ExcelProperty; 6 | import io.github.linpeilie.annotations.AutoMapper; 7 | import io.swagger.annotations.ApiModel; 8 | import io.swagger.annotations.ApiModelProperty; 9 | import lombok.Data; 10 | 11 | import java.io.Serializable; 12 | 13 | 14 | @ApiModel(value = "ModbusInfoVo") 15 | @Data 16 | @ExcelIgnoreUnannotated 17 | @AutoMapper(target = ModbusInfo.class) 18 | public class ModbusInfoVo implements Serializable { 19 | 20 | private static final long serialVersionUID = -1L; 21 | 22 | 23 | @ApiModelProperty(value="id") 24 | private Long id; 25 | 26 | 27 | @ApiModelProperty(value="产品名称") 28 | @ExcelProperty(value = "产品名称") 29 | private String name; 30 | 31 | 32 | @ApiModelProperty(value="产品Key") 33 | @ExcelProperty(value = "产品Key") 34 | private String productKey; 35 | 36 | 37 | @ApiModelProperty(value="说明") 38 | @ExcelProperty(value = "说明") 39 | private String remark; 40 | 41 | @ApiModelProperty(value="创建时间") 42 | @ExcelProperty(value = "创建时间") 43 | private Long createAt; 44 | 45 | 46 | @ApiModelProperty(value="修改时间") 47 | @ExcelProperty(value = "修改时间") 48 | private Long updateAt; 49 | } 50 | -------------------------------------------------------------------------------- /iot-module/iot-modbus/src/main/java/cc/iotkit/modbus/dto/vo/modbus/ModbusThingModelVo.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.modbus.dto.vo.modbus; 2 | 3 | import cc.iotkit.model.modbus.ModbusThingModel; 4 | import io.github.linpeilie.annotations.AutoMapper; 5 | import io.swagger.annotations.ApiModel; 6 | import io.swagger.annotations.ApiModelProperty; 7 | import lombok.Data; 8 | 9 | import java.io.Serializable; 10 | 11 | 12 | @ApiModel(value = "ModbusThingModelVo") 13 | @Data 14 | @AutoMapper(target = ModbusThingModel.class) 15 | public class ModbusThingModelVo implements Serializable { 16 | private static final long serialVersionUID = -1L; 17 | 18 | @ApiModelProperty(value = "主键") 19 | private String id; 20 | 21 | @ApiModelProperty(value = "模型内容") 22 | private ModbusThingModel.Model model; 23 | 24 | @ApiModelProperty(value = "产品key") 25 | private String productKey; 26 | 27 | @ApiModelProperty(value = "更新时间") 28 | private Long updateAt; 29 | } 30 | -------------------------------------------------------------------------------- /iot-module/iot-modbus/src/main/java/cc/iotkit/modbus/service/IModbusInfoService.java: -------------------------------------------------------------------------------- 1 | package cc.iotkit.modbus.service; 2 | 3 | import cc.iotkit.common.api.PageRequest; 4 | import cc.iotkit.common.api.Paging; 5 | import cc.iotkit.modbus.dto.bo.modbus.ModbusInfoBo; 6 | import cc.iotkit.modbus.dto.bo.modbus.ModbusThingModelBo; 7 | import cc.iotkit.modbus.dto.vo.modbus.ModbusInfoVo; 8 | import cc.iotkit.modbus.dto.vo.modbus.ModbusThingModelVo; 9 | import org.springframework.web.multipart.MultipartFile; 10 | 11 | /** 12 | * @Description: Modbus模版管理 13 | * @Author: ZOUZDC 14 | * @Date: 2024/4/29 0:11 15 | */ 16 | public interface IModbusInfoService { 17 | Paging selectPageList(PageRequest request); 18 | 19 | ModbusInfoVo addEntity(ModbusInfoBo data); 20 | 21 | boolean updateEntity(ModbusInfoBo data); 22 | 23 | ModbusInfoVo getDetail(Long data); 24 | 25 | boolean deleteModbus(Long data); 26 | 27 | ModbusThingModelVo getThingModelByProductKey(String data); 28 | 29 | boolean saveThingModel(ModbusThingModelBo data); 30 | 31 | boolean syncToProduct(ModbusThingModelBo data); 32 | 33 | String importData(MultipartFile file, String productKey); 34 | } 35 | -------------------------------------------------------------------------------- /iot-module/iot-openapi/src/main/java/cc/iotkit/openapi/service/OpenBaseService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.openapi.service; 25 | 26 | import cc.iotkit.openapi.dto.bo.TokenVerifyBo; 27 | 28 | /** 29 | * @Author: dsy 30 | * @Date: 2023/7/24 11:30 31 | * @Version: V1.0 32 | * @Description: openapi基础服务接口 33 | */ 34 | public interface OpenBaseService { 35 | 36 | String getToken(TokenVerifyBo bo); 37 | } 38 | -------------------------------------------------------------------------------- /iot-module/iot-plugin/iot-plugin-main/src/main/java/cc/iotkit/plugin/main/PluginRouter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.plugin.main; 25 | 26 | import lombok.AllArgsConstructor; 27 | import lombok.Data; 28 | import lombok.NoArgsConstructor; 29 | 30 | /** 31 | * 插件路由 32 | * 33 | * @author sjg 34 | */ 35 | @Data 36 | @NoArgsConstructor 37 | @AllArgsConstructor 38 | public class PluginRouter { 39 | 40 | private String mainId; 41 | 42 | private String pluginId; 43 | 44 | } 45 | -------------------------------------------------------------------------------- /iot-module/iot-plugin/iot-plugin-main/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | # 插件配置 2 | plugin: 3 | # 独立部署模式 4 | standalone: false 5 | ip: localhost 6 | runMode: prod 7 | mainPackage: cc.iotkit 8 | # 如果配置是 windows 下路径, mac、linux 自行修改 9 | pluginPath: 10 | - ./data/plugins -------------------------------------------------------------------------------- /iot-module/iot-plugin/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | iot-module 7 | cc.iotkit 8 | 0.5.3 9 | 10 | 4.0.0 11 | 12 | iot-plugin 13 | pom 14 | 15 | 16 | iot-plugin-main 17 | 18 | 19 | -------------------------------------------------------------------------------- /iot-module/iot-rule-engine/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/iot-module/iot-rule-engine/.DS_Store -------------------------------------------------------------------------------- /iot-module/iot-rule-engine/src/main/java/cc/iotkit/ruleengine/action/Action.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.ruleengine.action; 24 | 25 | 26 | import cc.iotkit.common.thing.ThingModelMessage; 27 | 28 | import java.util.List; 29 | 30 | public interface Action { 31 | 32 | String getType(); 33 | 34 | List getServices(); 35 | 36 | /** 37 | * 执行动作返回执行动作内容 38 | */ 39 | List execute(ThingModelMessage msg); 40 | } 41 | -------------------------------------------------------------------------------- /iot-module/iot-rule-engine/src/main/java/cc/iotkit/ruleengine/alert/Alerter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.ruleengine.alert; 24 | 25 | import java.util.Map; 26 | 27 | /** 28 | * 报警器 29 | */ 30 | public interface Alerter { 31 | 32 | void setConfig(String config); 33 | 34 | void setTemplate(String template); 35 | 36 | String send(Map data); 37 | 38 | } 39 | -------------------------------------------------------------------------------- /iot-module/iot-rule-engine/src/main/java/cc/iotkit/ruleengine/filter/Filter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.ruleengine.filter; 24 | 25 | import cc.iotkit.common.thing.ThingModelMessage; 26 | 27 | import java.util.List; 28 | 29 | /** 30 | * 场景过滤器 31 | */ 32 | public interface Filter { 33 | 34 | String getType(); 35 | 36 | List getConditions(); 37 | 38 | void init(); 39 | 40 | boolean execute(ThingModelMessage msg); 41 | } 42 | -------------------------------------------------------------------------------- /iot-module/iot-rule-engine/src/main/java/cc/iotkit/ruleengine/handler/DeviceMessageHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.ruleengine.handler; 25 | 26 | 27 | import cc.iotkit.common.thing.ThingModelMessage; 28 | 29 | public interface DeviceMessageHandler { 30 | 31 | void handle(ThingModelMessage message); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /iot-module/iot-rule-engine/src/main/java/cc/iotkit/ruleengine/listener/Listener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.ruleengine.listener; 24 | 25 | import cc.iotkit.common.thing.ThingModelMessage; 26 | 27 | import java.util.List; 28 | 29 | public interface Listener { 30 | 31 | String getType(); 32 | 33 | List getConditions(); 34 | 35 | boolean execute(ThingModelMessage msg); 36 | } 37 | -------------------------------------------------------------------------------- /iot-module/iot-rule-engine/src/main/java/cc/iotkit/ruleengine/task/ActionExecutor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | package cc.iotkit.ruleengine.task; 24 | 25 | /** 26 | * 动作执行器接口 27 | */ 28 | public interface ActionExecutor { 29 | 30 | /** 31 | * 动作名 32 | */ 33 | String getName(); 34 | 35 | /** 36 | * 执行动作 37 | */ 38 | void execute(String data); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /iot-module/iot-rule-engine/src/main/resources/script.js: -------------------------------------------------------------------------------- 1 | this.gt=function(a,b){ 2 | return a>b; 3 | } 4 | 5 | this.ge=function(a,b){ 6 | return a>=b; 7 | } 8 | 9 | this.eq=function(a,b){ 10 | return a==b; 11 | } 12 | 13 | this.lt=function(a,b){ 14 | return a 2 | 5 | 6 | iotkit-parent 7 | cc.iotkit 8 | 0.5.3 9 | 10 | 4.0.0 11 | 12 | iot-module 13 | pom 14 | 15 | iot-system 16 | iot-rule-engine 17 | iot-message-notify 18 | 19 | iot-openapi 20 | iot-plugin 21 | iot-manager 22 | iot-modbus 23 | iot-generator 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /iot-starter/readme.md: -------------------------------------------------------------------------------- 1 | 程序入口模块,引用集成了其它所有模块的功能,并提供web api接口和实现。 2 | 3 | ### 2023-05-05 添加swagger支持 4 | 访问地址:http://localhost:8086/swagger-ui/index.html 5 | 访问地址:http://localhost:8086/doc.html -------------------------------------------------------------------------------- /iot-starter/src/main/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/iot-starter/src/main/.DS_Store -------------------------------------------------------------------------------- /iot-starter/src/main/bin/clear_data.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # linux系统 清除数据脚本 4 | 5 | # bin目录绝对路径 6 | BIN_DIR=`pwd` 7 | 8 | # 返回到上一级项目根目录路径 9 | cd .. 10 | # 打印项目根目录绝对路径 11 | 12 | # `pwd` 执行系统命令并获得结果 13 | DEPLOY_DIR=`pwd` 14 | 15 | # 清除.init文件,清除es数据库,h2数据库 16 | # 清除后,项目启动时数控库会重新初始化 17 | 18 | rm -rf .init $DEPLOY_DIR/data/elasticsearch $DEPLOY_DIR/data/iotkit.mv.db 19 | 20 | 21 | # TODO:根据数据库类型,清除数据库 22 | # mysql -------------------------------------------------------------------------------- /iot-starter/src/main/bin/start.bat: -------------------------------------------------------------------------------- 1 | echo off 2 | 3 | set APP_NAME=${project.build.finalName}.jar 4 | set LOG_IMPL_FILE=log4j2.xml 5 | set LOGGING_CONFIG= 6 | if exist ../config/%LOG_IMPL_FILE% ( 7 | set LOGGING_CONFIG=-Dlogging.config=../config/%LOGGING_CONFIG% 8 | ) 9 | set CONFIG= -Dlogging.path=../log %LOGGING_CONFIG% -Dspring.config.location=../config/ 10 | 11 | set DEBUG_OPTS= 12 | if ""%1"" == ""debug"" ( 13 | set DEBUG_OPTS= -Xloggc:../log/gc.log -verbose:gc -XX:+PrintGCDetails -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../log 14 | goto debug 15 | ) 16 | 17 | set JMX_OPTS= 18 | if ""%1"" == ""jmx"" ( 19 | set JMX_OPTS= -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9888 -Dcom.sun.management.jmxremote.ssl=FALSE -Dcom.sun.management.jmxremote.authenticate=FALSE 20 | goto jmx 21 | ) 22 | 23 | echo "Starting the %APP_NAME%" 24 | java -Xms512m -Xmx512m -server %DEBUG_OPTS% %JMX_OPTS% %CONFIG% -jar ../lib/%APP_NAME% 25 | echo "java -Xms512m -Xmx512m -server %DEBUG_OPTS% %JMX_OPTS% %CONFIG% -jar ../lib/%APP_NAME%" 26 | goto end 27 | 28 | :debug 29 | echo "debug" 30 | java -Xms512m -Xmx512m -server %DEBUG_OPTS% %CONFIG% -jar ../lib/%APP_NAME% 31 | goto end 32 | 33 | :jmx 34 | java -Xms512m -Xmx512m -server %JMX_OPTS% %CONFIG% -jar ../lib/%APP_NAME% 35 | goto end 36 | 37 | :end 38 | pause -------------------------------------------------------------------------------- /iot-starter/src/main/bin/stop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 项目名称 4 | APPLICATION="${project.artifactId}" 5 | 6 | # 项目启动jar包名称 7 | APPLICATION_JAR="${project.build.finalName}.jar" 8 | 9 | # 通过项目名称查找到PI,然后kill -9 pid 10 | PID=$(ps -ef | grep "${APPLICATION_JAR}" | grep -v grep | awk '{ print $2 }') 11 | if [[ -z "$PID" ]] 12 | then 13 | echo ${APPLICATION} is already stopped 14 | else 15 | echo kill ${PID} 16 | kill -9 ${PID} 17 | echo ${APPLICATION} stopped successfully 18 | fi -------------------------------------------------------------------------------- /iot-starter/src/main/java/cc/iotkit/web/domain/vo/CaptchaVo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.web.domain.vo; 25 | 26 | import lombok.Data; 27 | 28 | /** 29 | * 验证码信息 30 | * 31 | * @author Michelle.Chung 32 | */ 33 | @Data 34 | public class CaptchaVo { 35 | 36 | /** 37 | * 是否开启验证码 38 | */ 39 | private Boolean captchaEnabled = true; 40 | 41 | private String uuid; 42 | 43 | /** 44 | * 验证码图片 45 | */ 46 | private String img; 47 | 48 | } 49 | -------------------------------------------------------------------------------- /iot-starter/src/main/java/cc/iotkit/web/domain/vo/LoginTenantVo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.web.domain.vo; 25 | 26 | import lombok.Data; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * 登录租户对象 32 | * 33 | * @author Michelle.Chung 34 | */ 35 | @Data 36 | public class LoginTenantVo { 37 | 38 | /** 39 | * 租户开关 40 | */ 41 | private Boolean tenantEnabled; 42 | 43 | /** 44 | * 租户对象列表 45 | */ 46 | private List voList; 47 | 48 | } 49 | -------------------------------------------------------------------------------- /iot-starter/src/main/java/cc/iotkit/web/domain/vo/LoginVo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * * | Licensed 未经许可不能去掉「OPENIITA」相关版权 4 | * * +---------------------------------------------------------------------- 5 | * * | Author: xw2sy@163.com 6 | * * +---------------------------------------------------------------------- 7 | * 8 | * Copyright [2024] [OPENIITA] 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | * / 22 | */ 23 | 24 | package cc.iotkit.web.domain.vo; 25 | 26 | import lombok.Data; 27 | 28 | /** 29 | * 登录验证信息 30 | * 31 | * @author Michelle.Chung 32 | */ 33 | @Data 34 | public class LoginVo { 35 | 36 | private String token; 37 | 38 | } 39 | -------------------------------------------------------------------------------- /iot-starter/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | profiles: 3 | # active: dev,generator # 使用application-dev.yml和代码生成器模块application-generator.yml配置 4 | active: dev # 使用application-dev.yml 配置 5 | # active: prd # 使用application-prd.yml 配置 6 | # active: test # 使用application-test.yml 配置 7 | 8 | 9 | -------------------------------------------------------------------------------- /iot-starter/src/main/resources/ip2region.xdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIita/iot-iita/4a37cad922a708ac6f8bed1e66786bdd98407eb8/iot-starter/src/main/resources/ip2region.xdb -------------------------------------------------------------------------------- /iot-test-tool/iot-virtual-device/src/main/resources/spring.factories: -------------------------------------------------------------------------------- 1 | org.springframework.boot.autoconfigure.EnableAutoConfiguration=cc.iotkit.virtualdevice.config.VirtualConfig 2 | -------------------------------------------------------------------------------- /iot-test-tool/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | iotkit-parent 7 | cc.iotkit 8 | 0.5.3 9 | 10 | 4.0.0 11 | pom 12 | 13 | 提供用于测试的相关工具的模块 14 | 15 | 16 | 17 | iot-virtual-device 18 | 19 | 20 | iot-test-tool 21 | 22 | -------------------------------------------------------------------------------- /待优化项.md: -------------------------------------------------------------------------------- 1 | # 1.**后端待优化项** 2 | 3 | ## **主键** 4 | 统一主键名称id,属性Long 5 | 6 | ## **sonerlint扫描** 7 | sonerlint扫描,按建议修改相关不规范的代码 8 | 9 | ## **接口路径** 10 | 尽量不用路径参数、且路径直接放在接口上,不放在常量里 11 | 12 | ## **冗余方法、类** 13 | 删除掉不用的冗余方法、类 14 | 15 | ## **日志** 16 | sql 日志打印的话加个拦截器,简化sql 17 | 增加requestid 基于MDC--已完成 18 | 19 | ## **数据权限** 20 | 将原有的checkOwner做成通用的、文档 21 | 22 | ## **规则引擎-定时任务** 23 | 延时执行添加指定具体某一天时间 24 | 25 | ## **产品** 26 | 产品分类 27 | 修改产品图片未生效 28 | 29 | ## **消息中心** 30 | 模板内容中把标题拆出来,也支持模板替换 31 | 32 | ## **消费消息 设备** 33 | 单条插入变批量插入 设置限制、超时 34 | 35 | ## **告警中心** 36 | 告警频次 37 | 38 | ## **[iot-manager](iot-module%2Fiot-manager)** 39 | 统一service接口层 接口+impl 40 | 41 | ## **[iot-component-oss](iot-components%2Fiot-component-oss)** 42 | 新增本地文件存储方式 43 | 44 | ## **[iot-components](iot-components)** 45 | 抽离仓库 46 | 47 | ## **项目规范完善** 48 | 49 | ## **文件上传的 requesid字段添加** 50 | 51 | ## **初始化公用SystemApplicationRunner SysOssConfigServiceImpl統一** 52 | 53 | ## **緩存注解統一** 54 | 55 | ## **首頁缺少接口** 56 | 57 | ## **产品导出接口** 58 | 59 | ## **数据库字段名称** 60 | 统一创建时间、更新时间、创建人、更新人、删除标识、删除时间、删除人 61 | 62 | ## **通讯组件** 63 | 统一上传接口,组件jar上传requestId封装,本地上传实现,文件上传类型配置修改 64 | 65 | ## **代码生成器** 66 | 前端代码生成器完善 67 | 68 | ## **多租户** 69 | 目前只是几个表增加了租户支持 70 | MQ、redis之类的也需要多租户支持 71 | 72 | # 2.待开发 73 | 74 | | 功能 | 模块 | 说明 | 75 | |---------| --- |----------| 76 | | 视频流管理 | | | 77 | | 智能边缘端管理 | | | 78 | 79 | -------------------------------------------------------------------------------- /项目规范.md: -------------------------------------------------------------------------------- 1 | # **项目规范** 2 | 3 | ## **接口** 4 | 请求类型统一为POST,路径大致为模块归类/动作+资源,请求参数所有均封装下Request,超过一个参数必须封装成Bo对象 5 | 6 | ## **数据库** 7 | 8 | 9 | ## **service** 10 | 11 | 12 | ## **前端** 13 | esLint 安装 --------------------------------------------------------------------------------