Skip to content

Commit

Permalink
doc: Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jiannei committed Mar 20, 2021
1 parent 9b0aca0 commit 834f27b
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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": {}
}
```
Expand Down

0 comments on commit 834f27b

Please sign in to comment.