chore: freeze guide and explain update

This commit is contained in:
lyf
2026-06-24 18:00:25 +08:00
parent feb7310a46
commit 67c6609ae6
104 changed files with 3203572 additions and 40713 deletions

View File

@@ -1,5 +1,6 @@
import type {
GuideLocationPreview,
GuideRouteReadiness,
MuseumFloor,
MuseumPoi
} from '@/domain/museum'
@@ -57,7 +58,7 @@ export interface GuideRepository {
getPoiById(id: string): Promise<MuseumPoi | null>
searchPois(keyword?: string): Promise<MuseumPoi[]>
getLocationPreview(poiId: string): Promise<GuideLocationPreview | null>
getRouteReadiness(): typeof NAV_ROUTE_READINESS
getRouteReadiness(): Promise<GuideRouteReadiness>
}
export class StaticGuideRepository implements GuideRepository {
@@ -114,8 +115,9 @@ export class StaticGuideRepository implements GuideRepository {
return poi ? toLocationPreview(poi) : null
}
getRouteReadiness() {
return NAV_ROUTE_READINESS
async getRouteReadiness() {
return this.provider.loadRouteReadiness()
.catch(() => NAV_ROUTE_READINESS)
}
}