// @ts-ignore
|
/* eslint-disable */
|
import { request } from "umi";
|
|
/** 删除培训机构 POST /oa/trainOrg/DelTrainOrg */
|
export async function postOaTrainOrgDelTrainOrg(
|
body: API.DelRequestBase,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainOrg/DelTrainOrg", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 获取培训机构列表 POST /oa/trainOrg/GetTrainOrgList */
|
export async function postOaTrainOrgGetTrainOrgList(
|
body: API.GetTrainOrgListRequest,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainOrg/GetTrainOrgList", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 新建培训机构 POST /oa/trainOrg/NewTrainOrg */
|
export async function postOaTrainOrgNewTrainOrg(
|
body: API.NewTrainOrgRequest,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainOrg/NewTrainOrg", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 更新培训机构 POST /oa/trainOrg/UpdateTrainOrg */
|
export async function postOaTrainOrgUpdateTrainOrg(
|
body: API.UpdateTrainOrgRequest,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainOrg/UpdateTrainOrg", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|