123456789101112131415 |
- <?php
- namespace app\common\model;
- use think\Model;
- class User extends Model
- {
- protected $name = 'StoreMember';
- //protected $resultSetType = 'collection';// 设置返回类型
- public function wallet()
- {
- return $this->hasOne('UserWallet','user_id','id');
- }
- }
|