// @ts-ignore
|
/* eslint-disable */
|
import { request } from "umi";
|
|
/** 删除培训规章制度 POST /oa/trainRules/DelTrainOrg */
|
export async function postOaTrainRulesDelTrainOrg(
|
body: API.DelRequestBase,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainRules/DelTrainOrg", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 获取培训规章制度列表 POST /oa/trainRules/GetTrainRulesList */
|
export async function postOaTrainRulesGetTrainRulesList(
|
body: API.GetTrainRulesListRequest,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainRules/GetTrainRulesList", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 新建培训规章制度 POST /oa/trainRules/NewTrainRules */
|
export async function postOaTrainRulesNewTrainRules(
|
body: API.NewTrainRulesRequest,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainRules/NewTrainRules", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 更新培训规章制度 POST /oa/trainRules/UpdateTrainRules */
|
export async function postOaTrainRulesUpdateTrainRules(
|
body: API.UpdateTrainRulesRequest,
|
options?: { [key: string]: any }
|
) {
|
return request<API.ResponseData>("/oa/trainRules/UpdateTrainRules", {
|
method: "POST",
|
headers: {
|
"Content-Type": "application/json",
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|