修复讲解详情接口并展示展厅统计
This commit is contained in:
15
src/domain/explainDetailTarget.ts
Normal file
15
src/domain/explainDetailTarget.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type {
|
||||
ExplainGuideStop
|
||||
} from './museum'
|
||||
|
||||
export interface ExplainDetailTarget {
|
||||
targetType: 'STOP'
|
||||
targetId: string
|
||||
}
|
||||
|
||||
export const normalizeExplainDetailTargetFromGuideStop = (
|
||||
guideStop: Pick<ExplainGuideStop, 'id'>
|
||||
): ExplainDetailTarget => ({
|
||||
targetType: 'STOP',
|
||||
targetId: String(guideStop.id)
|
||||
})
|
||||
Reference in New Issue
Block a user