zhongshujie
2025-08-01 07d1135a1913a919679dc23f0a38b9b61987171f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// @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 || {}),
  });
}