mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-29 07:56:37 +08:00
优化ui 添加诊断功能
This commit is contained in:
@@ -138,4 +138,17 @@ public class TunnelController extends BaseController {
|
||||
return tunnelService.userTunnel();
|
||||
}
|
||||
|
||||
/**
|
||||
* 隧道诊断功能
|
||||
* @param params 包含tunnelId的参数
|
||||
* @return 诊断结果
|
||||
*/
|
||||
@LogAnnotation
|
||||
@RequireRole
|
||||
@PostMapping("/diagnose")
|
||||
public R diagnoseTunnel(@RequestBody Map<String, Object> params) {
|
||||
Long tunnelId = Long.valueOf(params.get("tunnelId").toString());
|
||||
return tunnelService.diagnoseTunnel(tunnelId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user