12345678910111213141516171819202122232425 |
- <?php
- /**
- * Created by IntelliJ IDEA.
- * User: kelyliang
- * Date: 2024/2/18
- * Time: 下午 03:59
- */
- namespace App\Http\Resources\API;
- use Illuminate\Http\Request;
- use Illuminate\Http\Resources\Json\JsonResource;
- class SimpleDepartmentResource extends JsonResource
- {
- public function toArray(Request $request): array
- {
- return [
- 'id' => $this->id,
- 'parent_dept ' => $this->parent_dept,
- 'name' => $this->name,
- ];
- }
- }
|