package com.yunhai.bschclassmanage.service; import com.yunhai.bschclassmanage.entity.SysOperationLog; import com.yunhai.bschclassmanage.model.vo.PageVO; import org.springframework.data.domain.Pageable; public interface ISysOperationLogService { /** 切面 finally 调用,@Async("auditLogExecutor") + REQUIRES_NEW,失败仅记日志 */ void saveAsync(SysOperationLog entity); /** 分页查询(不含 response_data 投影;实体直查,初版简单先行) */ PageVO pageQuery(Integer schId, String uri, String method, Integer statusCode, Integer logLevel, String userName, Pageable pageable); /** 取单条(含 response_data)用于下载 */ SysOperationLog getById(Long id); /** 解压某条响应原文 */ String getResponseData(Long id); /** 重试:按记录的 classMethod + requestParams 反射重放原始操作(仅失败记录可重试) */ Object retry(Long id); /** 定时清理,返回删除条数 */ long cleanupExpired(); }