查询project

This commit is contained in:
Captain.B 2020-02-20 17:12:22 +08:00
parent 2ededed640
commit 09a5c11ab0
1 changed files with 4 additions and 2 deletions

View File

@ -23,8 +23,10 @@ public class ProjectController {
@GetMapping("/listAll")
public List<Project> listAll() {
// todo: 限制workspace和org
return projectService.listAll();
String currentWorkspaceId = SessionUtils.getCurrentWorkspaceId();
ProjectRequest request = new ProjectRequest();
request.setWorkspaceId(currentWorkspaceId);
return projectService.getProjectList(request);
}
@PostMapping("/add")