|
|
@@ -2,6 +2,7 @@ package com.zhongshu.iot.server.core.service.iotPlatform.impl;
|
|
|
|
|
|
import com.github.microservice.net.ResultContent;
|
|
|
import com.zhongshu.iot.server.core.domain.ExecuteAnnotationService;
|
|
|
+import com.zhongshu.iot.server.core.domain.ExecuteAnnotationServiceMethod;
|
|
|
import com.zhongshu.iot.server.core.service.iotPlatform.PlatformTopic;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
@@ -20,6 +21,7 @@ public class UnLineTopic implements PlatformTopic {
|
|
|
return "/platform/%s/offline";
|
|
|
}
|
|
|
|
|
|
+ @ExecuteAnnotationServiceMethod(value = "offline", remark = "下线")
|
|
|
@Override
|
|
|
public ResultContent<Object> action(String topic, String message) {
|
|
|
return ResultContent.buildSuccess();
|