feat(社区版项目管理):#3676 转发forge删除疑修接口

This commit is contained in:
wanjia 2025-07-29 14:13:36 +08:00
parent 1ed8d87c80
commit 225b2f3a24
3 changed files with 16 additions and 0 deletions

View File

@ -92,4 +92,12 @@ public class PmsForgeApiForwardController {
return success(result); return success(result);
} }
@DeleteMapping("{owner}/{repo}/issues/{issue_id}")
@ApiOperation("删除疑修")
public AjaxResult deleteIssue(@ApiParam(name = "repo", value = "仓库标识") @PathVariable String repo,
@ApiParam(name = "owner", value = "仓库拥有者") @PathVariable String owner,
@ApiParam(name = "issue_id", value = "疑修id") @PathVariable String issue_id) {
JSONObject result = pmsForgeApiForwardService.deleteForgeIssue(repo, owner, issue_id);
return success(result);
}
} }

View File

@ -47,4 +47,8 @@ public class PmsForgeApiForwardService {
public JSONObject getIssueRelatedEnum(String repo, String owner, String issueUrl, Boolean only_name) { public JSONObject getIssueRelatedEnum(String repo, String owner, String issueUrl, Boolean only_name) {
return gitLinkRequestHelper.doGet(PmsGitLinkRequestUrl.GET_ISSUE_RELATED_ENUM(repo, owner, issueUrl, only_name)); return gitLinkRequestHelper.doGet(PmsGitLinkRequestUrl.GET_ISSUE_RELATED_ENUM(repo, owner, issueUrl, only_name));
} }
public JSONObject deleteForgeIssue(String repo, String owner, String issueId) {
return gitLinkRequestHelper.doDelete(PmsGitLinkRequestUrl.DELETE_ISSUE(repo, owner, issueId));
}
} }

View File

@ -499,4 +499,8 @@ public class PmsGitLinkRequestUrl extends GitLinkRequestUrl {
} }
return getGitLinkRequestUrl(path); return getGitLinkRequestUrl(path);
} }
public static GitLinkRequestUrl DELETE_ISSUE(String repo, String owner, String issueId) {
return getGitLinkRequestUrl(String.format("/api/v1/%s/%s/issues/%s", owner, repo, issueId));
}
} }