/* eslint-disable */
/* tslint:disable */
/*
 * ---------------------------------------------------------------
 * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API        ##
 * ##                                                           ##
 * ## AUTHOR: adademo / https://github.com/adademo/swagger-typescript-api ##
 * ## SOURCE: https://github.com/adademo/swagger-typescript-api ##
 * ---------------------------------------------------------------
 */

import {
  EquPrinter,
  EquPrinterAddInput,
  EquPrinterUpdateInput,
  PageInputEquPrinterGetPageInput,
  ResultOutputEquPrinter,
  ResultOutputPageOutputEquPrinter,
  ResultOutputInt64,
} from './data-contracts'
import { ContentType, HttpClient, RequestParams } from './http-client'
import { AxiosResponse } from 'axios'

export class EquPrinterApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
  /**
   * No description
   *
   * @tags equ-printer
   * @name Get
   * @summary 查询
   * @request GET:/api/admin/equ-printer/get
   * @secure
   */
  get = (
    query?: {
      /** @format int64 */
      id?: number
    },
    params: RequestParams = {}
  ) =>
    this.request<ResultOutputEquPrinter, any>({
      path: `/api/admin/equ-printer/get`,
      method: 'GET',
      query: query,
      secure: true,
      format: 'json',
      ...params,
    })

  /**
   * No description
   *
   * @tags equ-printer
   * @name GetPage
   * @summary 查询分页
   * @request POST:/api/admin/equ-printer/get-page
   * @secure
   */
  getPage = (data: PageInputEquPrinterGetPageInput, params: RequestParams = {}) =>
    this.request<ResultOutputPageOutputEquPrinter, any>({
      path: `/api/admin/equ-printer/get-page`,
      method: 'POST',
      body: data,
      secure: true,
      type: ContentType.Json,
      format: 'json',
      ...params,
    })

  /**
   * No description
   *
   * @tags equ-printer
   * @name Add
   * @summary 新增
   * @request POST:/api/admin/equ-printer/add
   * @secure
   */
  add = (data: EquPrinterAddInput, params: RequestParams = {}) =>
    this.request<ResultOutputInt64, any>({
      path: `/api/admin/equ-printer/add`,
      method: 'POST',
      body: data,
      secure: true,
      type: ContentType.Json,
      format: 'json',
      ...params,
    })

  /**
   * No description
   *
   * @tags equ-printer
   * @name Update
   * @summary 修改
   * @request PUT:/api/admin/equ-printer/update
   * @secure
   */
  update = (data: EquPrinterUpdateInput, params: RequestParams = {}) =>
    this.request<AxiosResponse, any>({
      path: `/api/admin/equ-printer/update`,
      method: 'PUT',
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    })

  /**
   * No description
   *
   * @tags equ-printer
   * @name Delete
   * @summary 彻底删除
   * @request DELETE:/api/admin/equ-printer/delete
   * @secure
   */
  delete = (
    query?: {
      /** @format int64 */
      id?: number
    },
    params: RequestParams = {}
  ) =>
    this.request<AxiosResponse, any>({
      path: `/api/admin/equ-printer/delete`,
      method: 'DELETE',
      query: query,
      secure: true,
      ...params,
    })

  /**
   * No description
   *
   * @tags equ-printer
   * @name SoftDelete
   * @summary 删除
   * @request DELETE:/api/admin/equ-printer/soft-delete
   * @secure
   */
  softDelete = (
    query?: {
      /** @format int64 */
      id?: number
    },
    params: RequestParams = {}
  ) =>
    this.request<AxiosResponse, any>({
      path: `/api/admin/equ-printer/soft-delete`,
      method: 'DELETE',
      query: query,
      secure: true,
      ...params,
    })
}
