方案咨询列表
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\ConsultModel::consultList |
| 所属业务 | 客户服务 |
| 来源模块/系统 | 方案咨询模型 |
功能说明
方案咨询列表
调用示例
$param = ['page' => 1, 'limit' => 1, 'orderby' => 'id', 'sort' => 'string'];
$result = (new \app\common\model\ConsultModel())->consultList($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param.page | int | 否 | — | — | 页数 |
param.limit | int | 否 | — | — | 每页条数 |
param.orderby | string | 否 | — | — | 排序 id |
param.sort | string | 否 | — | — | 升/降序 asc,desc |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list | array | 方案咨询 |
list[].id | int | 方案咨询ID |
list[].matter | string | 咨询事项 |
list[].contact | string | 联系人 |
list[].company | string | 公司名称 |
list[].phone | string | 联系电话 |
list[].email | string | 联系邮箱 |
list[].client_id | int | 用户ID |
list[].username | string | 用户名 |
list[].create_time | int | 咨询时间 |
count | int | 方案咨询总数 |
正常返回
{
"list": [
{
"id": 1,
"matter": "string",
"contact": "string",
"company": "string",
"phone": "13800138000",
"email": "user@example.com",
"client_id": 1,
"username": "示例名称",
"create_time": 1752984000
}
],
"count": 1
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |