37 lines
965 B
Java
37 lines
965 B
Java
package com.lyh.controller;
|
|
|
|
import com.lyh.common.domain.resp.Result;
|
|
import com.lyh.service.LoadCenterService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
/**
|
|
* 负载中心控制层
|
|
*
|
|
* @ProjectName: LoadCenter
|
|
* @Author: LiuYunHu
|
|
* @CreateTime: 2024/4/15
|
|
*/
|
|
|
|
@RestController
|
|
@RequestMapping("/loadCenter")
|
|
public class LoadCenterController {
|
|
@Autowired
|
|
private LoadCenterService loadCenterService;
|
|
|
|
|
|
/**
|
|
* 获取指定的服务器IP
|
|
* @Author: LiuYunHu
|
|
* @Date: 2024/4/15 14:57
|
|
* @Param: []
|
|
* @Return: com.lyh.common.domain.resp.Result<java.lang.String>
|
|
**/
|
|
@PostMapping("/getAssignedServer")
|
|
public Result<String> getAssignedServer() {
|
|
return loadCenterService.getAssignedServer();
|
|
}
|
|
}
|