You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
2.7 KiB
98 lines
2.7 KiB
3 months ago
|
/* 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<boolean | any> {
|
||
|
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<number>,
|
||
|
): CancelablePromise<number | any> {
|
||
|
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<Array<Know> | 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<boolean | any> {
|
||
|
return __request(OpenAPI, {
|
||
|
method: 'POST',
|
||
|
url: '/api/know/update',
|
||
|
body: knowAddRequest,
|
||
|
errors: {
|
||
|
401: `Unauthorized`,
|
||
|
403: `Forbidden`,
|
||
|
404: `Not Found`,
|
||
|
},
|
||
|
});
|
||
|
}
|
||
|
}
|