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.
122 lines
4.2 KiB
122 lines
4.2 KiB
/* generated using openapi-typescript-codegen -- do not edit */ |
|
/* istanbul ignore file */ |
|
/* tslint:disable */ |
|
/* eslint-disable */ |
|
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_'; |
|
import type { BaseResponse_List_string_ } from '../models/BaseResponse_List_string_'; |
|
import type { BaseResponse_long_ } from '../models/BaseResponse_long_'; |
|
import type { BaseResponse_Page_CourseFavourDetailVO_ } from '../models/BaseResponse_Page_CourseFavourDetailVO_'; |
|
import type { CourseFavourAddRequest } from '../models/CourseFavourAddRequest'; |
|
import type { CourseFavourAllRequest } from '../models/CourseFavourAllRequest'; |
|
import type { CourseFavourListRequest } from '../models/CourseFavourListRequest'; |
|
import type { CourseFavourQueryRequest } from '../models/CourseFavourQueryRequest'; |
|
import type { CancelablePromise } from '../core/CancelablePromise'; |
|
import { OpenAPI } from '../core/OpenAPI'; |
|
import { request as __request } from '../core/request'; |
|
export class SeCourseFavourControllerService { |
|
/** |
|
* doFavour |
|
* @param courseFavourAddRequest courseFavourAddRequest |
|
* @returns BaseResponse_boolean_ OK |
|
* @returns any Created |
|
* @throws ApiError |
|
*/ |
|
public static doFavourUsingPost( |
|
courseFavourAddRequest: CourseFavourAddRequest, |
|
): CancelablePromise<BaseResponse_boolean_ | any> { |
|
return __request(OpenAPI, { |
|
method: 'POST', |
|
url: '/course_favour/add', |
|
body: courseFavourAddRequest, |
|
errors: { |
|
401: `Unauthorized`, |
|
403: `Forbidden`, |
|
404: `Not Found`, |
|
}, |
|
}); |
|
} |
|
/** |
|
* favourCount |
|
* @param courseFavourAddRequest courseFavourAddRequest |
|
* @returns BaseResponse_long_ OK |
|
* @returns any Created |
|
* @throws ApiError |
|
*/ |
|
public static favourCountUsingPost( |
|
courseFavourAddRequest: CourseFavourAddRequest, |
|
): CancelablePromise<BaseResponse_long_ | any> { |
|
return __request(OpenAPI, { |
|
method: 'POST', |
|
url: '/course_favour/count', |
|
body: courseFavourAddRequest, |
|
errors: { |
|
401: `Unauthorized`, |
|
403: `Forbidden`, |
|
404: `Not Found`, |
|
}, |
|
}); |
|
} |
|
/** |
|
* courseCount |
|
* @param courseFavourAllRequest courseFavourAllRequest |
|
* @returns BaseResponse_long_ OK |
|
* @returns any Created |
|
* @throws ApiError |
|
*/ |
|
public static courseCountUsingPost( |
|
courseFavourAllRequest: CourseFavourAllRequest, |
|
): CancelablePromise<BaseResponse_long_ | any> { |
|
return __request(OpenAPI, { |
|
method: 'POST', |
|
url: '/course_favour/countAll', |
|
body: courseFavourAllRequest, |
|
errors: { |
|
401: `Unauthorized`, |
|
403: `Forbidden`, |
|
404: `Not Found`, |
|
}, |
|
}); |
|
} |
|
/** |
|
* courseList |
|
* @param courseFavourListRequest courseFavourListRequest |
|
* @returns BaseResponse_List_string_ OK |
|
* @returns any Created |
|
* @throws ApiError |
|
*/ |
|
public static courseListUsingPost( |
|
courseFavourListRequest: CourseFavourListRequest, |
|
): CancelablePromise<BaseResponse_List_string_ | any> { |
|
return __request(OpenAPI, { |
|
method: 'POST', |
|
url: '/course_favour/countList', |
|
body: courseFavourListRequest, |
|
errors: { |
|
401: `Unauthorized`, |
|
403: `Forbidden`, |
|
404: `Not Found`, |
|
}, |
|
}); |
|
} |
|
/** |
|
* listPostByPage |
|
* @param courseFavourQueryRequest courseFavourQueryRequest |
|
* @returns BaseResponse_Page_CourseFavourDetailVO_ OK |
|
* @returns any Created |
|
* @throws ApiError |
|
*/ |
|
public static listPostByPageUsingPost( |
|
courseFavourQueryRequest: CourseFavourQueryRequest, |
|
): CancelablePromise<BaseResponse_Page_CourseFavourDetailVO_ | any> { |
|
return __request(OpenAPI, { |
|
method: 'POST', |
|
url: '/course_favour/list/page', |
|
body: courseFavourQueryRequest, |
|
errors: { |
|
401: `Unauthorized`, |
|
403: `Forbidden`, |
|
404: `Not Found`, |
|
}, |
|
}); |
|
} |
|
}
|
|
|