|
@@ -0,0 +1,37 @@
|
|
|
+package com.diagbot.web;
|
|
|
+
|
|
|
+import com.diagbot.annotation.SysLogger;
|
|
|
+import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.rabbit.MySender;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Description: 站内信控制层
|
|
|
+ * @author: gaodm
|
|
|
+ * @time: 2018/8/30 10:12
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@Api(value = "日志测试API", tags = { "日志测试API" })
|
|
|
+@RequestMapping("/test")
|
|
|
+@SuppressWarnings("unchecked")
|
|
|
+public class LogTestController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private MySender mySender;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "异步日志测试[by:gaodm]", notes = "异步日志测试")
|
|
|
+ @PostMapping("/logTest")
|
|
|
+ @SysLogger("logTest")
|
|
|
+ public RespDTO<Boolean> logTest(@RequestBody String msg) {
|
|
|
+ mySender.outputCdssLogSend(msg);
|
|
|
+ return RespDTO.onSuc(true);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|