Skip to content

Commit

Permalink
feat: 对framework重签名 TencentBlueKing#4716 增加历史信息
Browse files Browse the repository at this point in the history
  • Loading branch information
royalhuang committed Feb 16, 2022
1 parent fde47af commit 39331db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/backend/ci/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ version.txt
support-files/etc
build.yml
.temp
.codecc
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,19 @@ class ApigwSignResourceV3Impl @Autowired constructor(
page: Int?,
pageSize: Int?
): Result<Page<SignHistory>> {
logger.info("get the sign task list by user($userId)")
logger.info("get the sign task list by user($userId), startTime($startTime), " +
"endTime($endTime), page($page), pageSize($pageSize)")
val realPageSize = if (pageSize != null && pageSize > MAX_PAGE_SIZE) {
MAX_PAGE_SIZE
} else {
pageSize
}
return client.getGateway(ServiceIpaResource::class, GatewayType.IDC_PROXY).getHistorySign(
userId = userId,
startTime = startTime,
endTime = endTime,
page = page,
pageSize = pageSize
pageSize = realPageSize
)
}

Expand Down Expand Up @@ -111,6 +117,7 @@ class ApigwSignResourceV3Impl @Autowired constructor(
}

companion object {
private const val MAX_PAGE_SIZE = 50
private val logger = LoggerFactory.getLogger(ApigwSignResourceV3Impl::class.java)
}
}

0 comments on commit 39331db

Please sign in to comment.