with关联中想filed字段需要用到withField

$this->model->with([
       'admin' => function ($query) {
           $query->withField('id,username');
        }, 'user' => function ($query) {
           $query->withField('name');
        }
])->where($where)->order('id desc')->page($page, $limit)->select();