优化打卡服务的创建逻辑,调整参数传递方式,简化用户ID的处理。同时,更新训练计划服务的返回结构,直接返回行数据以提升性能。
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user