hyperf-view/builder/Generator/Stubs/Controller/export.stub

14 lines
478 B
Plaintext

/**
* 数据导出
* @return ResponseInterface
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
#[PostMapping("export"), Permission("{EXPORT_PERMISSION}"), OperationLog]
public function export(): ResponseInterface
{
return $this->service->export($this->request->all(), {DTO_CLASS}, '导出数据列表');
}