|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import { request } from 'umi';
|
|
|
|
|
import { TableListItem } from './data';
|
|
|
|
|
import type { TableListItem } from './data';
|
|
|
|
|
|
|
|
|
|
/** 获取考试列表 GET /dsideal_yy/zygh/training/examination/getExaminationList */
|
|
|
|
|
export async function queryExaminationList(
|
|
|
|
@ -10,7 +10,7 @@ export async function queryExaminationList(
|
|
|
|
|
/** 页面的容量 */
|
|
|
|
|
pageSize?: number;
|
|
|
|
|
},
|
|
|
|
|
options?: { [key: string]: any },
|
|
|
|
|
options?: Record<string, any>,
|
|
|
|
|
) {
|
|
|
|
|
return request<{
|
|
|
|
|
data: TableListItem[];
|
|
|
|
@ -37,7 +37,7 @@ export async function queryCertificateList(
|
|
|
|
|
/** 页面的容量 */
|
|
|
|
|
pageSize?: number;
|
|
|
|
|
},
|
|
|
|
|
options?: { [key: string]: any },
|
|
|
|
|
options?: Record<string, any>,
|
|
|
|
|
) {
|
|
|
|
|
return request<{
|
|
|
|
|
data: TableListItem[];
|
|
|
|
@ -56,7 +56,7 @@ export async function queryCertificateList(
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 新建/修改考试 POST /dsideal_yy/ypt/careerTraining/course/save */
|
|
|
|
|
export async function saveExamination(data: { [key: string]: any }, options?: { [key: string]: any }) {
|
|
|
|
|
export async function saveExamination(data: Record<string, any>, options?: Record<string, any>) {
|
|
|
|
|
return request<TableListItem>('/dsideal_yy/ypt/careerTraining/course/save', {
|
|
|
|
|
data,
|
|
|
|
|
method: 'POST',
|
|
|
|
@ -65,7 +65,23 @@ export async function saveExamination(data: { [key: string]: any }, options?: {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 删除考试 POST /dsideal_yy/ypt/careerTraining/course/delete */
|
|
|
|
|
export async function removeExamination(data: { key: number[] }, options?: { [key: string]: any }) {
|
|
|
|
|
export async function removeExamination(data: { key: number[] }, options?: Record<string, any>) {
|
|
|
|
|
return request<Record<string, any>>('/dsideal_yy/ypt/careerTraining/course/delete', {
|
|
|
|
|
data,
|
|
|
|
|
method: 'POST',
|
|
|
|
|
...(options || {}),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
/** saveRegistration */
|
|
|
|
|
export async function saveRegistration(data: { key: number[] }, options?: Record<string, any>) {
|
|
|
|
|
return request<Record<string, any>>('/dsideal_yy/ypt/careerTraining/course/delete', {
|
|
|
|
|
data,
|
|
|
|
|
method: 'POST',
|
|
|
|
|
...(options || {}),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
/** removeRegistration */
|
|
|
|
|
export async function removeRegistration(data: { key: number[] }, options?: Record<string, any>) {
|
|
|
|
|
return request<Record<string, any>>('/dsideal_yy/ypt/careerTraining/course/delete', {
|
|
|
|
|
data,
|
|
|
|
|
method: 'POST',
|
|
|
|
@ -74,7 +90,7 @@ export async function removeExamination(data: { key: number[] }, options?: { [ke
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 查看考试(仅仅获取考试详情,不标记浏览量)GET /dsideal_yy/ypt/careerTraining/course/view */
|
|
|
|
|
export async function queryExaminationView(data: { [key: string]: any }, options?: { [key: string]: any }) {
|
|
|
|
|
export async function queryExaminationView(data: Record<string, any>, options?: Record<string, any>) {
|
|
|
|
|
return request<TableListItem>('/dsideal_yy/ypt/careerTraining/course/view', {
|
|
|
|
|
data,
|
|
|
|
|
method: 'POST',
|
|
|
|
@ -91,7 +107,7 @@ export async function queryRegistrationList(
|
|
|
|
|
/** 页面的容量 */
|
|
|
|
|
pageSize?: number;
|
|
|
|
|
},
|
|
|
|
|
options?: { [key: string]: any },
|
|
|
|
|
options?: Record<string, any>,
|
|
|
|
|
) {
|
|
|
|
|
return request<{
|
|
|
|
|
data: TableListItem[];
|
|
|
|
|