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

33 lines
476 B
JavaScript

import { BaseService, Service, Permission } from "cl-admin";
@Service("sys/log")
class SysLog extends BaseService {
@Permission("clear")
clear() {
return this.request({
url: "/clear",
method: "POST"
});
}
@Permission("getKeep")
getKeep() {
return this.request({
url: "/getKeep"
});
}
@Permission("setKeep")
setKeep(value) {
return this.request({
url: "/setKeep",
method: "POST",
data: {
value
}
});
}
}
export default SysLog;