feat: 添加角色分页/详情/新增/更新/删除接口
This commit is contained in:
23
app/common/model/SysRoleAuthorityBaseModel.php
Normal file
23
app/common/model/SysRoleAuthorityBaseModel.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
use think\Model;
|
||||
|
||||
/**
|
||||
* 角色权限模型
|
||||
* @mixin \think\Model
|
||||
*/
|
||||
class SysRoleAuthorityBaseModel extends Model
|
||||
{
|
||||
// 数据表名
|
||||
protected $name = 'sys_role_authority';
|
||||
|
||||
// 字段信息
|
||||
protected $schema = [
|
||||
'role_id' => 'int',
|
||||
'menu_id' => 'int',
|
||||
'permission' => 'int',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user