|
|
@@ -6,16 +6,9 @@ import org.hswebframework.web.authorization.events.AuthorizingHandleBeforeEvent;
|
|
|
import org.hswebframework.web.crud.annotation.EnableEasyormRepository;
|
|
|
import org.hswebframework.web.logging.aop.EnableAccessLogger;
|
|
|
import org.hswebframework.web.logging.events.AccessLoggerAfterEvent;
|
|
|
-import org.jetlinks.community.support.message.TimeSyncMessage;
|
|
|
-import org.jetlinks.community.standalone.utils.EnumsUtils;
|
|
|
-import org.jetlinks.community.support.message.TimeSyncReplyMessage;
|
|
|
-import org.jetlinks.core.message.MessageType;
|
|
|
-import org.jetlinks.core.message.firmware.UpgradeFirmwareMessageReply;
|
|
|
-import org.jetlinks.core.message.firmware.UpgradeFirmwareProgressMessage;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.cache.annotation.EnableCaching;
|
|
|
-import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Profile;
|
|
|
import org.springframework.context.event.EventListener;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
@@ -64,28 +57,6 @@ public class JetLinksApplication {
|
|
|
log.info("{}=>{} {}-{}", event.getLogger().getIp(), event.getLogger().getUrl(), event.getLogger().getDescribe(), event.getLogger().getAction());
|
|
|
|
|
|
}
|
|
|
-
|
|
|
- @Bean
|
|
|
- public Class<Void> enumsExtend(){
|
|
|
- //添加时间同步主题
|
|
|
- EnumsUtils.addEnum(MessageType.class,"timeSync", new Class<?>[]{Supplier.class},new Object[]{new Supplier<TimeSyncMessage>() {
|
|
|
-
|
|
|
- @Override
|
|
|
- public TimeSyncMessage get() {
|
|
|
- return new TimeSyncMessage();
|
|
|
- }
|
|
|
- }});
|
|
|
-
|
|
|
- //添加时间回复主题
|
|
|
- EnumsUtils.addEnum(MessageType.class,"timeSyncReply", new Class<?>[]{Supplier.class},new Object[]{new Supplier<TimeSyncReplyMessage>() {
|
|
|
- @Override
|
|
|
- public TimeSyncReplyMessage get() {
|
|
|
- return new TimeSyncReplyMessage();
|
|
|
- }
|
|
|
- }});
|
|
|
-
|
|
|
- return Void.TYPE;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
|