mirror of
https://github.com/shuguangnet/Code-Master.git
synced 2025-01-23 07:58:44 +08:00
84 lines
2.6 KiB
TypeScript
84 lines
2.6 KiB
TypeScript
/* generated using openapi-typescript-codegen -- do no edit */
|
|
/* istanbul ignore file */
|
|
/* tslint:disable */
|
|
/* eslint-disable */
|
|
import type { BaseResponse_int_ } from '../models/BaseResponse_int_';
|
|
import type { BaseResponse_Page_PostVO_ } from '../models/BaseResponse_Page_PostVO_';
|
|
import type { PostFavourAddRequest } from '../models/PostFavourAddRequest';
|
|
import type { PostFavourQueryRequest } from '../models/PostFavourQueryRequest';
|
|
import type { PostQueryRequest } from '../models/PostQueryRequest';
|
|
|
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
import { OpenAPI } from '../core/OpenAPI';
|
|
import { request as __request } from '../core/request';
|
|
|
|
export class PostFavourControllerService {
|
|
|
|
/**
|
|
* doPostFavour
|
|
* @param postFavourAddRequest postFavourAddRequest
|
|
* @returns BaseResponse_int_ OK
|
|
* @returns any Created
|
|
* @throws ApiError
|
|
*/
|
|
public static doPostFavourUsingPost(
|
|
postFavourAddRequest: PostFavourAddRequest,
|
|
): CancelablePromise<BaseResponse_int_ | any> {
|
|
return __request(OpenAPI, {
|
|
method: 'POST',
|
|
url: '/api/post_favour/',
|
|
body: postFavourAddRequest,
|
|
errors: {
|
|
401: `Unauthorized`,
|
|
403: `Forbidden`,
|
|
404: `Not Found`,
|
|
},
|
|
});
|
|
}
|
|
|
|
/**
|
|
* listFavourPostByPage
|
|
* @param postFavourQueryRequest postFavourQueryRequest
|
|
* @returns BaseResponse_Page_PostVO_ OK
|
|
* @returns any Created
|
|
* @throws ApiError
|
|
*/
|
|
public static listFavourPostByPageUsingPost(
|
|
postFavourQueryRequest: PostFavourQueryRequest,
|
|
): CancelablePromise<BaseResponse_Page_PostVO_ | any> {
|
|
return __request(OpenAPI, {
|
|
method: 'POST',
|
|
url: '/api/post_favour/list/page',
|
|
body: postFavourQueryRequest,
|
|
errors: {
|
|
401: `Unauthorized`,
|
|
403: `Forbidden`,
|
|
404: `Not Found`,
|
|
},
|
|
});
|
|
}
|
|
|
|
/**
|
|
* listMyFavourPostByPage
|
|
* @param postQueryRequest postQueryRequest
|
|
* @returns BaseResponse_Page_PostVO_ OK
|
|
* @returns any Created
|
|
* @throws ApiError
|
|
*/
|
|
public static listMyFavourPostByPageUsingPost(
|
|
postQueryRequest: PostQueryRequest,
|
|
): CancelablePromise<BaseResponse_Page_PostVO_ | any> {
|
|
return __request(OpenAPI, {
|
|
method: 'POST',
|
|
url: '/api/post_favour/my/list/page',
|
|
body: postQueryRequest,
|
|
errors: {
|
|
401: `Unauthorized`,
|
|
403: `Forbidden`,
|
|
404: `Not Found`,
|
|
},
|
|
});
|
|
}
|
|
|
|
}
|