获取已用模块列表
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\logic\ModuleLogic::enableModuleList |
| 所属业务 | 公共接口 |
| 来源模块/系统 | 模块逻辑 |
功能说明
获取已用模块列表
调用示例
$result = (new \app\common\logic\ModuleLogic())->enableModuleList();参数
该函数/方法无需传入参数。
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list[].id | int | ID |
list[].author | string | 作者 |
list[].author_url | string | 作者地址 |
list[].description | string | 描述 |
list[].help_url | string | 帮助链接 |
list[].menu_id | int | 对应菜单ID(模块没有对应菜单ID) |
list[].name | string | 标识 |
list[].status | int | 状态(1=启用) |
list[].title | string | 标题 |
list[].url | string | 跳转链接 |
list[].version | string | 版本号 |
list[].module | string | 应用类型(addon=插件,server=模块) |
count | int | 总条数 |
正常返回
{
"list": [
{
"id": 1,
"author": "string",
"author_url": "https://example.com/callback",
"description": "192.0.2.1",
"help_url": "https://example.com/callback",
"menu_id": 1,
"name": "示例名称",
"status": 1,
"title": "示例名称",
"url": "https://example.com/callback",
"version": "string",
"module": "string"
}
],
"count": 1
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |