refactor: frontend 重命名为 backend-adminend,新增 shccd159/shjjy153 配置
- frontend 目录迁移至 backend-adminend(管理后台前端) - 新增 application-shccd159.yml、application-shjjy153.yml - 更新 deploy.conf、DEPLOY.md、application.yml Made-with: Cursor
This commit is contained in:
94
backend-adminend/src/api/schedule.js
Normal file
94
backend-adminend/src/api/schedule.js
Normal file
@@ -0,0 +1,94 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 定时任务列表
|
||||
export function jobList() {
|
||||
return request({
|
||||
url: '/admin/schedule/job/list',
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 定时任务日志分页列表
|
||||
export function jobLogList(data) {
|
||||
return request({
|
||||
url: '/admin/schedule/job/log/list',
|
||||
method: 'get',
|
||||
params: { ...data },
|
||||
});
|
||||
}
|
||||
|
||||
// 添加定时任务
|
||||
export function scheduleJobAdd(pram) {
|
||||
const data = {
|
||||
jobId: pram.jobId,
|
||||
beanName: pram.beanName,
|
||||
cronExpression: pram.cronExpression,
|
||||
methodName: pram.methodName,
|
||||
params: pram.params,
|
||||
remark: pram.remark,
|
||||
};
|
||||
return request({
|
||||
url: '/admin/schedule/job/add',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 删除定时任务
|
||||
export function scheduleJobDelete(id) {
|
||||
return request({
|
||||
url: `/admin/schedule/job/delete/${id}`,
|
||||
method: 'post',
|
||||
});
|
||||
}
|
||||
|
||||
// 启动定时任务
|
||||
export function scheduleJobStart(id) {
|
||||
return request({
|
||||
url: `/admin/schedule/job/start/${id}`,
|
||||
method: 'post',
|
||||
});
|
||||
}
|
||||
|
||||
// 暂停定时任务
|
||||
export function scheduleJobSuspend(id) {
|
||||
return request({
|
||||
url: `/admin/schedule/job/suspend/${id}`,
|
||||
method: 'post',
|
||||
});
|
||||
}
|
||||
|
||||
// 立即执行定时任务(一次)暂停定时任务
|
||||
export function scheduleJobTrig(id) {
|
||||
return request({
|
||||
url: `/admin/schedule/job/trig/${id}`,
|
||||
method: 'post',
|
||||
});
|
||||
}
|
||||
|
||||
// 定时任务编辑
|
||||
export function scheduleJobUpdate(pram) {
|
||||
const data = {
|
||||
jobId: pram.jobId,
|
||||
beanName: pram.beanName,
|
||||
cronExpression: pram.cronExpression,
|
||||
methodName: pram.methodName,
|
||||
params: pram.params,
|
||||
remark: pram.remark,
|
||||
};
|
||||
return request({
|
||||
url: '/admin/schedule/job/update',
|
||||
method: 'post',
|
||||
data: { ...data },
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user