This commit is contained in:
2025-11-07 01:23:40 +08:00
parent 8b8b6d8797
commit 92d4338bb5
4 changed files with 413 additions and 0 deletions

View File

@@ -790,6 +790,35 @@ public class TencentDocController extends BaseController {
}
}
/**
* 查询操作日志列表
*/
@GetMapping("/operationLogs")
public AjaxResult getOperationLogs(com.ruoyi.jarvis.domain.TencentDocOperationLog log) {
try {
List<com.ruoyi.jarvis.domain.TencentDocOperationLog> list = operationLogMapper.selectLogList(log);
return AjaxResult.success(list);
} catch (Exception e) {
log.error("查询操作日志失败", e);
return AjaxResult.error("查询操作日志失败: " + e.getMessage());
}
}
/**
* 查询最近的操作日志
*/
@GetMapping("/recentLogs")
public AjaxResult getRecentLogs(@RequestParam(required = false) String fileId,
@RequestParam(defaultValue = "50") int limit) {
try {
List<com.ruoyi.jarvis.domain.TencentDocOperationLog> list = operationLogMapper.selectRecentLogs(fileId, limit);
return AjaxResult.success(list);
} catch (Exception e) {
log.error("查询最近操作日志失败", e);
return AjaxResult.error("查询最近操作日志失败: " + e.getMessage());
}
}
/**
* 从文本中提取手机号码
* 支持11位手机号码可能包含空格、横线等分隔符