<?php
|
|
namespace app\branch\controller\data;
|
|
use app\branch\controller\Controller;
|
use app\branch\model\user\Favorite as FavoriteModel;
|
use app\branch\model\user\User as UserModel;
|
/**
|
* 关注用户控制器
|
*/
|
class User extends Controller
|
{
|
/**
|
* 关注用户列表
|
*/
|
public function lists()
|
{
|
$branch = $this->branch['user'];
|
// $model = new FavoriteModel();
|
$model = new UserModel();
|
$list = $model->getUserList($branch['branch_id'], $this->postData());
|
return $this->renderSuccess('', compact('list'));
|
}
|
|
/**
|
* 公众号用户列表 by lyzflash
|
*/
|
public function mplists()
|
{
|
$branch = $this->branch['user'];
|
$model = new UserModel();
|
$list = $model->getUserList($branch['branch_id'], $this->postData());
|
return $this->renderSuccess('', compact('list'));
|
}
|
}
|