You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.4 KiB
85 lines
2.4 KiB
9 months ago
|
<?php
|
||
|
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Author: CRMEB Team <admin@crmeb.com>
|
||
|
// +----------------------------------------------------------------------
|
||
|
|
||
|
namespace app\controller\admin\store;
|
||
|
|
||
|
use think\App;
|
||
|
use crmeb\basic\BaseController;
|
||
|
use app\common\repositories\store\service\StoreServiceLogRepository;
|
||
|
use app\common\repositories\store\service\StoreServiceRepository;
|
||
|
|
||
|
class StoreService extends BaseController
|
||
|
{
|
||
|
/**
|
||
|
* @var StoreServiceRepository
|
||
|
*/
|
||
|
protected $repository;
|
||
|
/**
|
||
|
* @var StoreServiceLogRepository
|
||
|
*/
|
||
|
protected $logRepository;
|
||
|
|
||
|
/**
|
||
|
* StoreService constructor.
|
||
|
* @param App $app
|
||
|
* @param StoreServiceRepository $repository
|
||
|
*/
|
||
|
public function __construct(App $app, StoreServiceRepository $repository,StoreServiceLogRepository $logRepository)
|
||
|
{
|
||
|
parent::__construct($app);
|
||
|
$this->repository = $repository;
|
||
|
$this->logRepository = $logRepository;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* TODO
|
||
|
* @param $id
|
||
|
* @return mixed
|
||
|
* @author Qinii
|
||
|
* @day 2020-06-19
|
||
|
*/
|
||
|
public function lst($id)
|
||
|
{
|
||
|
$where = $this->request->params(['keyword', 'status']);
|
||
|
[$page, $limit] = $this->getPage();
|
||
|
$where['mer_id'] = $id;
|
||
|
return app('json')->success($this->repository->getList($where, $page, $limit));
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* TODO
|
||
|
* @param $uid
|
||
|
* @param $id
|
||
|
* @return mixed
|
||
|
* @author Qinii
|
||
|
* @day 2020-06-19
|
||
|
*/
|
||
|
public function getUserMsnByMerchant($uid,$id)
|
||
|
{
|
||
|
[$page, $limit] = $this->getPage();
|
||
|
return app('json')->success($this->logRepository->getUserMsn($uid, $page, $limit,$id));
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* TODO
|
||
|
* @param $id
|
||
|
* @return mixed
|
||
|
* @author Qinii
|
||
|
* @day 2020-06-19
|
||
|
*/
|
||
|
public function merchantUserList($id)
|
||
|
{
|
||
|
[$page, $limit] = $this->getPage();
|
||
|
return app('json')->success( $this->logRepository->getMerchantUserList($id, $page, $limit));
|
||
|
}
|
||
|
}
|