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

export interface ExportLaporanById extends Timestamp {
  filename: string;
  file_type: string;
  file_size: number;
  category: string;
  folder: string;
  rel_path: string;
  abs_path: string;
  uploader_ip: number;
  upload_status: boolean;
  link_status: boolean;
  id: string;
}

@Injectable({
  providedIn: "root",
})
export class ExportLaporanByIdService extends ApiService<ExportLaporanById> {
  constructor(
    public override http: HttpClient,
    public override helpers: HelpersService
  ) {
    super(http, helpers);
    this.endpoint = "report-list/export";
  }
}
