新增AI教练模块,包括控制器、服务、模型及数据传输对象,更新应用模块以引入新模块,同时在打卡模块中添加按时间范围返回每日打卡状态的功能

This commit is contained in:
richarjiang
2025-08-14 09:12:44 +08:00
parent 866143d3ad
commit d1a6e3d42e
15 changed files with 556 additions and 5 deletions

View File

@@ -31,6 +31,27 @@ export class UpdateUserDto {
@ApiProperty({ description: '出生年月日', example: 1713859200 })
birthDate: number;
// 扩展字段
@IsOptional()
@ApiProperty({ description: '每日步数目标', example: 8000 })
dailyStepsGoal?: number;
@IsOptional()
@ApiProperty({ description: '每日卡路里消耗目标', example: 500 })
dailyCaloriesGoal?: number;
@IsOptional()
@ApiProperty({ description: '普拉提目的(多选)', example: ['塑形', '康复'] })
pilatesPurposes?: string[];
@IsOptional()
@ApiProperty({ description: '体重(公斤)', example: 55.5 })
weight?: number;
@IsOptional()
@ApiProperty({ description: '身高(厘米)', example: 168 })
height?: number;
}
export class UpdateUserResponseDto {