-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
chenshuai1
committed
Jul 24, 2024
1 parent
f26039d
commit 0c87d7a
Showing
7 changed files
with
150 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"code": 0, | ||
"data": { | ||
"list": [ | ||
{ | ||
"id": 1, | ||
"name": "张三", | ||
"code": "v0001" | ||
} | ||
], | ||
"pageIndex": 1, | ||
"pageSize": 20, | ||
"total": 100 | ||
}, | ||
"msg": "success" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { http } from '@/utils/http' | ||
import { sleep } from 'radash' | ||
|
||
export async function queryUserList(params: PagingParams) { | ||
try { | ||
const { data } = await http({ | ||
method: 'get', | ||
url: '/mock/user-list.json?t=' + +new Date(), | ||
params | ||
}) | ||
await sleep(1000) | ||
return data as Record<string, any> | ||
} catch (error) { | ||
console.error('queryUserList ->', error) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters