DRoleAcl.Class.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * 角色权限
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2019/10/31
  7. * Time: 18:00
  8. */
  9. namespace JinDouYun\Dao\Department;
  10. use JinDouYun\Dao\BaseDao;
  11. class DRoleAcl extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'role_acl';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id',//int(11) NOT NULL AUTO_INCREMENT,
  19. 'roleId',//int(11) NOT NULL COMMENT '角色id',
  20. 'userCenterId',// int(11) DEFAULT NULL COMMENT '用户id',
  21. 'isAdministrator',//tinyint(1) NOT NULL DEFAULT '4',//COMMENT '是否为超级管理员(5是 4否)',
  22. 'acl',//json DEFAULT NULL COMMENT '权限json',
  23. 'createTime',//int(11) DEFAULT NULL COMMENT '创建时间',
  24. 'updateTime',//int(11) DEFAULT NULL COMMENT '修改时间',
  25. ];
  26. $this->_readonly = ['id'];
  27. $this->_create_autofill = [
  28. 'createTime'=> time()
  29. ];
  30. $this->_update_autofill = [
  31. 'updateTime'=> time()
  32. ];
  33. parent::__construct($serviceDB);
  34. }
  35. }