import { Injectable } from "@angular/core";
import { Timestamp } from "../../interfaces/timestamp";
import { ApiService } from "../../services/api.service";
import { HttpClient } from "@angular/common/http";
import { HelpersService } from "../../services/helpers.service";

export interface UploadImage extends Timestamp {
  id: string;
  filename: string;
  file_type: string;
  file_size: string;
  category: string;
  uploaded_ip: string;
  folder: string;
  rel_path: string;
  abs_path: string;
  upload_status: boolean;
  link_status: boolean;
  extra: null;
}

@Injectable({
  providedIn: "root",
})
export class UploadImageService extends ApiService<UploadImage> {
  constructor(
    public override http: HttpClient,
    public override helpers: HelpersService
  ) {
    super(http, helpers);
    this.endpoint = "upload-dumps";
  }
}
