优化训练计划列表接口返回结构,将数据包装为对象形式,包含列表、总数、页码和限制信息。

This commit is contained in:
richarjiang
2025-08-14 19:28:50 +08:00
parent 812ac5c21e
commit 821e17ac7d

View File

@@ -66,7 +66,8 @@ export class TrainingPlansService {
});
return {
data: rows.map(r => ({
data: {
list: rows.map(r => ({
id: r.id,
createdAt: r.createdAt,
startDate: r.startDate,
@@ -75,6 +76,7 @@ export class TrainingPlansService {
total: count,
page,
limit,
},
};
}