#### **设置返回值**
**data值为对象**
```
* @OA\Response(
* response=200,
* description="操作成功",
* @OA\JsonContent(
* @OA\Property(
* property="error_code",
* description="错误代码,0:为没有错误",
* type="integer",
* default="0"
* ),
* @OA\Property(
* property="data",
* description="返回数据",
* type="object",
* @OA\Property(
* property="id",
* description="文件id",
* type="string",
* ),
* @OA\Property(
* property="type",
* description="文件类型",
* type="string",
* ),
* ),
* )
* )
```
**data为数组**
```
* @OA\Response(
* response=200,
* description="操作成功",
* @OA\JsonContent(
* @OA\Property(
* property="error_code",
* description="错误代码,0:为没有错误",
* type="integer",
* default="0"
* ),
* @OA\Property(
* property="data",
* description="返回数据",
* type="array",
* @OA\Items(
* type="object",
* @OA\Property(
* property="id",
* description="文件id",
* type="string",
* ),
* @OA\Property(
* property="type",
* description="文件类型",
* type="string",
* ),
* )
* ),
* )
* )
```
> 当type为array时,使用@OA\Items设置数据项
