帮助中心数据实现动态渲染

This commit is contained in:
Eamon-meng
2026-06-11 16:30:24 +08:00
parent 99039b6622
commit 7947fc48a2
10 changed files with 287 additions and 97 deletions

26
src/lib/models/article.ts Normal file
View 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
}