自定义产品标识列表
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\CustomHostNameModel::customHostNameList |
| 所属业务 | 产品管理 |
| 来源模块/系统 | 自定义产品标识模型 |
功能说明
自定义产品标识列表
调用示例
$param = 'string';
$result = (new \app\common\model\CustomHostNameModel())->customHostNameList($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param | mixed | 是 | — | required | 由 PHP 方法签名补全 |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list[].id | int | 自定义产品标识ID |
list[].custom_host_name_prefix | string | 自定义主机标识前缀 |
list[].custom_host_name_string_allow | array | 允许的字符串(number=数字,upper=大写字母,lower=小写字母) |
list[].custom_host_name_string_length | int | 字符串长度 |
list[].product_group | array | 关联商品分组,类型为商品组时返回 |
list[].product_group[].id | int | 关联商品分组ID |
list[].product_group[].first_group_name | string | 一级分组名称 |
list[].product_group[].name | string | 关联商品分组名称 |
正常返回
{
"list": [
{
"id": 1,
"custom_host_name_prefix": "示例名称",
"custom_host_name_string_allow": [
"示例名称"
],
"custom_host_name_string_length": 1,
"product_group": [
{
"id": 1,
"first_group_name": "示例名称",
"name": "示例名称"
}
]
}
]
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |