查询project
This commit is contained in:
parent
2ededed640
commit
09a5c11ab0
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue