GreenStaff.php 644 B

123456789101112131415161718192021222324252627282930
  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\green\model;
  9. use think\Model;
  10. class GreenStaff extends Model{
  11. /**
  12. * 回收员信息
  13. *
  14. * @return void
  15. */
  16. public function user(){
  17. return $this->hasOne('app\common\model\SystemUser','id','uid');
  18. }
  19. /**
  20. * @return \think\model\relation\HasOne
  21. * 运营商
  22. */
  23. public function operate(){
  24. return $this->hasOne('GreenOperate','id','operate_id');
  25. }
  26. }