帮助中心数据实现动态渲染
This commit is contained in:
26
src/lib/models/article.ts
Normal file
26
src/lib/models/article.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
export type ArticleNavGroup = {
|
||||
id: number
|
||||
name: string
|
||||
code: string
|
||||
articles: ArticleNavItem[]
|
||||
}
|
||||
|
||||
export type ArticleNavItem = {
|
||||
id: number
|
||||
title: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
export type ArticleDetail = {
|
||||
id: number
|
||||
title: string
|
||||
content: string
|
||||
updated_at: string
|
||||
group: ArticleGroupInfo
|
||||
}
|
||||
|
||||
export type ArticleGroupInfo = {
|
||||
id: number
|
||||
name: string
|
||||
code: string
|
||||
}
|
||||
Reference in New Issue
Block a user