Files
core/packages/api-client/models/post.ts
Innei b22666694a chore: lint
Signed-off-by: Innei <tukon479@gmail.com>
2023-06-10 16:36:14 +08:00

29 lines
547 B
TypeScript

import type { Count, Image, TextBaseModel } from './base'
import type { 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'
>[]
}