新增训练计划模块,包括控制器、服务、模型及数据传输对象,更新应用模块以引入新模块,同时在AI教练模块中添加体态评估功能,支持体重识别与更新,优化用户体重历史记录管理。
This commit is contained in:
29
src/recommendations/dto/recommendation.dto.ts
Normal file
29
src/recommendations/dto/recommendation.dto.ts
Normal 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[]>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user