Skip to content

Commit 834f27b

Browse files
author
jiannei
committed
doc: Update Readme
1 parent 9b0aca0 commit 834f27b

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -127,27 +127,29 @@ public function array()
127127
}
128128
```
129129

130-
- 返回全部数据
130+
- 返回全部数据(支持自定义内层 data 字段名称,比如 rows、list)
131131

132132
```php
133133
{
134134
"status": "success",
135135
"code": 200,
136136
"message": "操作成功",
137-
"data": [
138-
{
139-
"nickname": "Joaquin Ondricka",
140-
"email": "lowe.chaim@example.org"
141-
},
142-
{
143-
"nickname": "Jermain D'Amore",
144-
"email": "reanna.marks@example.com"
145-
},
146-
{
147-
"nickname": "Erich Moore",
148-
"email": "ernestine.koch@example.org"
149-
}
150-
],
137+
"data": {
138+
"data": [
139+
{
140+
"nickname": "Joaquin Ondricka",
141+
"email": "lowe.chaim@example.org"
142+
},
143+
{
144+
"nickname": "Jermain D'Amore",
145+
"email": "reanna.marks@example.com"
146+
},
147+
{
148+
"nickname": "Erich Moore",
149+
"email": "ernestine.koch@example.org"
150+
}
151+
]
152+
},
151153
"error": {}
152154
}
153155
```

0 commit comments

Comments
 (0)