view.ts 906 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import type { ArticleType } from "../article/Article"
  2. export interface IViewRequest {
  3. target_type: ArticleType;
  4. book: number;
  5. para: number;
  6. channel: string;
  7. mode: string;
  8. }
  9. export interface IMetaChapter {
  10. book: number;
  11. para: number;
  12. channel: string;
  13. mode: string;
  14. }
  15. export interface IViewData {
  16. id: string;
  17. target_id: string;
  18. target_type: ArticleType;
  19. updated_at: string;
  20. title: string;
  21. org_title: string;
  22. meta: string;
  23. }
  24. export interface IViewStoreResponse {
  25. ok: boolean;
  26. message: string;
  27. data: number;
  28. }
  29. export interface IViewResponse {
  30. ok: boolean;
  31. message: string;
  32. data: IViewData;
  33. }
  34. export interface IViewListResponse {
  35. ok: boolean;
  36. message: string;
  37. data: {
  38. rows: IViewData[];
  39. count: number;
  40. };
  41. }
  42. export interface IView {
  43. id: string;
  44. title: string;
  45. subtitle: string;
  46. type: ArticleType;
  47. updatedAt: string;
  48. meta: IMetaChapter;
  49. }