Commit cb9753f83b964314f64a42ddb8b416b9e7779c02
1 parent
3ccfbaea
Exists in
master
module heartbeat
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
src/main/java/com/taover/bazhuayun/analysis/web/controller/api/HeartBeatController.java
... | ... | @@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.RestController; |
9 | 9 | |
10 | 10 | import com.taover.bazhuayun.analysis.web.module.heartbeat.HeartbeatManager; |
11 | 11 | import com.taover.util.bean.ResultInfo; |
12 | +import com.taover.util.bean.UtilResultInfo; | |
12 | 13 | |
13 | 14 | @RestController("api.heartbeat") |
14 | 15 | @RequestMapping("/api/heartbeat") |
... | ... | @@ -18,6 +19,11 @@ public class HeartBeatController { |
18 | 19 | |
19 | 20 | @GetMapping |
20 | 21 | public ResultInfo get(HttpServletRequest request) { |
22 | + return UtilResultInfo.getSuccess(""); | |
23 | + } | |
24 | + | |
25 | + @GetMapping("/demon") | |
26 | + public ResultInfo getDemon(HttpServletRequest request) { | |
21 | 27 | return this.heartbeatManager.dealClientRequest(request); |
22 | 28 | } |
23 | 29 | } | ... | ... |