From a7cf69e5a2527c79ac62a94fae66f8d03beed48c Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 6 Jun 2024 19:01:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=B7=B2=E5=AE=89=E8=A3=85=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98=20(#5327)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/dto/response/app.go | 39 ++++++++++++++++---------------- backend/app/service/app_utils.go | 1 + 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/backend/app/dto/response/app.go b/backend/app/dto/response/app.go index 824c9d1ba..d320fbe6f 100644 --- a/backend/app/dto/response/app.go +++ b/backend/app/dto/response/app.go @@ -88,25 +88,26 @@ type AppInstalledDTO struct { } type AppInstallDTO struct { - ID uint `json:"id"` - Name string `json:"name"` - AppID uint `json:"appID"` - AppDetailID uint `json:"appDetailID"` - Version string `json:"version"` - Status string `json:"status"` - Message string `json:"message"` - HttpPort int `json:"httpPort"` - HttpsPort int `json:"httpsPort"` - Path string `json:"path"` - CanUpdate bool `json:"canUpdate"` - Icon string `json:"icon"` - AppName string `json:"appName"` - Ready int `json:"ready"` - Total int `json:"total"` - AppKey string `json:"appKey"` - AppType string `json:"appType"` - AppStatus string `json:"appStatus"` - DockerCompose string `json:"dockerCompose"` + ID uint `json:"id"` + Name string `json:"name"` + AppID uint `json:"appID"` + AppDetailID uint `json:"appDetailID"` + Version string `json:"version"` + Status string `json:"status"` + Message string `json:"message"` + HttpPort int `json:"httpPort"` + HttpsPort int `json:"httpsPort"` + Path string `json:"path"` + CanUpdate bool `json:"canUpdate"` + Icon string `json:"icon"` + AppName string `json:"appName"` + Ready int `json:"ready"` + Total int `json:"total"` + AppKey string `json:"appKey"` + AppType string `json:"appType"` + AppStatus string `json:"appStatus"` + DockerCompose string `json:"dockerCompose"` + CreatedAt time.Time `json:"createdAt"` } type DatabaseConn struct { diff --git a/backend/app/service/app_utils.go b/backend/app/service/app_utils.go index d7f8b3563..af97a2e5a 100644 --- a/backend/app/service/app_utils.go +++ b/backend/app/service/app_utils.go @@ -1254,6 +1254,7 @@ func handleInstalled(appInstallList []model.AppInstall, updated bool, sync bool) AppKey: installed.App.Key, AppType: installed.App.Type, Path: installed.GetPath(), + CreatedAt: installed.CreatedAt, } if updated { installDTO.DockerCompose = installed.DockerCompose