You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
660 B
27 lines
660 B
import request from '@/config/axios'
|
|
|
|
export type LeaveVO = {
|
|
id: number
|
|
result: number
|
|
type: number
|
|
reason: string
|
|
processInstanceId: string
|
|
startTime: string
|
|
endTime: string
|
|
createTime: string
|
|
}
|
|
|
|
// 创建请假申请
|
|
export const createLeave = async (data: LeaveVO) => {
|
|
return await request.post({ url: '/bpm/oa/leave/create', data: data })
|
|
}
|
|
|
|
// 获得请假申请
|
|
export const getLeave = async (id: number) => {
|
|
return await request.get({ url: '/bpm/oa/leave/get?id=' + id })
|
|
}
|
|
|
|
// 获得请假申请分页
|
|
export const getLeavePage = async (params: PageParam) => {
|
|
return await request.get({ url: '/bpm/oa/leave/page', params })
|
|
}
|
|
|