Skip to content

Commit

Permalink
项目支持关联运营产品和根据运营产品搜索 #9636
Browse files Browse the repository at this point in the history
  • Loading branch information
fcfang123 committed Nov 13, 2023
1 parent f6415d0 commit 668c8e2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ object AuthI18nConstants {
const val BK_GROUP_NAME = "bkGroupName" // 用户组名称
const val BK_VALIDITY_PERIOD = "bkValidityPeriod" // 申请期限
const val BK_CREATE_PROJECT_APPROVAL = "bkCreateProjectApproval" // 创建项目{0}审批
const val BK_UPDATE_PROJECT_APPROVAL = "bkUpdateProjectApproval" // 修改项目{0}审批
const val BK_APPLY_TO_JOIN_PROJECT = "bkApplyToJoinProject" // 申请加入项目
const val BK_APPLY_TO_JOIN_GROUP = "bkApplyToJoinGroup" // 申请加入用户组
const val BK_DAY = "bkDay" // days
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ class ItsmService @Autowired constructor(
organization: String,
authSecrecy: Int,
subjectScopes: List<SubjectScopeInfo>,
productName: String
productName: String,
isCreateProject: Boolean = true
): ItsmContentDTO {
logger.info("build grade manager itsm content:$projectName|$projectId|$organization|$productName")
val itsmColumns = listOf(
Expand Down Expand Up @@ -166,7 +167,12 @@ class ItsmService @Autowired constructor(
val itsmValue = ItsmValue.builder()
.scheme("content_table")
.label(
I18nUtil.getCodeLanMessage(AuthI18nConstants.BK_CREATE_PROJECT_APPROVAL)
I18nUtil.getCodeLanMessage(
if (isCreateProject)
AuthI18nConstants.BK_CREATE_PROJECT_APPROVAL
else
AuthI18nConstants.BK_UPDATE_PROJECT_APPROVAL
)
)
.value(listOf(value))
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ class PermissionGradeManagerService @Autowired constructor(
name = ALL_MEMBERS_NAME
)
),
productName = projectApprovalInfo.productName!!
productName = projectApprovalInfo.productName!!,
isCreateProject = false
)
val gradeManagerDetail = iamV2ManagerService.getGradeManagerDetail(gradeManagerId)
val gradeManagerApplicationUpdateDTO = GradeManagerApplicationUpdateDTO.builder()
Expand Down
1 change: 1 addition & 0 deletions support-files/i18n/auth/message_zh_CN.properties
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ bkGroupName=用户组
bkDay=天
bkValidityPeriod=申请期限
bkCreateProjectApproval=创建项目审批
bkUpdateProjectApproval=修改项目审批
bkApplyToJoinProject=申请加入项目
bkApplyToJoinGroup=申请加入用户组
bkDevopsName=蓝盾
Expand Down

0 comments on commit 668c8e2

Please sign in to comment.