Award.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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(['day']);
  42. return app('json')->success($this->repository->getList($where, $page, $limit));
  43. }
  44. /**
  45. * 奖池列表
  46. * @return \think\response\Json
  47. * @author Qinii
  48. * @day 2023/9/24
  49. */
  50. public function lake_lst()
  51. {
  52. [$page, $limit] = $this->getPage();
  53. $where = $this->request->params(['type']);
  54. return app('json')->success($this->repository->getLakeList($where, $page, $limit));
  55. }
  56. }