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
13 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'
import type { BaseResponse_CoursesDTO_ } from '../models/BaseResponse_CoursesDTO_'
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_'
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'
import type { CoursesDTO } from '../models/CoursesDTO'
import type { ObjectiveContentKnowDTO } from '../models/ObjectiveContentKnowDTO'
import type { ObjectiveContents_ } from '../models/ObjectiveContents_'
import type { ObjectivesType_ } from '../models/ObjectivesType_'
import type { StudentCoursesDTO } from '../models/StudentCoursesDTO'
import type { CancelablePromise } from '../core/CancelablePromise'
import { OpenAPI } from '../core/OpenAPI'
import { request as __request } from '../core/request'
6 months ago
export class Service {
5 months ago
/**
*
* @param courseObjectivesDto courseObjectivesDTO
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
public static updateCourseObjectivesUsingPut1(
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
*/
public static saveCourseObjectivesUsingPost1(
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`,
},
})
}
/**
*
* @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`,
},
})
}
/**
* --
* @param id id
* @returns BaseResponse_string_ OK
* @throws ApiError
*/
public static deleteCourseObjectivesByIdsUsingDelete1(
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
*/
public static editCourseUsingPut1(
coursesDto: CoursesDTO,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'PUT',
url: '/coursesteacher',
body: coursesDto,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* --
* @param coursesDto coursesDTO
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
public static saveCourseUsingPost1(
coursesDto: CoursesDTO,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/coursesteacher/addcourse',
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',
query: {
page: page,
pageSize: pageSize,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
*
* @param username username
* @param assessmenttype
* @param category
* @param isAsc
* @param name
* @param nature
* @param pageNo
* @param pageSize
* @param sortBy
* @param teacher
* @returns BaseResponse_PageDTO_CoursesVO_ OK
* @throws ApiError
*/
public static getCoursesUsingGet1(
username: string,
assessmenttype?: string,
category?: string,
isAsc?: boolean,
name?: string,
nature?: string,
pageNo?: number,
pageSize?: number,
sortBy?: string,
teacher?: string,
): CancelablePromise<BaseResponse_PageDTO_CoursesVO_> {
return __request(OpenAPI, {
method: 'GET',
url: '/coursesteacher/page',
query: {
assessmenttype: assessmenttype,
category: category,
isAsc: isAsc,
name: name,
nature: nature,
pageNo: pageNo,
pageSize: pageSize,
sortBy: sortBy,
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`,
},
})
}
/**
*
* @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,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* 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`,
},
})
}
/**
*
* @param id id
* @returns BaseResponse_string_ OK
* @throws ApiError
*/
public static deleteContentUsingDelete1(
id: string,
): CancelablePromise<BaseResponse_string_> {
return __request(OpenAPI, {
method: 'DELETE',
url: '/objective_contents/{id}',
path: {
id: id,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
},
})
}
/**
*
* @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`,
},
})
}
/**
*
* @param id id
* @returns BaseResponse_string_ OK
* @throws ApiError
*/
public static deleteObjectivesUsingDelete1(
id: string,
): CancelablePromise<BaseResponse_string_> {
return __request(OpenAPI, {
method: 'DELETE',
url: '/objectives_type/deleteobjectives/{id}',
path: {
id: id,
},
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,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
6 months ago
}