优化打卡服务的创建逻辑,调整参数传递方式,简化用户ID的处理。同时,更新训练计划服务的返回结构,直接返回行数据以提升性能。

This commit is contained in:
2025-08-14 22:23:50 +08:00
parent bef2c2d910
commit 2c04325152
3 changed files with 8 additions and 11 deletions

View File

@@ -95,12 +95,7 @@ export class TrainingPlansService {
return {
data: {
list: rows.map(r => ({
id: r.id,
createdAt: r.createdAt,
startDate: r.startDate,
goal: r.goal,
})),
list: rows,
total: count,
page,
limit,