// @ts-ignore
|
/* eslint-disable */
|
import { request } from "umi";
|
|
/** 删除培训计划 POST /oa/trainPlan/DelTrainPlan */
|
export async function postOaTrainPlanDelTrainPlan(
|
body: API.DelRequestBase,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainPlan/DelTrainPlan", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 获取培训计划列表 POST /oa/trainPlan/GetTrainPlanList */
|
export async function postOaTrainPlanGetTrainPlanList(
|
body: API.GetTrainPlanListRequest,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainPlan/GetTrainPlanList", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 审批培训计划 POST /oa/trainPlan/NewApprove */
|
export async function postOaTrainPlanNewApprove(
|
body: API.NewApproveRequest,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainPlan/NewApprove", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 新建培训计划 POST /oa/trainPlan/NewTrainPlan */
|
export async function postOaTrainPlanNewTrainPlan(
|
body: API.NewTrainPlanRequest,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainPlan/NewTrainPlan", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 更新培训计划 POST /oa/trainPlan/UpdateTrainPlan */
|
export async function postOaTrainPlanUpdateTrainPlan(
|
body: API.UpdateTrainPlanRequest,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainPlan/UpdateTrainPlan", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|