feat(社区版项目管理):#3676 仓库列表、疑修列表接口
This commit is contained in:
parent
987af70ec3
commit
5122204fe8
|
@ -31,8 +31,20 @@ public class PmsForgeApiForwardController {
|
||||||
"sort_direction:排序方向,asc升序或desc降序;\n" +
|
"sort_direction:排序方向,asc升序或desc降序;\n" +
|
||||||
"is_public:是否公开项目,true或false;\n" +
|
"is_public:是否公开项目,true或false;\n" +
|
||||||
"keyword:代码库名称关键字")
|
"keyword:代码库名称关键字")
|
||||||
public AjaxResult listProjects(@PathVariable String enterpriseIdentifier, JSONObject projectSearchInputVo)
|
public AjaxResult listProjects(@PathVariable String enterpriseIdentifier,
|
||||||
{
|
@RequestParam(value = "page", required = false, defaultValue = "1") Integer page,
|
||||||
|
@RequestParam(value = "limit", required = false, defaultValue = "15") Integer limit,
|
||||||
|
@RequestParam(value = "sort_by", required = false) String sortBy,
|
||||||
|
@RequestParam(value = "sort_direction", required = false) String sortDirection,
|
||||||
|
@RequestParam(value = "is_public", required = false) Boolean isPublic,
|
||||||
|
@RequestParam(value = "keyword", required = false) String keyword) {
|
||||||
|
JSONObject projectSearchInputVo = new JSONObject();
|
||||||
|
projectSearchInputVo.put("page", page);
|
||||||
|
projectSearchInputVo.put("limit", limit);
|
||||||
|
projectSearchInputVo.put("sort_by", sortBy);
|
||||||
|
projectSearchInputVo.put("sort_direction", sortDirection);
|
||||||
|
projectSearchInputVo.put("is_public", isPublic);
|
||||||
|
projectSearchInputVo.put("keyword", keyword);
|
||||||
JSONObject result = pmsForgeApiForwardService.selectForgeRepositoryList(enterpriseIdentifier, projectSearchInputVo);
|
JSONObject result = pmsForgeApiForwardService.selectForgeRepositoryList(enterpriseIdentifier, projectSearchInputVo);
|
||||||
return success(result);
|
return success(result);
|
||||||
}
|
}
|
||||||
|
@ -58,7 +70,19 @@ public class PmsForgeApiForwardController {
|
||||||
)
|
)
|
||||||
public AjaxResult listIssues(@ApiParam(name = "repo", value = "仓库标识") @PathVariable String repo,
|
public AjaxResult listIssues(@ApiParam(name = "repo", value = "仓库标识") @PathVariable String repo,
|
||||||
@ApiParam(name = "owner", value = "仓库拥有者") @PathVariable String owner,
|
@ApiParam(name = "owner", value = "仓库拥有者") @PathVariable String owner,
|
||||||
JSONObject issueSearch) {
|
@RequestParam(value = "page", required = false, defaultValue = "1") Integer page,
|
||||||
|
@RequestParam(value = "limit", required = false, defaultValue = "15") Integer limit,
|
||||||
|
@RequestParam(value = "sort_by", required = false) String sortBy,
|
||||||
|
@RequestParam(value = "sort_direction", required = false) String sortDirection,
|
||||||
|
@RequestParam(value = "participant_category", required = false) String participantCategory,
|
||||||
|
@RequestParam(value = "category", required = false) String category) {
|
||||||
|
JSONObject issueSearch = new JSONObject();
|
||||||
|
issueSearch.put("page", page);
|
||||||
|
issueSearch.put("limit", limit);
|
||||||
|
issueSearch.put("sort_by", sortBy);
|
||||||
|
issueSearch.put("sort_direction", sortDirection);
|
||||||
|
issueSearch.put("participant_category", participantCategory);
|
||||||
|
issueSearch.put("category", category);
|
||||||
JSONObject result = pmsForgeApiForwardService.selectForgeIssueList(issueSearch);
|
JSONObject result = pmsForgeApiForwardService.selectForgeIssueList(issueSearch);
|
||||||
return success(result);
|
return success(result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue