mirror of https://gitee.com/stylefeng/roses
【7.2.2】bugfix 微服务汇报资源缺少接口404错误
parent
b7e76fa1ce
commit
f9241328f7
|
@ -28,10 +28,12 @@ import cn.stylefeng.roses.kernel.scanner.api.ResourceReportApi;
|
|||
import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.PostResource;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.pojo.resource.ReportResourceParam;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.pojo.resource.SysResourcePersistencePojo;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 微服务汇报资源接口
|
||||
|
@ -57,4 +59,15 @@ public class ResourceReportController {
|
|||
resourceReportApi.reportResources(reportResourceReq);
|
||||
}
|
||||
|
||||
/**
|
||||
* 接收远程服务资源
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2021/9/25 17:55
|
||||
*/
|
||||
@PostResource(path = "/resourceService/reportResourcesAndGetResult", name = "汇报资源")
|
||||
public List<SysResourcePersistencePojo> reportResourcesAndGetResult(@RequestBody ReportResourceParam reportResourceReq) {
|
||||
return resourceReportApi.reportResourcesAndGetResult(reportResourceReq);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue