This commit is contained in:
van
2026-10-22 01:27:54 +08:00
parent ddb49ab073
commit 38e988077c
3 changed files with 244 additions and 15 deletions
@@ -82,6 +82,20 @@ public class OrderProfitAnalysisController extends BaseController {
}
}
/**
* 大模型调用记录(新的在前):开始时间、耗时、返回正文。
*/
@GetMapping("/call-logs")
public AjaxResult callLogs(@RequestParam(value = "limit", required = false) Integer limit) {
try {
int n = limit == null ? 30 : limit;
return AjaxResult.success(orderProfitAnalysisService.listCallLogs(n));
} catch (Exception e) {
logger.error("读取利润分析调用记录失败", e);
return AjaxResult.error("读取失败: " + e.getMessage());
}
}
/**
* 发送记录(新的在前)。
*/