|
@@ -7,6 +7,7 @@ import com.jpsoft.smart.modules.common.dto.MessageResult;
|
|
import com.jpsoft.smart.modules.common.dto.Sort;
|
|
import com.jpsoft.smart.modules.common.dto.Sort;
|
|
import com.jpsoft.smart.modules.common.utils.PojoUtils;
|
|
import com.jpsoft.smart.modules.common.utils.PojoUtils;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -23,6 +24,15 @@ public class AlarmInfoController {
|
|
@Autowired
|
|
@Autowired
|
|
private AlarmInfoService alarmInfoService;
|
|
private AlarmInfoService alarmInfoService;
|
|
|
|
|
|
|
|
+ @PostMapping("alarmNotify")
|
|
|
|
+ public MessageResult<String> alarmNotify(String message){
|
|
|
|
+ MessageResult<String> msgResult = new MessageResult<>();
|
|
|
|
+
|
|
|
|
+ logger.info(message);
|
|
|
|
+
|
|
|
|
+ return msgResult;
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiOperation(value="创建空记录")
|
|
@ApiOperation(value="创建空记录")
|
|
@GetMapping("create")
|
|
@GetMapping("create")
|
|
public MessageResult<AlarmInfo> create(){
|
|
public MessageResult<AlarmInfo> create(){
|