123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- // +----------------------------------------------------------------------
- // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
- // +----------------------------------------------------------------------
- // | Author: CRMEB Team <admin@crmeb.com>
- // +----------------------------------------------------------------------
- declare (strict_types = 1);
- namespace app\services\user;
- use app\services\BaseServices;
- use app\dao\user\UserLevelDao;
- use app\services\system\SystemUserLevelServices;
- /**
- * 用户等级
- * Class OutUserLevelServices
- * @package app\services\user
- */
- class OutUserLevelServices extends BaseServices
- {
- /**
- * OutUserLevelServices constructor.
- * @param UserLevelDao $dao
- */
- public function __construct(UserLevelDao $dao)
- {
- $this->dao = $dao;
- }
- /**
- * 会员列表
- * @param array $where
- * @return array
- */
- public function levelList(array $where): array
- {
- /** @var SystemUserLevelServices $systemLevelServices */
- $systemLevelServices = app()->make(SystemUserLevelServices::class);
- $field = 'id, name, grade, discount, image, icon, explain, exp_num, is_show, add_time';
- return $systemLevelServices->getLevelList($where, $field);
- }
- }
|