You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
459 B

1 year ago
 /**
* 修改
* @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);
}