/* eslint-disable */
/* tslint:disable */
/*
 * ---------------------------------------------------------------
 * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API        ##
 * ##                                                           ##
 * ## AUTHOR: acacode                                           ##
 * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
 * ---------------------------------------------------------------
 */

import { PageInputTaskLogGetPageDto, ResultOutputPageOutputTaskLog } from './data-contracts'
import { ContentType, HttpClient, RequestParams } from './http-client'

export class TaskLog<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
  /**
   * No description
   *
   * @tags task-log
   * @name GetPage
   * @summary 查询任务日志列表
   * @request POST:/api/admin/task-log/get-page
   * @secure
   */
  getPage = (data: PageInputTaskLogGetPageDto, params: RequestParams = {}) =>
    this.request<ResultOutputPageOutputTaskLog, any>({
      path: `/api/admin/task-log/get-page`,
      method: 'POST',
      body: data,
      secure: true,
      type: ContentType.Json,
      format: 'json',
      ...params,
    })
}
