周总批发商场
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
dianshang/crmeb/app/services/user/OutUserLevelServices.php

48 lines
1.5 KiB

<?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);
}
}