Commit 435f2d06 authored by 康帅杰's avatar 康帅杰 :speech_balloon:
Browse files

添加resource层swagger中的pagination说明

parent 15677e2a
Showing with 18 additions and 0 deletions
+18 -0
......@@ -77,7 +77,25 @@ class RequestName{
],$this->pageAttributes())
}
}
```
### 1.3 resource定义携带pagination的返回
```
/**
* @OA\Schema(
* schema="manageAccountListResponse",
* type="object",
* allOf={
* @OA\Schema(ref="#/components/schemas/Pagination"),
* @OA\Schema(
* @OA\Property(
* property="data",type="array",
* @OA\Items(ref="#/components/schemas/OtherDataResource")
* ),
* )
* }
* )
*/
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment