物理服务器区域列表
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\PhysicalServerAreaModel::areaList |
| 所属业务 | 公共接口 |
| 来源模块/系统 | 模板控制器 |
功能说明
物理服务器区域列表
调用示例
$result = (new \app\common\model\PhysicalServerAreaModel())->areaList();参数
该函数/方法无需传入参数。
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list | array | 区域 |
list[].id | int | 区域ID |
list[].first_area | string | 一级区域 |
list[].second_area | string | 二级区域 |
area | array | 区域选项 |
area[].name | string | 一级区域名称 |
area[].children | array | 二级区域 |
list[].children[].id | int | 二级区域ID |
list[].children[].name | string | 二级区域名称 |
正常返回
{
"list": [
{
"id": 1,
"first_area": "string",
"second_area": "string",
"children": [
{
"id": 1,
"name": "示例名称"
}
]
}
],
"area": [
{
"name": "示例名称",
"children": [
"string"
]
}
]
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |