/* 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 {
  UspscaleAddInput,
  UspscaleGetOutput,
  UspscaleUpdateInput,
  PageInputUspscaleGetPageInput,
  ResultOutputUspscaleGetOutput,
  ResultOutputPageOutputUspscaleGetPageOutput,
  ResultOutputInt64,
} from './data-contracts'
import { ContentType, HttpClient, RequestParams } from './http-client'
import { AxiosResponse } from 'axios'

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

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

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

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

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

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