类 ClearLogDirective

所有已实现的接口:
Directive, HttpDirective, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

@Component public class ClearLogDirective extends AbstractTaskDirective
clearLog 日志清理指令

参数列表

parameter list

パラメータリスト

  • clearDate:起始发布日期,【2020-01-01 23:59:59】,【2020-01-01】,默认3个月前

返回结果

return result

戻り値

  • resultmap类型
  • result.loginLog:登录日志删除数量
  • result.operateLog:操作日志删除数量
  • result.taskLog:任务计划日志删除数量

使用示例

usage example

使用例

<@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>
 
  • 字段详细资料

  • 构造器详细资料

    • ClearLogDirective

      public ClearLogDirective()
  • 方法详细资料

    • execute

      public void execute(RenderHandler handler) throws IOException, freemarker.template.TemplateException
      参数:
      handler -
      抛出:
      IOException
      freemarker.template.TemplateException