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