// +---------------------------------------------------------------------- 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); } }