/* 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 {
  BagDto,
  BagModelEnum,
  PageInputBagDtoGetPageInput,
  ResultOutputBagDtoGetOutput,
  ResultOutputPageOutputBagDtoGetPageOutput,
  ResultOutputInt64,
} from './data-contracts'
import { ContentType, HttpClient, RequestParams } from './http-client'
import { AxiosResponse } from 'axios'

export class ItemDefBagApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
  /**
   * No description
   *
   * @tags item-def-bag
   * @name Get
   * @summary 获取液袋详情
   * @request GET:/api/admin/item-def-bag/get
   * @secure
   */
  get = (
    query?: {
      /** @format int64 */
      id?: number
    },
    params: RequestParams = {}
  ) =>
    this.request<ResultOutputBagDtoGetOutput, any>({
      path: `/api/admin/item-def-bag/get`,
      method: 'GET',
      query: query,
      secure: true,
      format: 'json',
      ...params,
    })

  /**
   * No description
   *
   * @tags item-def-bag
   * @name GetPage
   * @summary 获取液袋分页列表
   * @request POST:/api/admin/item-def-bag/get-page
   * @secure
   */
  getPage = (data: PageInputBagDtoGetPageInput, params: RequestParams = {}) =>
    this.request<ResultOutputPageOutputBagDtoGetPageOutput, any>({
      path: `/api/admin/item-def-bag/get-page`,
      method: 'POST',
      body: data,
      secure: true,
      type: ContentType.Json,
      format: 'json',
      ...params,
    })

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

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

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

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