User.php 287 B

123456789101112131415
  1. <?php
  2. namespace app\common\model;
  3. use think\Model;
  4. class User extends Model
  5. {
  6. protected $name = 'StoreMember';
  7. //protected $resultSetType = 'collection';// 设置返回类型
  8. public function wallet()
  9. {
  10. return $this->hasOne('UserWallet','user_id','id');
  11. }
  12. }