查询project
This commit is contained in:
parent
2ededed640
commit
09a5c11ab0
|
@ -23,8 +23,10 @@ public class ProjectController {
|
||||||
|
|
||||||
@GetMapping("/listAll")
|
@GetMapping("/listAll")
|
||||||
public List<Project> listAll() {
|
public List<Project> listAll() {
|
||||||
// todo: 限制workspace和org
|
String currentWorkspaceId = SessionUtils.getCurrentWorkspaceId();
|
||||||
return projectService.listAll();
|
ProjectRequest request = new ProjectRequest();
|
||||||
|
request.setWorkspaceId(currentWorkspaceId);
|
||||||
|
return projectService.getProjectList(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
|
|
Loading…
Reference in New Issue