\Core\ServicesMenuService

MenuService 菜单服务

Summary

Methods
Properties
Constants
__get()
getBusinessContainerInstance()
getModelInstance()
getServiceInstance()
getList()
getUserMenuList()
getMenuTreeList()
getMenuCount()
saveMenu()
getInfo()
deleteInfo()
$systemMenuModel
$adminPermission
No constants found
No protected methods found
$container
$businessContainerKey
N/A
No private methods found
No private properties found
N/A

Properties

$systemMenuModel

$systemMenuModel : \App\Models\SystemMenu

Type

\App\Models\SystemMenu

$adminPermission

$adminPermission : \Core\Common\Container\AdminPermission

Type

\Core\Common\Container\AdminPermission

$container

$container : \Psr\Container\ContainerInterface

Type

\Psr\Container\ContainerInterface

$businessContainerKey

$businessContainerKey : 

Created by PhpStorm.

可以实现自动注入的业务容器 User:YM Date:2020/1/12 Time:上午8:18

Type

Methods

__get()

__get(  $key) : \Psr\Container\ContainerInterface|void

__get 隐式注入服务类 User:YM Date:2019/11/21 Time:上午9:27

Parameters

$key

Returns

\Psr\Container\ContainerInterface|void

getBusinessContainerInstance()

getBusinessContainerInstance(  $key) : mixed

getBusinessContainerInstance 获取业务容器实例 User:YM Date:2020/1/12 Time:上午8:15

Parameters

$key

Returns

mixed

getModelInstance()

getModelInstance(  $key) : mixed

getModelInstance 获取数据模型类实例 User:YM Date:2019/11/21 Time:上午10:30

Parameters

$key

Returns

mixed

getServiceInstance()

getServiceInstance(  $key) : mixed

getServiceInstance 获取服务类实例 User:YM Date:2019/11/21 Time:上午10:30

Parameters

$key

Returns

mixed

getList()

getList(array  $where = array(), array  $order = array('order' => 'ASC')) : mixed

getList 条件获取菜单列表 User:YM Date:2020/1/13 Time:上午12:02

Parameters

array $where
array $order

Returns

mixed

getUserMenuList()

getUserMenuList(string  $userId = '') : array

getUserMenuList 获取用户权限对应菜单列表 User:YM Date:2020/1/12 Time:上午11:23

Parameters

string $userId

Returns

array

getMenuTreeList()

getMenuTreeList() : array

getMenuTreeList 获取树形结构的菜单列表 User:YM Date:2020/2/3 Time:下午12:25

Returns

array

getMenuCount()

getMenuCount(array  $where = array()) : mixed

getMenuCount 根据条件获取菜单的总数 User:YM Date:2020/2/3 Time:下午4:52

Parameters

array $where

Returns

mixed

saveMenu()

saveMenu(  $inputData) : null

saveMenu 保存菜单,构造数据,防止注入 不接收数据库字段以外数据 User:YM Date:2020/2/3 Time:下午5:00

Parameters

$inputData

Returns

null

getInfo()

getInfo(  $id) : \App\Models\BaseModel|\Hyperf\Database\Model\Model|null

getInfo 根据id获取信息 User:YM Date:2020/2/3 Time:下午4:56

Parameters

$id

Returns

\App\Models\BaseModel|\Hyperf\Database\Model\Model|null

deleteInfo()

deleteInfo(  $id) : mixed

deleteInfo 根据id删除信息 User:YM Date:2020/2/3 Time:下午7:34

Parameters

$id

Returns

mixed