From 9bd9700bac00728a0995854a90553aa47074c4b3 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 11 Jun 2024 18:10:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=20=E9=93=BE=E6=8E=A5=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=B8=8D=E8=B7=B3=E8=BD=AC=E7=9A=84=E9=97=AE=E9=A2=98=20(#5413?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/5371 --- backend/app/dto/response/app.go | 7 +++++++ backend/app/service/app_utils.go | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/backend/app/dto/response/app.go b/backend/app/dto/response/app.go index 082e25881..2cbced1ef 100644 --- a/backend/app/dto/response/app.go +++ b/backend/app/dto/response/app.go @@ -88,6 +88,12 @@ type AppInstalledDTO struct { Path string `json:"path"` } +type AppDetail struct { + Website string `json:"website"` + Document string `json:"document"` + Github string `json:"github"` +} + type AppInstallDTO struct { ID uint `json:"id"` Name string `json:"name"` @@ -109,6 +115,7 @@ type AppInstallDTO struct { AppStatus string `json:"appStatus"` DockerCompose string `json:"dockerCompose"` CreatedAt time.Time `json:"createdAt"` + App AppDetail `json:"app"` } type DatabaseConn struct { diff --git a/backend/app/service/app_utils.go b/backend/app/service/app_utils.go index af97a2e5a..526fef417 100644 --- a/backend/app/service/app_utils.go +++ b/backend/app/service/app_utils.go @@ -1255,6 +1255,11 @@ func handleInstalled(appInstallList []model.AppInstall, updated bool, sync bool) AppType: installed.App.Type, Path: installed.GetPath(), CreatedAt: installed.CreatedAt, + App: response.AppDetail{ + Github: installed.App.Github, + Website: installed.App.Website, + Document: installed.App.Document, + }, } if updated { installDTO.DockerCompose = installed.DockerCompose