| 1234567891011121314151617181920212223242526272829 |
- 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: string
- }
|