/* eslint-disable */ /* tslint:disable */ /* * --------------------------------------------------------------- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## * ## ## * ## AUTHOR: acacode ## * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## * --------------------------------------------------------------- */ import { ResultOutputCaptchaData, ResultOutputValidateResult, SlideTrack } from './data-contracts' import { ContentType, HttpClient, RequestParams } from './http-client' export class CaptchaApi extends HttpClient { /** * No description * * @tags captcha * @name Generate * @summary 生成 * @request POST:/api/admin/captcha/generate * @secure */ generate = ( query?: { captchaId?: string }, params: RequestParams = {} ) => this.request({ path: `/api/admin/captcha/generate`, method: 'POST', query: query, secure: true, format: 'json', ...params, }) /** * No description * * @tags captcha * @name Check * @summary 验证 * @request POST:/api/admin/captcha/check * @secure */ check = ( data: SlideTrack, query?: { id?: string }, params: RequestParams = {} ) => this.request({ path: `/api/admin/captcha/check`, method: 'POST', query: query, body: data, secure: true, type: ContentType.Json, format: 'json', ...params, }) }