Skip to content

Commit

Permalink
feat: 增加降冷任务配置页面 #2564
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 committed Nov 11, 2024
1 parent b1bc935 commit 1482351
Showing 1 changed file with 2 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,7 @@ class UserSeparationController(
@PathVariable repoName: String,
@RequestParam fullPath: String,
): Response<NodeInfo?> {
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("查询冷表中版本信息")
Expand Down Expand Up @@ -166,33 +150,7 @@ class UserSeparationController(
): Response<Page<NodeInfo>> {
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<NodeInfo>()
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)
}


Expand Down

0 comments on commit 1482351

Please sign in to comment.