1
This commit is contained in:
+14
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送记录(新的在前)。
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user