feat: 集成 KieAI 服务,移除 models-integration 子项目

- 添加 Gemini 2.5 Flash 对话接口(流式+非流式)
- 添加 NanoBanana 图像生成/编辑接口
- 添加 Sora2 视频生成接口(文生视频、图生视频、去水印)
- 移除 models-integration 子项目(功能已迁移至主后端)
- 新增测试文档和 Playwright E2E 配置
- 更新前端页面和 API 接口
- 更新后端配置和日志处理
This commit is contained in:
2026-03-03 15:33:50 +08:00
parent 1ddb051977
commit 4be53dcd1b
586 changed files with 21142 additions and 25130 deletions

View File

@@ -392,28 +392,35 @@ export function getHomeData() {
}
/**
* 获取推荐食谱列表
* 获取推荐食谱列表(首页展示,无需登录即可浏览)
* @param {Object} data - 查询参数
* @param {Number} data.limit - 数量限制
*/
export function getRecommendedRecipes(data) {
return request.get('tool/home/recipes', data);
return request.get('tool/home/recipes', data, { noAuth: true });
}
/**
* 获取推荐营养知识
* 获取推荐营养知识(首页展示,无需登录即可浏览)
* @param {Object} data - 查询参数
* @param {Number} data.limit - 数量限制
*/
export function getRecommendedKnowledge(data) {
return request.get('tool/home/knowledge', data);
return request.get('tool/home/knowledge', data, { noAuth: true });
}
/**
* 获取用户健康档案状态
* 获取用户健康档案状态(首页展示,未登录时返回默认状态)
*/
export function getUserHealthStatus() {
return request.get('tool/home/health-status');
return request.get('tool/home/health-status', {}, { noAuth: true });
}
/**
* 获取首页展示配置(如四大功能入口是否显示,由系统配置 field01 控制1=显示)
*/
export function getHomeDisplayConfig() {
return request.get('tool/home/display-config', {}, { noAuth: true });
}
// ==================== 食谱相关 ====================