package useCases import "RenewCMS/internal/domain/update" type GetUpdateStatusUseCase struct { store update.StatusStore currentVersion string } func NewGetUpdateStatusUseCase(store update.StatusStore, currentVersion string) *GetUpdateStatusUseCase { return &GetUpdateStatusUseCase{store: store, currentVersion: currentVersion} } func (g *GetUpdateStatusUseCase) GetStatus() update.UpdateStatus { result, found := g.store.Load() if !found { return update.NewStatus(g.currentVersion, nil) } return update.NewStatus(g.currentVersion, &result) }