29 lines
904 B
Java
29 lines
904 B
Java
package quant.rich.emoney.controller.config;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import quant.rich.emoney.controller.common.BaseController;
|
|
import quant.rich.emoney.entity.config.ProxyConfig;
|
|
import quant.rich.emoney.pojo.dto.R;
|
|
|
|
@Slf4j
|
|
@Controller
|
|
@RequestMapping("/admin/v1/config/proxy")
|
|
public class ProxyConfigControllerV1 extends BaseController {
|
|
|
|
@Autowired
|
|
ProxyConfig proxyConfig;
|
|
|
|
|
|
@GetMapping("/refreshIpThroughProxy")
|
|
@ResponseBody
|
|
public R<?> refreshIpThroughProxy() {
|
|
return R.ok(proxyConfig.refreshIpThroughProxy());
|
|
}
|
|
}
|