add:新增Collection toTree方法

This commit is contained in:
JaguarJack
2020-10-21 08:12:07 +08:00
parent 538006c3c6
commit 9baadccfbb
7 changed files with 43 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ class Department extends CatchController
*/
public function index(): \think\response\Json
{
return CatchResponse::success(Tree::done($this->department->getList()));
return CatchResponse::success($this->department->getList());
}
/**