意见反馈列表
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\FeedbackModel::feedbackList |
| 所属业务 | 客户服务 |
| 来源模块/系统 | 意见反馈模型 |
功能说明
意见反馈列表
调用示例
$param = ['page' => 1, 'limit' => 1, 'orderby' => 'id', 'sort' => 'string'];
$result = (new \app\common\model\FeedbackModel())->feedbackList($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param.page | int | 否 | — | — | 页数 |
param.limit | int | 否 | — | — | 每页条数 |
param.orderby | string | 否 | — | — | 排序 id |
param.sort | string | 否 | — | — | 升/降序 asc,desc |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list | array | 意见反馈 |
list[].id | int | 意见反馈ID |
list[].title | string | 标题 |
list[].type | string | 类型 |
list[].description | string | 描述 |
list[].client_id | int | 用户ID |
list[].username | string | 用户名 |
list[].contact | string | 联系方式 |
list[].attachment | array | 附件 |
list[].create_time | int | 反馈时间 |
count | int | 意见反馈总数 |
正常返回
{
"list": [
{
"id": 1,
"title": "示例名称",
"type": "string",
"description": "192.0.2.1",
"client_id": 1,
"username": "示例名称",
"contact": "string",
"attachment": [
"string"
],
"create_time": 1752984000
}
],
"count": 1
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |