UserBill.php 780 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace app\controller\admin\user;
  3. use app\common\repositories\store\ExcelRepository;
  4. use ln\basic\BaseController;
  5. use app\common\repositories\user\UserBillRepository;
  6. use think\App;
  7. class UserBill extends BaseController
  8. {
  9. protected $repository;
  10. public function __construct(App $app, UserBillRepository $repository)
  11. {
  12. parent::__construct($app);
  13. $this->repository = $repository;
  14. }
  15. public function getList()
  16. {
  17. [$page, $limit] = $this->getPage();
  18. $where = $this->request->params(['keyword', 'date', 'type']);
  19. return app('json')->success($this->repository->getList($where, $page, $limit));
  20. }
  21. public function type()
  22. {
  23. return app('json')->success($this->repository->type());
  24. }
  25. }