36 lines
708 B
PHP
36 lines
708 B
PHP
<?php
|
|
namespace App\Models\Interfaces;
|
|
|
|
interface AdminRoleInterface
|
|
{
|
|
/**
|
|
* 与用户的多对多关系
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
|
*/
|
|
public function users();
|
|
|
|
/**
|
|
* 与权限的多对多关系
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
|
*/
|
|
public function perms();
|
|
|
|
/**
|
|
* 与菜单的多对多关系
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
|
*/
|
|
public function menus();
|
|
|
|
/**
|
|
* 保存权限
|
|
*
|
|
* @param mixed $inputPermissions
|
|
*
|
|
* @return void
|
|
*/
|
|
public function savePermissions($inputPermissions);
|
|
|
|
} |