|
@@ -20,6 +20,9 @@ import cc.iotkit.model.device.DeviceGroup;
|
|
import cc.iotkit.model.device.DeviceInfo;
|
|
import cc.iotkit.model.device.DeviceInfo;
|
|
import cc.iotkit.model.device.VirtualDevice;
|
|
import cc.iotkit.model.device.VirtualDevice;
|
|
import cc.iotkit.model.notify.Channel;
|
|
import cc.iotkit.model.notify.Channel;
|
|
|
|
+import cc.iotkit.model.notify.ChannelConfig;
|
|
|
|
+import cc.iotkit.model.notify.ChannelTemplate;
|
|
|
|
+import cc.iotkit.model.notify.NotifyMessage;
|
|
import cc.iotkit.model.product.Category;
|
|
import cc.iotkit.model.product.Category;
|
|
import cc.iotkit.model.product.Product;
|
|
import cc.iotkit.model.product.Product;
|
|
import cc.iotkit.model.product.ProductModel;
|
|
import cc.iotkit.model.product.ProductModel;
|
|
@@ -89,14 +92,18 @@ public class ExampleDataInit implements SmartInitializingSingleton {
|
|
private IDbStructureData dbStructureData;
|
|
private IDbStructureData dbStructureData;
|
|
@Autowired
|
|
@Autowired
|
|
private IChannelData iChannelData;
|
|
private IChannelData iChannelData;
|
|
-
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IChannelConfigData iChannelConfigData;
|
|
|
|
+ @Autowired
|
|
|
|
+ private IChannelTemplateData iChannelTemplateData;
|
|
|
|
+ @Autowired
|
|
|
|
+ private INotifyMessageData iNotifyMessageData;
|
|
@Autowired
|
|
@Autowired
|
|
private ISysDeptData sysDeptData;
|
|
private ISysDeptData sysDeptData;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private ISysMenuData sysMenuData;
|
|
private ISysMenuData sysMenuData;
|
|
|
|
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private ISysPostData sysPostData;
|
|
private ISysPostData sysPostData;
|
|
|
|
|
|
@@ -200,6 +207,12 @@ public class ExampleDataInit implements SmartInitializingSingleton {
|
|
});
|
|
});
|
|
initData("channel", iChannelData, new TypeReference<List<Channel>>() {
|
|
initData("channel", iChannelData, new TypeReference<List<Channel>>() {
|
|
});
|
|
});
|
|
|
|
+ initData("channelConfig", iChannelConfigData, new TypeReference<List<ChannelConfig>>() {
|
|
|
|
+ });
|
|
|
|
+ initData("channelTemplate", iChannelTemplateData, new TypeReference<List<ChannelTemplate>>() {
|
|
|
|
+ });
|
|
|
|
+ initData("notifyMessage", iNotifyMessageData, new TypeReference<List<NotifyMessage>>() {
|
|
|
|
+ });
|
|
|
|
|
|
initSysData();
|
|
initSysData();
|
|
|
|
|