Files
usdt/ruoyi-system/src/main/java/com/ruoyi/system/controller/GlobalController.java
T
2026-08-13 02:26:24 -04:00

27 lines
914 B
Java

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);
}
}