@Component public class ClearLogDirective extends AbstractTaskDirective
参数列表
clearDate
:起始发布日期,【2020-01-01 23:59:59】,【2020-01-01】,默认3个月前
返回结果
result
map类型
result.loginLog
:登录日志删除数量
result.operateLog
:操作日志删除数量
result.taskLog
:任务计划日志删除数量
<@task.clearLog><#list result as k,v>${k}:${v}<#sep>,</#list></@task.clearLog>
<script> $.getJSON('${site.dynamicPath}api/directive/task/clearLog?appToken=接口访问授权Token', function(data){ console.log(data.page.totalCount); }); </script>
限定符和类型 | 字段和说明 |
---|---|
private LogLoginService |
logLoginService |
private LogOperateService |
logOperateService |
private LogTaskService |
logTaskService |
siteComponent
log
构造器和说明 |
---|
ClearLogDirective() |
限定符和类型 | 方法和说明 |
---|---|
void |
execute(RenderHandler handler) |
execute, getApp, getSite
execute, getName, getNamespace, getShortName, httpEnabled, setName, setNamespace, setShortName
private LogLoginService logLoginService
private LogOperateService logOperateService
private LogTaskService logTaskService
public void execute(RenderHandler handler) throws java.io.IOException, freemarker.template.TemplateException
java.io.IOException
freemarker.template.TemplateException