Code-Master/generated/services/PostThumbControllerService.ts
2024-09-01 21:31:38 +08:00

33 lines
1.1 KiB
TypeScript

/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_int_ } from '../models/BaseResponse_int_';
import type { PostThumbAddRequest } from '../models/PostThumbAddRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class PostThumbControllerService {
/**
* doThumb
* @param postThumbAddRequest postThumbAddRequest
* @returns BaseResponse_int_ OK
* @returns any Created
* @throws ApiError
*/
public static doThumbUsingPost(
postThumbAddRequest: PostThumbAddRequest,
): CancelablePromise<BaseResponse_int_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/post_thumb/',
body: postThumbAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
}