123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- /* eslint-disable */
- /* tslint:disable */
- /*
- * ---------------------------------------------------------------
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
- * ## ##
- * ## AUTHOR: acacode ##
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
- * ---------------------------------------------------------------
- */
- import { AxiosResponse } from 'axios'
- import {
- DictionaryTypeAddInput,
- DictionaryTypeUpdateInput,
- PageInputDictionaryTypeGetPageDto,
- ResultOutputDictionaryTypeGetOutput,
- ResultOutputInt64,
- ResultOutputPageOutputDictionaryTypeListOutput,
- } from './data-contracts'
- import { ContentType, HttpClient, RequestParams } from './http-client'
- export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
- /**
- * No description
- *
- * @tags dictionary-type
- * @name Get
- * @summary 查询字典类型
- * @request GET:/api/admin/dictionary-type/get
- * @secure
- */
- get = (
- query?: {
- /** @format int64 */
- id?: number
- },
- params: RequestParams = {}
- ) =>
- this.request<ResultOutputDictionaryTypeGetOutput, any>({
- path: `/api/admin/dictionary-type/get`,
- method: 'GET',
- query: query,
- secure: true,
- format: 'json',
- ...params,
- })
- /**
- * No description
- *
- * @tags dictionary-type
- * @name GetPage
- * @summary 查询字典类型列表
- * @request POST:/api/admin/dictionary-type/get-page
- * @secure
- */
- getPage = (data: PageInputDictionaryTypeGetPageDto, params: RequestParams = {}) =>
- this.request<ResultOutputPageOutputDictionaryTypeListOutput, any>({
- path: `/api/admin/dictionary-type/get-page`,
- method: 'POST',
- body: data,
- secure: true,
- type: ContentType.Json,
- format: 'json',
- ...params,
- })
- /**
- * No description
- *
- * @tags dictionary-type
- * @name Add
- * @summary 新增
- * @request POST:/api/admin/dictionary-type/add
- * @secure
- */
- add = (data: DictionaryTypeAddInput, params: RequestParams = {}) =>
- this.request<ResultOutputInt64, any>({
- path: `/api/admin/dictionary-type/add`,
- method: 'POST',
- body: data,
- secure: true,
- type: ContentType.Json,
- format: 'json',
- ...params,
- })
- /**
- * No description
- *
- * @tags dictionary-type
- * @name Update
- * @summary 修改
- * @request PUT:/api/admin/dictionary-type/update
- * @secure
- */
- update = (data: DictionaryTypeUpdateInput, params: RequestParams = {}) =>
- this.request<AxiosResponse, any>({
- path: `/api/admin/dictionary-type/update`,
- method: 'PUT',
- body: data,
- secure: true,
- type: ContentType.Json,
- ...params,
- })
- /**
- * No description
- *
- * @tags dictionary-type
- * @name Delete
- * @summary 彻底删除
- * @request DELETE:/api/admin/dictionary-type/delete
- * @secure
- */
- delete = (
- query?: {
- /** @format int64 */
- id?: number
- },
- params: RequestParams = {}
- ) =>
- this.request<AxiosResponse, any>({
- path: `/api/admin/dictionary-type/delete`,
- method: 'DELETE',
- query: query,
- secure: true,
- ...params,
- })
- /**
- * No description
- *
- * @tags dictionary-type
- * @name SoftDelete
- * @summary 删除
- * @request DELETE:/api/admin/dictionary-type/soft-delete
- * @secure
- */
- softDelete = (
- query?: {
- /** @format int64 */
- id?: number
- },
- params: RequestParams = {}
- ) =>
- this.request<AxiosResponse, any>({
- path: `/api/admin/dictionary-type/soft-delete`,
- method: 'DELETE',
- query: query,
- secure: true,
- ...params,
- })
- /**
- * No description
- *
- * @tags dictionary-type
- * @name BatchSoftDelete
- * @summary 批量删除
- * @request PUT:/api/admin/dictionary-type/batch-soft-delete
- * @secure
- */
- batchSoftDelete = (data: number[], params: RequestParams = {}) =>
- this.request<AxiosResponse, any>({
- path: `/api/admin/dictionary-type/batch-soft-delete`,
- method: 'PUT',
- body: data,
- secure: true,
- type: ContentType.Json,
- ...params,
- })
- }
|