article.ts 570 B

1234567891011121314151617181920212223242526272829
  1. import type { AuditBaseModel,Paging } from '@/model/base'
  2. import type { Category } from './category'
  3. export enum ArticleStatus {
  4. Draft = 'draft',
  5. Published = 'published',
  6. Closed = 'closed'
  7. }
  8. export interface Article extends AuditBaseModel{
  9. title: string
  10. content:string
  11. category: Category
  12. status: ArticleStatus
  13. }
  14. export interface ArticleSearchFilter extends Partial<Paging>{
  15. order?: string
  16. title?: string
  17. content?:string
  18. categoryId?:string
  19. }
  20. export interface CreateArticleRequest{
  21. categoryId: string
  22. title: string
  23. content: string
  24. }