mirror of https://github.com/certd/certd
🔱: [client] sync upgrade with 2 commits [trident-sync]
fix: 修复hello world 返回数据格式错误pull/14/head
parent
b4c4dc2c2e
commit
32c8e9482c
|
@ -22,8 +22,8 @@ const createCrudOptions = function ({}: CreateCrudOptionsProps): CreateCrudOptio
|
||||||
const pageRequest = async (query: UserPageQuery): Promise<UserPageRes> => {
|
const pageRequest = async (query: UserPageQuery): Promise<UserPageRes> => {
|
||||||
return {
|
return {
|
||||||
records,
|
records,
|
||||||
currentPage: 1,
|
offset: 0, //后续transformRes会计算为currentPage
|
||||||
pageSize: 20,
|
limit: 20, //后续transformRes会计算为pageSize
|
||||||
total: records.length
|
total: records.length
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue