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