diff --git a/generated/core/OpenAPI.ts b/generated/core/OpenAPI.ts index 5baf572..23fcd90 100644 --- a/generated/core/OpenAPI.ts +++ b/generated/core/OpenAPI.ts @@ -2,23 +2,23 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { ApiRequestOptions } from './ApiRequestOptions' -// 引入设置token的方法 -import { GET_TKOEN } from '@/utils/token' -type Resolver = (options: ApiRequestOptions) => Promise -type Headers = Record +import { GET_TKOEN } from '@/utils/token'; +import type { ApiRequestOptions } from './ApiRequestOptions'; + +type Resolver = (options: ApiRequestOptions) => Promise; +type Headers = Record; export type OpenAPIConfig = { - BASE: string - VERSION: string - WITH_CREDENTIALS: boolean - CREDENTIALS: 'include' | 'omit' | 'same-origin' - TOKEN?: string | Resolver | undefined - USERNAME?: string | Resolver | undefined - PASSWORD?: string | Resolver | undefined - HEADERS?: Headers | Resolver | undefined - ENCODE_PATH?: ((path: string) => string) | undefined -} + BASE: string; + VERSION: string; + WITH_CREDENTIALS: boolean; + CREDENTIALS: 'include' | 'omit' | 'same-origin'; + TOKEN?: string | Resolver | undefined; + USERNAME?: string | Resolver | undefined; + PASSWORD?: string | Resolver | undefined; + HEADERS?: Headers | Resolver | undefined; + ENCODE_PATH?: ((path: string) => string) | undefined; +}; export const OpenAPI: OpenAPIConfig = { BASE: 'http://39.106.16.162:8080', @@ -32,4 +32,4 @@ export const OpenAPI: OpenAPIConfig = { Authorization: 'Bearer ' + GET_TKOEN('TOKEN'), }, ENCODE_PATH: undefined, -} +} \ No newline at end of file diff --git a/generated/index.ts b/generated/index.ts index 82b3388..13d0502 100644 --- a/generated/index.ts +++ b/generated/index.ts @@ -18,6 +18,7 @@ export type { BaseResponse_List_TeacherInfVO_ } from './models/BaseResponse_List export type { BaseResponse_long_ } from './models/BaseResponse_long_'; export type { BaseResponse_Map_string_object_ } from './models/BaseResponse_Map_string_object_'; export type { BaseResponse_ObjectiveContentKnowVO_ } from './models/BaseResponse_ObjectiveContentKnowVO_'; +export type { BaseResponse_ObjectiveContents_ } from './models/BaseResponse_ObjectiveContents_'; export type { BaseResponse_Page_ } from './models/BaseResponse_Page_'; export type { BaseResponse_Page_CourseFavourDetailVO_ } from './models/BaseResponse_Page_CourseFavourDetailVO_'; export type { BaseResponse_Page_CourseResources_ } from './models/BaseResponse_Page_CourseResources_'; diff --git a/generated/models/BaseResponse_ObjectiveContents_.ts b/generated/models/BaseResponse_ObjectiveContents_.ts new file mode 100644 index 0000000..2900ff2 --- /dev/null +++ b/generated/models/BaseResponse_ObjectiveContents_.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { ObjectiveContents_ } from './ObjectiveContents_'; +export type BaseResponse_ObjectiveContents_ = { + code?: number; + data?: ObjectiveContents_; + message?: string; +}; + diff --git a/generated/services/CourseResourceControllerService.ts b/generated/services/CourseResourceControllerService.ts index f15a92d..eaf8d55 100644 --- a/generated/services/CourseResourceControllerService.ts +++ b/generated/services/CourseResourceControllerService.ts @@ -5,6 +5,7 @@ import type { BaseResponse_List_CourseResources_ } from '../models/BaseResponse_List_CourseResources_'; import type { BaseResponse_Page_ } from '../models/BaseResponse_Page_'; import type { BaseResponse_string_ } from '../models/BaseResponse_string_'; +import type { CourseResources } from '../models/CourseResources'; import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; @@ -74,4 +75,24 @@ export class CourseResourceControllerService { }, }); } + /** + * saveCourseResource + * @param courseResources courseResources + * @returns BaseResponse_string_ OK + * @throws ApiError + */ + public static saveCourseResourceUsingGet1( + courseResources: CourseResources, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/courses/save', + body: courseResources, + errors: { + 401: `Unauthorized`, + 403: `Forbidden`, + 404: `Not Found`, + }, + }); + } } diff --git a/generated/services/Service.ts b/generated/services/Service.ts index 8ac9062..f863a4e 100644 --- a/generated/services/Service.ts +++ b/generated/services/Service.ts @@ -8,6 +8,7 @@ import type { BaseResponse_List_CourseObjectivesTreeVO_ } from '../models/BaseRe import type { BaseResponse_List_ObjectivesType_ } from '../models/BaseResponse_List_ObjectivesType_'; import type { BaseResponse_Map_string_object_ } from '../models/BaseResponse_Map_string_object_'; import type { BaseResponse_ObjectiveContentKnowVO_ } from '../models/BaseResponse_ObjectiveContentKnowVO_'; +import type { BaseResponse_ObjectiveContents_ } from '../models/BaseResponse_ObjectiveContents_'; import type { BaseResponse_PageDTO_CoursesVO_ } from '../models/BaseResponse_PageDTO_CoursesVO_'; import type { BaseResponse_string_ } from '../models/BaseResponse_string_'; import type { CourseObjectivesDTO } from '../models/CourseObjectivesDTO'; @@ -365,6 +366,28 @@ export class Service { }, }); } + /** + * 根据id查询目标内容 + * @param id id + * @returns BaseResponse_ObjectiveContents_ OK + * @throws ApiError + */ + public static updateContentUsingGet1( + id: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/objective_contents/{id}', + path: { + 'id': id, + }, + errors: { + 401: `Unauthorized`, + 403: `Forbidden`, + 404: `Not Found`, + }, + }); + } /** * 删除目标内容 * @param id id