cool-admin-vue/cool/modules/base/service/system/task.js

42 lines
582 B
JavaScript
Raw Normal View History

2021-02-28 01:55:04 +08:00
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;