浏览代码

返回部门的管理员

kely 11 月之前
父节点
当前提交
5c716f60d0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Http/Resources/API/DepartmentResource.php

+ 1 - 0
app/Http/Resources/API/DepartmentResource.php

@@ -19,6 +19,7 @@ class DepartmentResource extends JsonResource
           'id' => $this->id,
           'name' => $this->name,
           'parent_id'  => $this->parent_id,
+          'manager_id' => $this->manager_id,
           'children' => $this->when($this->children->isNotEmpty(),function (){
                 return $this->children->map(function ($child){
                     return new DepartmentResource($child);