-
Notifications
You must be signed in to change notification settings - Fork 34
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
jiannei
committed
Mar 20, 2021
1 parent
9b0aca0
commit 834f27b
Showing
1 changed file
with
17 additions
and
15 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 |
---|---|---|
|
@@ -127,27 +127,29 @@ public function array() | |
} | ||
``` | ||
|
||
- 返回全部数据 | ||
- 返回全部数据(支持自定义内层 data 字段名称,比如 rows、list) | ||
|
||
```php | ||
{ | ||
"status": "success", | ||
"code": 200, | ||
"message": "操作成功", | ||
"data": [ | ||
{ | ||
"nickname": "Joaquin Ondricka", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"nickname": "Jermain D'Amore", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"nickname": "Erich Moore", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"data": { | ||
"data": [ | ||
{ | ||
"nickname": "Joaquin Ondricka", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"nickname": "Jermain D'Amore", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"nickname": "Erich Moore", | ||
"email": "[email protected]" | ||
} | ||
] | ||
}, | ||
"error": {} | ||
} | ||
``` | ||
|