Files
core/packages/api-client/models/post.ts
2022-12-20 21:26:21 +08:00

29 lines
537 B
TypeScript

import { Count, Image, TextBaseModel } from './base'
import { CategoryModel } from './category'
export interface PostModel extends TextBaseModel {
summary?: string
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'
>[]
}