本地镜像列表
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\LocalImageModel::imageList |
| 所属业务 | 产品管理 |
| 来源模块/系统 | 本地镜像模型 |
功能说明
本地镜像列表
调用示例
$param = 'string';
$result = (new \app\common\model\LocalImageModel())->imageList($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param | mixed | 是 | — | required | 由 PHP 方法签名补全 |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list | array | 镜像 |
list[].id | int | 镜像ID |
list[].group_id | string | 分组ID |
list[].group_name | string | 分组名称 |
list[].icon | string | 图标 |
list[].name | string | 镜像名称 |
正常返回
{
"list": [
{
"id": 1,
"group_id": "1",
"group_name": "示例名称",
"icon": "string",
"name": "示例名称"
}
]
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |