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 Faq extends Timestamp {
  id: string;
  title: string;
  desc: string;
  order: number;
}

@Injectable({
  providedIn: "root",
})
export class FaqService extends ApiService<Faq> {
  constructor(
    public override http: HttpClient,
    public override helpers: HelpersService
  ) {
    super(http, helpers);
    this.endpoint = "faq";
  }
}
