Function: normalizeListResponse()
ts
function normalizeListResponse<T>(data): ListResponse<T>;Normalizes list data to { items, total }. Supports both { items, total } and plain array responses. 归一化列表接口返回数据,兼容 { items, total } 和纯数组两种形态。
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
data | unknown | Raw list data / 原始列表数据 |
Returns
ListResponse<T>
Normalized list response / 归一化后的列表响应
Since
1.3.0