57 lines
1.4 KiB
PHP
57 lines
1.4 KiB
PHP
<?php
|
|
namespace app\controller\admin\system\merchant;
|
|
|
|
|
|
use app\common\repositories\system\merchant\MerchantShareholderIntegralRepository;
|
|
use crmeb\basic\BaseController;
|
|
use think\App;
|
|
|
|
|
|
class ShareholderIntegral extends BaseController{
|
|
|
|
protected $repository;
|
|
|
|
public function __construct(App $app, MerchantShareholderIntegralRepository $repository){
|
|
parent::__construct($app);
|
|
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
|
|
/**
|
|
* Common: 获取分组持有信息
|
|
* Author: wu-hui
|
|
* Time: 2024/06/20 9:33
|
|
* @return mixed
|
|
*/
|
|
public function groupList(){
|
|
[$page, $limit] = $this->getPage();
|
|
$params = $this->request->params(['uid','mer_id','merchant_type']);
|
|
$data = $this->repository->groupList((array)$params,(int)$page,(int)$limit);
|
|
|
|
return app('json')->success($data);
|
|
}
|
|
/**
|
|
* Common: 获取明细列表
|
|
* Author: wu-hui
|
|
* Time: 2024/06/20 10:24
|
|
* @return mixed
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
* @throws \think\db\exception\DbException
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
*/
|
|
public function getList(){
|
|
[$page, $limit] = $this->getPage();
|
|
$params = $this->request->params(['uid','mer_id','level_id','merchant_type']);
|
|
$data = $this->repository->getList((array)$params,(int)$page,(int)$limit);
|
|
|
|
return app('json')->success($data);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|