23 lines
459 B
Plaintext
Raw Normal View History

2025-03-12 10:47:34 +08:00
 /**
* 修改
* @param $id
* @return \think\Response
* @date {%DATE%}
*/
public function update($id)
{
if (!$id) {
return app('json')->fail(100100);
}
$data = $this->request->postMore([
{%FIELD_PHP%}
]);
validate({%VALIDATE_NAME%})->check($data);
{%OTHER_PHP%}
$this->service->crudUpdate((int)$id, $data);
return app('json')->success(100001);
}