feat: 将解决方案页迁移至directus
- 将/solutions与/solutions/[slug]页现在由Directus作为CMS - 添加solution页的composable API
This commit is contained in:
20
app/models/views/SolutionListView.ts
Normal file
20
app/models/views/SolutionListView.ts
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* 解决方案列表模型
|
||||
* 用于解决方案列表(/solutions)渲染的数据结构
|
||||
*/
|
||||
export interface SolutionListView {
|
||||
/** 唯一标识符 **/
|
||||
id: number;
|
||||
|
||||
/** 标题 **/
|
||||
title: string;
|
||||
|
||||
/** 摘要 **/
|
||||
summary: string;
|
||||
|
||||
/** 解决方案类型 **/
|
||||
solution_type: string;
|
||||
|
||||
/** 解决方案封面(图片id) **/
|
||||
cover: string;
|
||||
}
|
||||
20
app/models/views/SolutionView.ts
Normal file
20
app/models/views/SolutionView.ts
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* 解决方案模型
|
||||
* 用于解决方案页(/solutions/[slug])渲染的数据结构
|
||||
*/
|
||||
export interface SolutionView {
|
||||
/** 唯一标识符 **/
|
||||
id: number;
|
||||
|
||||
/** 标题 **/
|
||||
title: string;
|
||||
|
||||
/** 摘要 **/
|
||||
summary: string;
|
||||
|
||||
/** 内容 **/
|
||||
content: string;
|
||||
|
||||
/** 创建时间 **/
|
||||
createAt: string;
|
||||
}
|
||||
Reference in New Issue
Block a user