AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
#### **设置返回值** **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设置数据项