Article.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. import type { IStudioApiResponse } from "./Auth";
  2. export interface IArticleListApiResponse {
  3. article: string;
  4. title: string;
  5. level: string;
  6. children: number;
  7. }
  8. export interface IAnthologyDataResponse {
  9. uid: string;
  10. title: string;
  11. subtitle: string;
  12. summary: string;
  13. article_list: IArticleListApiResponse[];
  14. studio: IStudioApiResponse;
  15. lang: string;
  16. status: number;
  17. childrenNumber: number;
  18. created_at: string;
  19. updated_at: string;
  20. }
  21. export interface IAnthologyResponse {
  22. ok: boolean;
  23. message: string;
  24. data: IAnthologyDataResponse;
  25. }
  26. export interface IAnthologyListResponse {
  27. ok: boolean;
  28. message: string;
  29. data: {
  30. rows: IAnthologyDataResponse[];
  31. count: number;
  32. };
  33. }
  34. export interface IAnthologyStudioListApiResponse {
  35. ok: boolean;
  36. message: string;
  37. data: {
  38. count: number;
  39. rows: IAnthologyStudioListDataApiResponse[];
  40. };
  41. }
  42. export interface IAnthologyStudioListDataApiResponse {
  43. count: number;
  44. studio: IStudioApiResponse;
  45. }
  46. export interface IArticleDataRequest {
  47. uid: string;
  48. title: string;
  49. subtitle: string;
  50. summary: string;
  51. content: string;
  52. content_type: string;
  53. status: number;
  54. lang: string;
  55. }
  56. export interface IArticleDataResponse {
  57. uid: string;
  58. title: string;
  59. subtitle: string;
  60. summary: string;
  61. content: string;
  62. content_type: string;
  63. status: number;
  64. lang: string;
  65. created_at: string;
  66. updated_at: string;
  67. }
  68. export interface IArticleResponse {
  69. ok: boolean;
  70. message: string;
  71. data: IArticleDataResponse;
  72. }
  73. export interface IArticleListResponse {
  74. ok: boolean;
  75. message: string;
  76. data: {
  77. rows: IArticleDataResponse[];
  78. count: number;
  79. };
  80. }
  81. export interface IArticleCreateRequest {
  82. title: string;
  83. lang: string;
  84. studio: string;
  85. }