Award.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\controller\admin\user;
  12. use app\common\repositories\store\ExcelRepository;
  13. use app\common\repositories\user\AwardIntegralPriceRepository;
  14. use app\common\repositories\user\UserInfoRepository;
  15. use crmeb\basic\BaseController;
  16. use app\common\repositories\user\UserBillRepository;
  17. use crmeb\services\ExcelService;
  18. use think\App;
  19. /**
  20. * Class Award
  21. * app\controller\admin\user
  22. * 用户扩展字段设置
  23. */
  24. class Award extends BaseController
  25. {
  26. protected $repository;
  27. public function __construct(App $app, AwardIntegralPriceRepository $repository)
  28. {
  29. parent::__construct($app);
  30. $this->repository = $repository;
  31. }
  32. /**
  33. * 列表
  34. * @return \think\response\Json
  35. * @author Qinii
  36. * @day 2023/9/24
  37. */
  38. public function lst()
  39. {
  40. [$page, $limit] = $this->getPage();
  41. $where = $this->request->params(['date']);
  42. return app('json')->success($this->repository->getList($where, $page, $limit));
  43. }
  44. }