import request,{download,requestType} from "@/utils/request";
|
import {BaseEntityInterface} from "@/utils/globalInterface";
|
export interface LogI extends BaseEntityInterface{
|
jobLogId ?: number , jobName ?: string , jobGroup ?: string , invokeTarget ?: string , jobMessage ?: string , status ?: string , exceptionInfo ?: string , createTime ?: string }
|
// 查询调度日志列表
|
export const listJobLog:requestType = (query) => {
|
return request({
|
url: '/monitor/jobLog/list',
|
method: 'get',
|
params: query
|
})
|
}
|
|
// 删除调度日志
|
export const delJobLog:requestType = (jobLogId) => {
|
return request({
|
url: '/monitor/jobLog/' + jobLogId,
|
method: 'delete'
|
})
|
}
|
|
// 清空调度日志
|
export const cleanJobLog:requestType = () => {
|
return request({
|
url: '/monitor/jobLog/clean',
|
method: 'delete'
|
})
|
}
|
/**
|
* 查询定时任务调度详细
|
* @param jobId
|
*/
|
export const getJobLog: requestType = (jobId) => {
|
return request({
|
url: `/monitor/jobLog/${jobId}`,
|
method: 'get'
|
})
|
}/**
|
* 导出定时任务调度
|
*/
|
export const exportJobLog: requestType = (query) => {
|
return new Promise<any>(() => {
|
download(`/monitor/jobLog/export`, query);
|
})
|
}
|