소스 검색

返回部门的管理员

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);