Comment.ts 824 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { IUserApiData } from "./Auth";
  2. export interface ICommentRequest {
  3. id?: string;
  4. res_id?: string;
  5. res_type?: string;
  6. title?: string;
  7. content?: string;
  8. parent?: string;
  9. editor?: IUserApiData;
  10. created_at?: string;
  11. updated_at?: string;
  12. }
  13. export interface ICommentApiData {
  14. id: string;
  15. res_id: string;
  16. res_type: string;
  17. title?: string;
  18. content?: string;
  19. parent?: string;
  20. children_count: number;
  21. editor: IUserApiData;
  22. created_at?: string;
  23. updated_at?: string;
  24. }
  25. export interface ICommentResponse {
  26. ok: boolean;
  27. message: string;
  28. data: ICommentApiData;
  29. }
  30. export interface ICommentListResponse {
  31. ok: boolean;
  32. message: string;
  33. data: { rows: ICommentApiData[]; count: number };
  34. }
  35. export interface ICommentAnchorResponse {
  36. ok: boolean;
  37. message: string;
  38. data: string;
  39. }