智简魔方文档

自定义产品标识列表

方法概览

项目内容
文档类型PHP 类方法
方法标识app\common\model\CustomHostNameModel::customHostNameList
所属业务产品管理
来源模块/系统自定义产品标识模型

功能说明

自定义产品标识列表

调用示例

$param = 'string';
$result = (new \app\common\model\CustomHostNameModel())->customHostNameList($param);

参数

参数类型必填默认值校验规则说明
parammixedrequired由 PHP 方法签名补全

返回值

返回项类型说明
list[].idint自定义产品标识ID
list[].custom_host_name_prefixstring自定义主机标识前缀
list[].custom_host_name_string_allowarray允许的字符串(number=数字,upper=大写字母,lower=小写字母)
list[].custom_host_name_string_lengthint字符串长度
list[].product_grouparray关联商品分组,类型为商品组时返回
list[].product_group[].idint关联商品分组ID
list[].product_group[].first_group_namestring一级分组名称
list[].product_group[].namestring关联商品分组名称

正常返回

{
  "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调用失败时由具体实现抛出异常,异常信息以运行时结果为准。