-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
214 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,8 @@ data class RemoveMemberFromProjectReq( | |
) | ||
} | ||
} | ||
|
||
fun isNeedToHandover(): Boolean { | ||
return handoverTo != null | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...uth/api-auth/src/main/kotlin/com/tencent/devops/auth/pojo/vo/MemberExitsProjectCheckVo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.tencent.devops.auth.pojo.vo | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
@Schema(title = "成员退出项目检查返回体") | ||
data class MemberExitsProjectCheckVo( | ||
@get:Schema(title = "组织加入的数量") | ||
val departmentJoinedCount: Int? = 0, | ||
@get:Schema(title = "组织") | ||
val departments: String? = "", | ||
@get:Schema(title = "唯一管理员组的数量") | ||
val uniqueManagerCount: Int? = 0, | ||
@get:Schema(title = "流水线授权数量") | ||
val pipelineAuthorizationCount: Int? = 0, | ||
@get:Schema(title = "代码库授权数量") | ||
val repositoryAuthorizationCount: Int? = 0, | ||
@get:Schema(title = "环境节点授权数量") | ||
val envNodeAuthorizationCount: Int? = 0 | ||
) { | ||
fun canExitsProjectDirectly(): Boolean { | ||
return departmentJoinedCount == 0 && uniqueManagerCount == 0 && pipelineAuthorizationCount == 0 && | ||
repositoryAuthorizationCount == 0 && envNodeAuthorizationCount == 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters