新增训练计划模块,包括控制器、服务、模型及数据传输对象,更新应用模块以引入新模块,同时在AI教练模块中添加体态评估功能,支持体重识别与更新,优化用户体重历史记录管理。

This commit is contained in:
richarjiang
2025-08-14 12:57:03 +08:00
parent 8c358a21f7
commit 24924e5d81
26 changed files with 935 additions and 5 deletions

View File

@@ -0,0 +1,29 @@
import { ApiProperty } from '@nestjs/swagger';
import { BaseResponseDto } from '../../base.dto';
export enum RecommendationType {
Article = 'article',
Checkin = 'checkin',
}
export class GetRecommendationsQueryDto {
@ApiProperty({ required: false, description: '数量默认10' })
limit?: number = 10;
}
export interface RecommendationCard {
id: string;
type: RecommendationType;
title?: string;
coverUrl?: string;
// 若为文章关联文章ID
articleId?: string;
// 若为打卡,提示信息
subtitle?: string;
// 其他扩展
extra?: Record<string, any>;
}
export type GetRecommendationsResponseDto = BaseResponseDto<RecommendationCard[]>;