diff --git a/src/backend/job/biz-job/src/main/kotlin/com/tencent/bkrepo/job/controller/user/UserSeparationController.kt b/src/backend/job/biz-job/src/main/kotlin/com/tencent/bkrepo/job/controller/user/UserSeparationController.kt index c4529ce06f..e0611f78c8 100644 --- a/src/backend/job/biz-job/src/main/kotlin/com/tencent/bkrepo/job/controller/user/UserSeparationController.kt +++ b/src/backend/job/biz-job/src/main/kotlin/com/tencent/bkrepo/job/controller/user/UserSeparationController.kt @@ -97,23 +97,7 @@ class UserSeparationController( @PathVariable repoName: String, @RequestParam fullPath: String, ): Response { - val nodeInfo = NodeInfo( - projectId = "blueking", - repoName = "111", - fullPath = "/111", - createdBy = "admin", - createdDate = "1", - lastModifiedDate = "2", - lastModifiedBy = "admin", - folder = true, - path = "/111", - name = "111", - size = 1024, - archived = true, - compressed = true - ) - return ResponseBuilder.success(nodeInfo) -// return ResponseBuilder.success(separationDataService.findNodeInfo(projectId, repoName, fullPath)) + return ResponseBuilder.success(separationDataService.findNodeInfo(projectId, repoName, fullPath)) } @ApiOperation("查询冷表中版本信息") @@ -166,33 +150,7 @@ class UserSeparationController( ): Response> { val sDate = convert(separationDate) val nodePage = separationDataService.listNodePage(projectId, repoName, fullPath, nodeListOption, sDate) - val nodeInfo = NodeInfo( - projectId = "blueking", - repoName = "111", - fullPath = "/111", - createdBy = "admin", - createdDate = "1", - lastModifiedDate = "2", - lastModifiedBy = "admin", - folder = true, - path = "/111", - name = "111", - size = 1024, - archived = true, - compressed = true - ) - val repeatedList = mutableListOf() - repeat(20) { - repeatedList.add(nodeInfo) - } - val page = Page( - pageNumber = 1, - pageSize = 20, - totalPages = 1, - totalRecords = 20, - records = repeatedList - ) - return ResponseBuilder.success(page) + return ResponseBuilder.success(nodePage) }