字典分类
This commit is contained in:
@@ -75,4 +75,17 @@ class SysDictController extends BaseController
|
||||
return $this->error($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function group(Request $request)
|
||||
{
|
||||
try {
|
||||
$raw = $this->service->group($request);
|
||||
$data = $this->transformData($raw, method_exists($this, 'groupFormat')
|
||||
? [$this, 'groupFormat']
|
||||
: null);
|
||||
return $this->success($data);
|
||||
} catch (\Throwable $e) {
|
||||
return $this->error($e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user