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

14 lines
442 B
Plaintext

/**
* 新增
* @param {REQUEST} $request
* @return ResponseInterface
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
#[PostMapping("save"), Permission("{SAVE_PERMISSION}"), OperationLog]
public function save({REQUEST} $request): ResponseInterface
{
return $this->success(['id' => $this->service->save($request->all())]);
}