2
0

Attachments.ts 826 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. export interface IAttachmentRequest {
  2. id: string;
  3. name: string;
  4. filename: string;
  5. title: string;
  6. size: number;
  7. content_type: string;
  8. url: string;
  9. thumbnail?: { small: string; middle: string };
  10. created_at?: string;
  11. updated_at?: string;
  12. }
  13. export interface IAttachmentUpdate {
  14. title: string;
  15. }
  16. export interface IAttachmentResponse {
  17. ok: boolean;
  18. message: string;
  19. data: IAttachmentRequest;
  20. }
  21. export interface IAttachmentListResponse {
  22. ok: boolean;
  23. message: string;
  24. data: { rows: IAttachmentRequest[]; count: number };
  25. }
  26. export interface IResAttachmentData {
  27. uid: string;
  28. sentence_id: string;
  29. attachment_id: string;
  30. attachment: IAttachmentRequest;
  31. }
  32. export interface IResAttachmentListResponse {
  33. ok: boolean;
  34. message: string;
  35. data: { rows: IResAttachmentData[]; count: number };
  36. }