Attachments.ts 378 B

123456789101112131415161718
  1. /*
  2. 'name' => $filename,
  3. 'size' => $file->getSize(),
  4. 'type' => $file->getMimeType(),
  5. 'url' => $filename,
  6. */
  7. export interface IAttachmentRequest {
  8. uid: string;
  9. name?: string;
  10. size?: number;
  11. type: string;
  12. url: string;
  13. }
  14. export interface IAttachmentResponse {
  15. ok: boolean;
  16. message: string;
  17. data: IAttachmentRequest;
  18. }