// @ts-ignore
|
/* eslint-disable */
|
import { request } from "umi";
|
|
/** 删除培训需求 POST /oa/trainPlan/DelTrainRequirement */
|
export async function postOaTrainPlanDelTrainRequirement(
|
body: API.DelRequestBase,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainPlan/DelTrainRequirement", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 获取培训需求列表 POST /oa/trainPlan/GetTrainRequirementList */
|
export async function postOaTrainPlanGetTrainRequirementList(
|
body: API.GetTrainRequirementListRequest,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainPlan/GetTrainRequirementList", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 新建培训需求 POST /oa/trainPlan/NewTrainRequirement */
|
export async function postOaTrainPlanNewTrainRequirement(
|
body: API.NewTrainRequirementRequest,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainPlan/NewTrainRequirement", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 更新培训需求 POST /oa/trainPlan/UpdateTrainRequirement */
|
export async function postOaTrainPlanUpdateTrainRequirement(
|
body: API.UpdateTrainRequirementRequest,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainPlan/UpdateTrainRequirement", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|