From 31a80f55771f5203e0d90377f757f09788404882 Mon Sep 17 00:00:00 2001 From: yaoxuwan Date: Wed, 2 Aug 2023 17:30:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9B=E5=BB=BA=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=98=AF=E5=90=A6=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=9C=AC=E5=9C=B0=E6=9D=83=E9=99=90=E5=8F=82=E6=95=B0?= =?UTF-8?q?=20#879?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/pojo/project/UserProjectCreateRequest.kt | 4 +++- .../repository/controller/user/UserProjectController.kt | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/backend/repository/api-repository/src/main/kotlin/com/tencent/bkrepo/repository/pojo/project/UserProjectCreateRequest.kt b/src/backend/repository/api-repository/src/main/kotlin/com/tencent/bkrepo/repository/pojo/project/UserProjectCreateRequest.kt index 582183081e..14ce100c09 100644 --- a/src/backend/repository/api-repository/src/main/kotlin/com/tencent/bkrepo/repository/pojo/project/UserProjectCreateRequest.kt +++ b/src/backend/repository/api-repository/src/main/kotlin/com/tencent/bkrepo/repository/pojo/project/UserProjectCreateRequest.kt @@ -41,5 +41,7 @@ data class UserProjectCreateRequest( @ApiModelProperty("显示名") val displayName: String, @ApiModelProperty("描述") - val description: String + val description: String, + @ApiModelProperty("创建本地权限") + val createPermission: Boolean = true ) : ProjectRequest diff --git a/src/backend/repository/biz-repository/src/main/kotlin/com/tencent/bkrepo/repository/controller/user/UserProjectController.kt b/src/backend/repository/biz-repository/src/main/kotlin/com/tencent/bkrepo/repository/controller/user/UserProjectController.kt index 5852aef3ab..5cf716c130 100644 --- a/src/backend/repository/biz-repository/src/main/kotlin/com/tencent/bkrepo/repository/controller/user/UserProjectController.kt +++ b/src/backend/repository/biz-repository/src/main/kotlin/com/tencent/bkrepo/repository/controller/user/UserProjectController.kt @@ -73,7 +73,8 @@ class UserProjectController( name = name, displayName = displayName, description = description, - operator = userId + operator = userId, + createPermission = createPermission ) } projectService.createProject(createRequest)