22 lines
490 B
PHP
Executable File
22 lines
490 B
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* This file is part of the youyao/admin-api.
|
|
*
|
|
* (c) youyao <info@nuancebiotech.cn>
|
|
* This source file is subject to the license under the project that is bundled.
|
|
*/
|
|
namespace App\Repository\RoleMenu;
|
|
|
|
use App\Model\RoleMenu;
|
|
|
|
class RoleMenuRepository
|
|
{
|
|
public function getMenuIdsByRoleIds(array $ids)
|
|
{
|
|
return RoleMenu::query()->select('menu_id')
|
|
->whereIn('role_id', $ids)->get()->pluck('menu_id')->toArray();
|
|
}
|
|
}
|