权限管理与测试
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\admin\app\model;
|
||||
|
||||
use plugin\admin\app\model\Base;
|
||||
|
||||
/**
|
||||
* @property integer $id 主键ID(主键)
|
||||
* @property string $table 需要鉴权的表名
|
||||
* @property string $field 用于鉴权的字段名
|
||||
* @property string $admin_attr 对应用户属性的键(如hospitals)
|
||||
* @property string $admin_attr_map 属性映射转换(如opm_mw_department.id...opm_mw_department.name)
|
||||
* @property string $action 鉴权运算符(=,>,<,in,like等)
|
||||
* @property integer $sort 排序(越小越靠前)
|
||||
* @property integer $status 状态:1启用 0禁用
|
||||
* @property string $remark 备注说明
|
||||
* @property mixed $created_at 创建时间
|
||||
* @property mixed $updated_at 更新时间
|
||||
*/
|
||||
class OpmMwPermissionRule extends Base
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'opm_mw_permission_rules';
|
||||
|
||||
/**
|
||||
* The primary key associated with the table.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user