30 lines
569 B
TypeScript
30 lines
569 B
TypeScript
import type { AuditBaseModel,Paging } from '@/model/base'
|
|
import type { Category } from './category'
|
|
|
|
export enum ArticleStatus {
|
|
Draft = 'draft',
|
|
Published = 'published',
|
|
Closed = 'closed'
|
|
}
|
|
|
|
export interface Article extends AuditBaseModel{
|
|
title: string
|
|
content:string
|
|
category: Category
|
|
status: ArticleStatus
|
|
}
|
|
|
|
|
|
export interface ArticleSearchFilter extends Partial<Paging>{
|
|
order?: string
|
|
title?: string
|
|
content?:string
|
|
categoryId?:string
|
|
}
|
|
|
|
export interface CreateArticleRequest{
|
|
categoryId:string
|
|
title: string
|
|
content: number
|
|
}
|