(id uint)
| 329 | return appDetailDTO, nil |
| 330 | } |
| 331 | func (a AppService) GetAppDetailByID(id uint) (*response.AppDetailDTO, error) { |
| 332 | res := &response.AppDetailDTO{} |
| 333 | appDetail, err := appDetailRepo.GetFirst(repo.WithByID(id)) |
| 334 | if err != nil { |
| 335 | return nil, err |
| 336 | } |
| 337 | res.AppDetail = appDetail |
| 338 | paramMap := make(map[string]interface{}) |
| 339 | if err := json.Unmarshal([]byte(appDetail.Params), ¶mMap); err != nil { |
| 340 | return nil, err |
| 341 | } |
| 342 | res.Params = paramMap |
| 343 | res.HostMode = isHostModel(appDetail.DockerCompose) |
| 344 | return res, nil |
| 345 | } |
| 346 | |
| 347 | func (a AppService) Install(req request.AppInstallCreate, executeScript bool) (appInstall *model.AppInstall, err error) { |
| 348 | return a.installWithHooks(req, executeScript, nil) |
nothing calls this directly
no test coverage detected