Showing
1 changed file
with
10 additions
and
0 deletions
@@ -15,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired; | @@ -15,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired; | ||
15 | import org.springframework.beans.factory.annotation.Value; | 15 | import org.springframework.beans.factory.annotation.Value; |
16 | import org.springframework.web.bind.annotation.RequestBody; | 16 | import org.springframework.web.bind.annotation.RequestBody; |
17 | import org.springframework.web.bind.annotation.RequestMapping; | 17 | import org.springframework.web.bind.annotation.RequestMapping; |
18 | +import org.springframework.web.bind.annotation.ResponseBody; | ||
18 | import org.springframework.web.bind.annotation.RestController; | 19 | import org.springframework.web.bind.annotation.RestController; |
19 | import org.springframework.web.client.RestTemplate; | 20 | import org.springframework.web.client.RestTemplate; |
20 | 21 | ||
@@ -180,4 +181,13 @@ public class NginxSyncService { | @@ -180,4 +181,13 @@ public class NginxSyncService { | ||
180 | 181 | ||
181 | return logMsgResp; | 182 | return logMsgResp; |
182 | } | 183 | } |
184 | + | ||
185 | + @RequestMapping(value = "/collectNginxAgentLog") | ||
186 | + @ResponseBody | ||
187 | + public BaseResponse collectNginxAgentLog(@RequestBody LogMsg logMsg) { | ||
188 | + BaseResponse baseResponse = new BaseResponse(); | ||
189 | + // 插入日志管理 | ||
190 | + logService.inLogMsg(logMsg); | ||
191 | + return baseResponse; | ||
192 | + } | ||
183 | } | 193 | } |
-
Please register or login to post a comment