/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { Know } from '../models/Know'; import type { KnowQueryRequest } from '../models/KnowQueryRequest'; import type { KnowRequest } from '../models/KnowRequest'; import type { KnowupdateRequest } from '../models/KnowupdateRequest'; import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; export class KnowControllerService { /** * add * @param knowAddRequest knowAddRequest * @returns boolean OK * @returns any Created * @throws ApiError */ public static addUsingPost1( knowAddRequest: KnowRequest, ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/know/add', body: knowAddRequest, errors: { 401: `Unauthorized`, 403: `Forbidden`, 404: `Not Found`, }, }); } /** * deleteKnow * @param ids ids * @returns number OK * @returns any Created * @throws ApiError */ public static deleteKnowUsingPost1( ids: Array, ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/know/delete', body: ids, errors: { 401: `Unauthorized`, 403: `Forbidden`, 404: `Not Found`, }, }); } /** * query * @param knowQueryRequest knowQueryRequest * @returns Know OK * @returns any Created * @throws ApiError */ public static queryUsingPost1( knowQueryRequest: KnowQueryRequest, ): CancelablePromise | any> { return __request(OpenAPI, { method: 'POST', url: '/api/know/query', body: knowQueryRequest, errors: { 401: `Unauthorized`, 403: `Forbidden`, 404: `Not Found`, }, }); } /** * update * @param knowAddRequest knowAddRequest * @returns boolean OK * @returns any Created * @throws ApiError */ public static updateUsingPost1( knowAddRequest: KnowupdateRequest, ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/know/update', body: knowAddRequest, errors: { 401: `Unauthorized`, 403: `Forbidden`, 404: `Not Found`, }, }); } }