15 lines
500 B
Plaintext
15 lines
500 B
Plaintext
|
|
/**
|
|
* 更新
|
|
* @param int $id
|
|
* @param {REQUEST} $request
|
|
* @return ResponseInterface
|
|
* @throws \Psr\Container\ContainerExceptionInterface
|
|
* @throws \Psr\Container\NotFoundExceptionInterface
|
|
*/
|
|
#[PutMapping("update/{id}"), Permission("{UPDATE_PERMISSION}"), OperationLog]
|
|
public function update(int $id, {REQUEST} $request): ResponseInterface
|
|
{
|
|
return $this->service->update($id, $request->all()) ? $this->success() : $this->error();
|
|
}
|