1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- /**
- * @Name
- * @Description
- * @Author 刘学玺
- * @Date 2023/11/23 20:57
- */
- namespace App\Http\Services\Admin\System;
- use App\Http\Services\BaseService;
- use App\Models\Admin;
- use App\Models\Menu;
- use App\Models\Region;
- use App\Models\User;
- class RegionService extends BaseService
- {
- public function index($data)
- {
- }
- public function store(array $data)
- {
- }
- public function detail($id)
- {
- }
- public function update(array $data)
- {
- }
- public function all()
- {
- $list = Region::query()->where('depth', 1)->where('isUse', 1)
- ->with(['children.children'])
- ->get()
- ->toArray();
- return $this->apiSuccess('', [
- 'list' => $list
- ]);
- }
- }
|