-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9076 from fcfang123/issue-9068
feat:蓝盾对接审计中心回调接口 #9068
- Loading branch information
Showing
13 changed files
with
320 additions
and
8 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
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
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
11 changes: 11 additions & 0 deletions
11
...auth-api/src/main/kotlin/com/tencent/devops/common/auth/callback/FetchInstanceListData.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,11 @@ | ||
package com.tencent.devops.common.auth.callback | ||
|
||
import io.swagger.annotations.ApiModel | ||
|
||
@ApiModel("过滤条件搜索实例") | ||
data class FetchInstanceListData( | ||
val projectId: String, | ||
val projectName: String, | ||
val pipelineId: String, | ||
val pipelineName: String | ||
) |
30 changes: 30 additions & 0 deletions
30
...auth-api/src/main/kotlin/com/tencent/devops/common/auth/callback/FetchInstanceListInfo.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,30 @@ | ||
package com.tencent.devops.common.auth.callback | ||
|
||
import com.tencent.bk.sdk.iam.dto.callback.response.BaseDataResponseDTO | ||
import com.tencent.bk.sdk.iam.dto.callback.response.FetchInstanceListDTO | ||
import com.tencent.bk.sdk.iam.dto.callback.response.InstanceListDTO | ||
|
||
class FetchInstanceListInfo : FetchInstanceListDTO<FetchInstanceListData>() { | ||
fun buildFetchInstanceListFailResult(message: String): FetchInstanceListDTO<FetchInstanceListData> { | ||
val data = BaseDataResponseDTO<InstanceListDTO<FetchInstanceListData>>() | ||
val result = FetchInstanceListDTO<FetchInstanceListData>() | ||
result.code = 0 | ||
result.message = message | ||
result.data = data | ||
return result | ||
} | ||
|
||
fun buildFetchInstanceListResult( | ||
infos: List<InstanceListDTO<FetchInstanceListData>>, | ||
count: Long | ||
): FetchInstanceListDTO<FetchInstanceListData> { | ||
val data = BaseDataResponseDTO<InstanceListDTO<FetchInstanceListData>>() | ||
data.count = count | ||
data.result = infos | ||
val result = FetchInstanceListDTO<FetchInstanceListData>() | ||
result.code = 0L | ||
result.message = "" | ||
result.data = data | ||
return result | ||
} | ||
} |
Oops, something went wrong.