Skip to content

Commit

Permalink
feat: Proxy支持删除未同步的文件存储 TencentBlueKing#1836
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoxuwan committed Mar 6, 2024
1 parent c8590b2 commit fc0657b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,11 @@ interface ProxyRepositoryClient {
@ApiParam(value = "仓库名称", required = true)
@PathVariable repoName: String
): Response<RepositoryInfo?>

@ApiOperation("查询仓库列表")
@GetMapping("/list/{projectId}")
fun listRepo(
@ApiParam(value = "所属项目", required = true)
@PathVariable projectId: String
): Response<List<RepositoryInfo>>
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ class ProxyRepositoryController(
override fun getRepoInfo(projectId: String, repoName: String): Response<RepositoryInfo?> {
return ResponseBuilder.success(repositoryService.getRepoInfo(projectId, repoName, null))
}

override fun listRepo(projectId: String): Response<List<RepositoryInfo>> {
return ResponseBuilder.success(repositoryService.listRepo(projectId))
}
}

0 comments on commit fc0657b

Please sign in to comment.