1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- /* 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<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
- /**
- * No description
- *
- * @tags captcha
- * @name Generate
- * @summary 生成
- * @request POST:/api/admin/captcha/generate
- * @secure
- */
- generate = (
- query?: {
- captchaId?: string
- },
- params: RequestParams = {}
- ) =>
- this.request<ResultOutputCaptchaData, any>({
- 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<ResultOutputValidateResult, any>({
- path: `/api/admin/captcha/check`,
- method: 'POST',
- query: query,
- body: data,
- secure: true,
- type: ContentType.Json,
- format: 'json',
- ...params,
- })
- }
|