新增获取部门架构

This commit is contained in:
yaooo 2023-10-28 15:10:37 +08:00
parent 8a1cb521d0
commit c16a8cc7b8
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,11 @@ use think\facade\Db;
class UserDepartment extends ApiController class UserDepartment extends ApiController
{ {
protected $middleware = [
Auth::class => ['except' => []]
];
public function index() public function index()
{ {
$cate = Db::name('Department') $cate = Db::name('Department')