Guard.php 457 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017 https://www.sapixx.com All rights reserved.
  4. * @license Licensed (http://www.apache.org/licenses/LICENSE-2.0).
  5. * @author pillar<ltmn@qq.com>
  6. * 管理
  7. */
  8. namespace app\guard\model;
  9. use think\Model;
  10. class Guard extends Model{
  11. protected $pk = 'id';
  12. //和主用户表绑定关系
  13. public function user(){
  14. return $this->hasOne('app\common\model\SystemUser','id','uid');
  15. }
  16. }