cool-admin-vue/cool/modules/base/service/system/task.js
2021-02-28 22:24:54 +08:00

42 lines
582 B
JavaScript

import { BaseService, Service, Permission } from "cl-admin";
@Service("sys/task")
class SysTask extends BaseService {
@Permission("stop")
stop(data) {
return this.request({
url: "/stop",
method: "POST",
data
});
}
@Permission("start")
start(data) {
return this.request({
url: "/start",
method: "POST",
data
});
}
@Permission("once")
once(data) {
return this.request({
url: "/once",
method: "POST",
data
});
}
@Permission("log")
log(params) {
return this.request({
url: "/log",
params
});
}
}
export default SysTask;