import { AxiosResponse } from 'axios'
import {ContentType, HttpClient, RequestParams} from "/@/api/admin/http-client";
import {PageInputoilGunFilterModel,oilGunFilterModel} from "/@/api/admin/reportManagement/oilGun/oilGunDto";

export class OilGunApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType>{
  timer = 500
  /**
   * No description
   *
   * @tags
   * @name getPageData
   * @summary 分页查询
   * @request GET:
   * @secure
   */

  getPage = (data: PageInputoilGunFilterModel, params: RequestParams = {}) =>
    this.request<oilGunFilterModel, any>({
      path: `/api/app/fuel-dispenser/get-nozzlecontrol-list`,
      method: 'POST',
      body: data,
      secure: true,
      type: ContentType.Json,
      format: 'json',
      ...params,
    })
}