Files
core/packages/api-client/models/post.ts
Innei db8745485f fix: post model type
Signed-off-by: Innei <i@innei.in>
2024-02-12 15:47:40 +08:00

29 lines
554 B
TypeScript

import type { Count, Image, TextBaseModel } from './base'
import type { CategoryModel } from './category'
export interface PostModel extends TextBaseModel {
summary?: string | null
copyright: boolean
tags: string[]
count: Count
text: string
title: string
slug: string
categoryId: string
images: Image[]
category: CategoryModel
pin?: string | null
pinOrder?: number
related?: Pick<
PostModel,
| 'id'
| 'category'
| 'categoryId'
| 'created'
| 'modified'
| 'title'
| 'slug'
| 'summary'
>[]
}