UserLevel.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\outapi\controller;
  12. use app\services\user\OutUserLevelServices;
  13. use think\facade\App;
  14. /**
  15. * 会员等级
  16. * Class UserLevel
  17. * @package app\outapi\controller
  18. */
  19. class UserLevel extends AuthController
  20. {
  21. /**
  22. * UserLevel constructor.
  23. * @param App $app
  24. * @param OutUserLevelServices $services
  25. */
  26. public function __construct(App $app, OutUserLevelServices $services)
  27. {
  28. parent::__construct($app);
  29. $this->services = $services;
  30. }
  31. /**
  32. * 等级列表
  33. * @return void
  34. */
  35. public function lst()
  36. {
  37. $where = $this->request->getMore([
  38. ['title', ''],
  39. ['is_show', ''],
  40. ]);
  41. return app('json')->success($this->services->levelList($where));
  42. }
  43. }