29 lines
554 B
TypeScript
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'
|
|
>[]
|
|
}
|