【7.2.2】bugfix 微服务汇报资源缺少接口404错误

pull/29/head
fengshuonan 2022-03-28 22:39:26 +08:00
parent b7e76fa1ce
commit f9241328f7
1 changed files with 13 additions and 0 deletions

View File

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