Application/Admin/Model/UserRelationModel.class.php
(完整代码) 1KB<?php
/**
+---------------------------------------------------------------
| 开单大师(专业的房产中介管理系统)
+---------------------------------------------------------------
| © 2017-2023 http://www.kaidandashi.com/ All rights reserved
+---------------------------------------------------------------
| 本系统由淮南市银泰软件科技有限公司提供技术支持
+---------------------------------------------------------------
| QQ号:984784483
+---------------------------------------------------------------
*/
/**
* 用户与岗位关联模型
*/
namespace Admin\Model;
use Think\Model\RelationModel;
class UserRelationModel extends RelationModel {
//定义主表
protected $tableName = 'yonghu';
//定义关联关系
protected $_link = array(
'role' => array(
'mapping_type'=> self::MANY_TO_MANY,
'class_name'=>'role',
'foreign_key'=>'user_id',
'relation_key'=>'role_id',
'relation_table'=>'jjrxt_role_user',
'mapping_fields'=>'id,name,remark'
),
);
}
?>
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
