mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 22:20:27 +08:00
42 lines
582 B
JavaScript
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;
|