30 lines
809 B
Java
30 lines
809 B
Java
package com.yyh.controller;
|
|
|
|
import com.yyh.common.domain.Result;
|
|
import com.yyh.service.GatewayLoadService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
/**
|
|
* @ClassName GatewayController
|
|
* @Description 网关控制层
|
|
* @Author YuanYongH
|
|
* @Date 2024/4/18 19:59
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/gateway")
|
|
public class GatewayController {
|
|
|
|
@Autowired
|
|
private GatewayLoadService gatewayLoadService;
|
|
|
|
|
|
@GetMapping("/load/node")
|
|
public Result<String> loadNode(){
|
|
return Result.success(gatewayLoadService.loadNode());
|
|
}
|
|
}
|