Skip to content

Commit

Permalink
feat: 环境管理优化改动 TencentBlueKing#11003
Browse files Browse the repository at this point in the history
  • Loading branch information
yongyiduan committed Nov 5, 2024
1 parent a5c142d commit f75bd8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ import io.swagger.v3.oas.annotations.media.Schema

@Schema(title = "环境信息-Node数量")
data class EnvWithNodeCount(
@get:Schema(title = "环境所属项目Id", required = true)
val projectId: String,
@get:Schema(title = "环境 HashId", required = true)
val envHashId: String,
@get:Schema(title = "环境名称", required = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ class EnvService @Autowired constructor(
}

EnvWithNodeCount(
projectId = projectId,
envHashId = HashUtil.encodeLongId(it.envId),
name = it.envName,
normalNodeCount = normalNodeCount,
Expand Down Expand Up @@ -434,6 +435,7 @@ class EnvService @Autowired constructor(
}

EnvWithNodeCount(
projectId = projectId,
envHashId = HashUtil.encodeLongId(it.envId),
name = it.envName,
normalNodeCount = normalNodeCount,
Expand Down

0 comments on commit f75bd8d

Please sign in to comment.