From 97f653bd42795245bd1c67ee4f984536c55f6558 Mon Sep 17 00:00:00 2001 From: longjuan <769022681@qq.com> Date: Wed, 31 Jul 2024 12:40:03 +0800 Subject: [PATCH] feat: support selecting groups to join when link (#165) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes https://github.com/halo-dev/plugin-s3/issues/152 ```release-note S3关联时支持选择加入的分组 ``` ![image](https://github.com/user-attachments/assets/2380688c-3e04-4485-986d-b9118e05fe95) --- console/src/api/models/link-request.ts | 6 ++ console/src/views/S3Link.vue | 81 +++++++++++++++++-- src/main/java/run/halo/s3os/LinkRequest.java | 1 + .../java/run/halo/s3os/S3LinkController.java | 2 +- .../java/run/halo/s3os/S3LinkService.java | 8 +- .../java/run/halo/s3os/S3LinkServiceImpl.java | 14 ++-- 6 files changed, 97 insertions(+), 15 deletions(-) diff --git a/console/src/api/models/link-request.ts b/console/src/api/models/link-request.ts index d9bc67c..60d85fd 100644 --- a/console/src/api/models/link-request.ts +++ b/console/src/api/models/link-request.ts @@ -20,6 +20,12 @@ * @interface LinkRequest */ export interface LinkRequest { + /** + * + * @type {string} + * @memberof LinkRequest + */ + 'groupName'?: string; /** * * @type {Array} diff --git a/console/src/views/S3Link.vue b/console/src/views/S3Link.vue index 15a577f..e0c6027 100644 --- a/console/src/views/S3Link.vue +++ b/console/src/views/S3Link.vue @@ -1,6 +1,7 @@