feat(training-plans): 添加训练计划更新和激活功能
- 在控制器中新增更新和激活训练计划的API - 在服务中实现相应的更新和激活逻辑,支持检查用户的激活计划 - 在模型中添加isActive字段以标识训练计划的激活状态 - 更新DTO以支持训练计划的更新操作
This commit is contained in:
@@ -15,6 +15,10 @@ export class TrainingPlan extends Model {
|
||||
})
|
||||
declare id: string;
|
||||
|
||||
|
||||
@Column({ type: DataType.BOOLEAN, defaultValue: false, comment: '是否激活' })
|
||||
declare isActive: boolean;
|
||||
|
||||
@Column({ type: DataType.STRING, allowNull: false })
|
||||
declare userId: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user