Code-Master/generateds/services/PostThumbControllerService.ts

37 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

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