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.

20 lines
419 B

1 year ago
/**
* 查看
* @param $id
* @return \think\Response
* @date {%DATE%}
*/
public function read($id)
{
if (!$id) {
return app('json')->fail(100100);
}
$info = $this->service->get($id, [{%FIELD%}], {%WITH%});
if (!$info) {
return app('json')->fail(100100);
}
return app('json')->success($info->toArray());
}