1
This commit is contained in:
1 parent
cf9c801b93
commit
f0b438eb6c
8 files changed
+158
-89
No files matched your search
@@ -0,0 +1,26 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.system.service.IDmPlayerTaskGroupService;
|
||||
import com.ruoyi.system.service.IDmPlayerentService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
//
|
||||
@RestController
|
||||
@RequestMapping("/system/global")
|
||||
public class GlobalController {
|
||||
@Autowired
|
||||
private IDmPlayerentService dmPlayerentService;
|
||||
@Autowired
|
||||
private IDmPlayerTaskGroupService dmPlayerTaskGroupService;
|
||||
|
||||
@GetMapping(value = "/close-http-client")
|
||||
public AjaxResult closeHttpClient() {
|
||||
dmPlayerentService.closeHttpClient();
|
||||
dmPlayerTaskGroupService.closeHttpClient();
|
||||
return AjaxResult.success(true);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user