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

33 lines
476 B
JavaScript
Raw Normal View History

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