123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- // +----------------------------------------------------------------------
- // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2016~2020 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));
- }
- }
|