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.

513 lines
16 KiB

6 months ago
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
5 months ago
import type { BaseResponse } from '../models/BaseResponse';
6 months ago
import type { BaseResponse_CoursesDTO_ } from '../models/BaseResponse_CoursesDTO_';
5 months ago
import type { BaseResponse_List_CourseObjectivesTreeVO_ } from '../models/BaseResponse_List_CourseObjectivesTreeVO_';
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_';
5 months ago
import type { BaseResponse_ObjectiveContents_ } from '../models/BaseResponse_ObjectiveContents_';
6 months ago
import type { BaseResponse_PageDTO_CoursesVO_ } from '../models/BaseResponse_PageDTO_CoursesVO_';
import type { BaseResponse_string_ } from '../models/BaseResponse_string_';
import type { CourseObjectivesDTO } from '../models/CourseObjectivesDTO';
import type { CoursesDTO } from '../models/CoursesDTO';
5 months ago
import type { ObjectiveContentKnowDTO } from '../models/ObjectiveContentKnowDTO';
import type { ObjectiveContents_ } from '../models/ObjectiveContents_';
import type { ObjectivesType_ } from '../models/ObjectivesType_';
import type { StudentCoursesDTO } from '../models/StudentCoursesDTO';
6 months ago
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class Service {
/**
*
* @param courseObjectivesDto courseObjectivesDTO
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
5 months ago
public static updateCourseObjectivesUsingPut1(
6 months ago
courseObjectivesDto: CourseObjectivesDTO,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'PUT',
url: '/course_objectives',
body: courseObjectivesDto,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* -
* @param courseObjectivesDto courseObjectivesDTO
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
5 months ago
public static saveCourseObjectivesUsingPost1(
6 months ago
courseObjectivesDto: CourseObjectivesDTO,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/course_objectives/addobjectives',
body: courseObjectivesDto,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
5 months ago
*
* @param id id
* @returns BaseResponse_List_CourseObjectivesTreeVO_ OK
* @throws ApiError
*/
public static queryCourseObjectivesTreeUsingGet1(
id: string,
): CancelablePromise<BaseResponse_List_CourseObjectivesTreeVO_> {
return __request(OpenAPI, {
method: 'GET',
url: '/course_objectives/list/{id}',
path: {
'id': id,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* --
6 months ago
* @param id id
* @returns BaseResponse_string_ OK
* @throws ApiError
*/
5 months ago
public static deleteCourseObjectivesByIdsUsingDelete1(
6 months ago
id: string,
): CancelablePromise<BaseResponse_string_> {
return __request(OpenAPI, {
method: 'DELETE',
url: '/course_objectives/{id}',
path: {
'id': id,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
},
});
}
/**
* id修改课程
* @param coursesDto coursesDTO
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
5 months ago
public static editCourseUsingPut1(
6 months ago
coursesDto: CoursesDTO,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'PUT',
url: '/coursesteacher',
body: coursesDto,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
5 months ago
* --
6 months ago
* @param coursesDto coursesDTO
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
5 months ago
public static saveCourseUsingPost1(
6 months ago
coursesDto: CoursesDTO,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/coursesteacher/addcourse',
5 months ago
body: coursesDto,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* word
* @returns any OK
* @throws ApiError
*/
public static testUsingGet1(): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/coursesteacher/down',
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param page page
* @param pageSize pageSize
* @returns BaseResponse_Map_string_object_ OK
* @throws ApiError
*/
public static getDataUsingGet1(
page: number,
pageSize: number,
): CancelablePromise<BaseResponse_Map_string_object_> {
return __request(OpenAPI, {
method: 'GET',
url: '/coursesteacher/index',
6 months ago
query: {
5 months ago
'page': page,
'pageSize': pageSize,
6 months ago
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
5 months ago
* @param username username
* @param assessmenttype
* @param category
6 months ago
* @param isAsc
* @param name
5 months ago
* @param nature
6 months ago
* @param pageNo
5 months ago
* @param pageSize
6 months ago
* @param sortBy
5 months ago
* @param teacher
6 months ago
* @returns BaseResponse_PageDTO_CoursesVO_ OK
* @throws ApiError
*/
5 months ago
public static getCoursesUsingGet1(
username: string,
assessmenttype?: string,
category?: string,
6 months ago
isAsc?: boolean,
name?: string,
5 months ago
nature?: string,
6 months ago
pageNo?: number,
pageSize?: number,
sortBy?: string,
5 months ago
teacher?: string,
6 months ago
): CancelablePromise<BaseResponse_PageDTO_CoursesVO_> {
return __request(OpenAPI, {
method: 'GET',
url: '/coursesteacher/page',
query: {
5 months ago
'assessmenttype': assessmenttype,
'category': category,
6 months ago
'isAsc': isAsc,
'name': name,
5 months ago
'nature': nature,
6 months ago
'pageNo': pageNo,
'pageSize': pageSize,
'sortBy': sortBy,
5 months ago
'teacher': teacher,
'username': username,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* id查询课程
* @param id id
* @returns BaseResponse_CoursesDTO_ OK
* @throws ApiError
*/
public static getByIdCourseUsingGet1(
id: string,
): CancelablePromise<BaseResponse_CoursesDTO_> {
return __request(OpenAPI, {
method: 'GET',
url: '/coursesteacher/{id}',
path: {
'id': id,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* id删除课程
* @param id id
* @returns BaseResponse OK
* @throws ApiError
*/
public static deleteCoursesUsingDelete1(
id: string,
): CancelablePromise<BaseResponse> {
return __request(OpenAPI, {
method: 'DELETE',
url: '/coursesteacher/{id}',
path: {
'id': id,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
},
});
}
/**
*
* @param objectiveContentKnowDto objectiveContentKnowDTO
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
public static saveKnowsWithObjectiveOrContentUsingPost1(
objectiveContentKnowDto: ObjectiveContentKnowDTO,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/objective_content_know/addknows',
body: objectiveContentKnowDto,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param objectiveId objectiveId
* @returns BaseResponse_ObjectiveContentKnowVO_ OK
* @throws ApiError
*/
public static getCountDataUsingGet1(
objectiveId: string,
): CancelablePromise<BaseResponse_ObjectiveContentKnowVO_> {
return __request(OpenAPI, {
method: 'GET',
url: '/objective_content_know/{objectiveId}',
path: {
'objectiveId': objectiveId,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param objectiveContents objectiveContents
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
public static saveContentUsingPost1(
objectiveContents: ObjectiveContents_,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/objective_contents/addcontent',
body: objectiveContents,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
6 months ago
},
5 months ago
});
}
/**
*
* @param objectiveContents objectiveContents
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
public static updateContentUsingPut1(
objectiveContents: ObjectiveContents_,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'PUT',
url: '/objective_contents/update',
body: objectiveContents,
6 months ago
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
5 months ago
/**
* id查询目标内容
* @param id id
* @returns BaseResponse_ObjectiveContents_ OK
* @throws ApiError
*/
public static updateContentUsingGet1(
id: string,
): CancelablePromise<BaseResponse_ObjectiveContents_> {
return __request(OpenAPI, {
method: 'GET',
url: '/objective_contents/{id}',
path: {
'id': id,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
6 months ago
/**
5 months ago
*
* @param id id
6 months ago
* @returns BaseResponse_string_ OK
* @throws ApiError
*/
5 months ago
public static deleteContentUsingDelete1(
id: string,
6 months ago
): CancelablePromise<BaseResponse_string_> {
return __request(OpenAPI, {
method: 'DELETE',
5 months ago
url: '/objective_contents/{id}',
6 months ago
path: {
5 months ago
'id': id,
6 months ago
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
},
});
}
/**
5 months ago
*
* @param objectivesType objectivesType
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
public static updateObjectivesUsingPut1(
objectivesType: ObjectivesType_,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'PUT',
url: '/objectives_type',
body: objectivesType,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param objectivesType objectivesType
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
public static saveObjectivesUsingPost1(
objectivesType: ObjectivesType_,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/objectives_type/addobjectives',
body: objectivesType,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
6 months ago
* @param id id
5 months ago
* @returns BaseResponse_string_ OK
6 months ago
* @throws ApiError
*/
5 months ago
public static deleteObjectivesUsingDelete1(
6 months ago
id: string,
5 months ago
): CancelablePromise<BaseResponse_string_> {
6 months ago
return __request(OpenAPI, {
5 months ago
method: 'DELETE',
url: '/objectives_type/deleteobjectives/{id}',
6 months ago
path: {
'id': id,
},
5 months ago
errors: {
401: `Unauthorized`,
403: `Forbidden`,
},
});
}
/**
*
* @returns BaseResponse_List_ObjectivesType_ OK
* @throws ApiError
*/
public static objectivesListUsingGet1(): CancelablePromise<BaseResponse_List_ObjectivesType_> {
return __request(OpenAPI, {
method: 'GET',
url: '/objectives_type/list',
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param studentCoursesDto studentCoursesDTO
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
public static saveCoursesToStudentsUsingPost1(
studentCoursesDto: StudentCoursesDTO,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/student_courses/addcoursess',
body: studentCoursesDto,
6 months ago
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
}