智简魔方文档

意见反馈列表

方法概览

项目内容
文档类型PHP 类方法
方法标识app\common\model\FeedbackModel::feedbackList
所属业务客户服务
来源模块/系统意见反馈模型

功能说明

意见反馈列表

调用示例

$param = ['page' => 1, 'limit' => 1, 'orderby' => 'id', 'sort' => 'string'];
$result = (new \app\common\model\FeedbackModel())->feedbackList($param);

参数

参数类型必填默认值校验规则说明
param.pageint页数
param.limitint每页条数
param.orderbystring排序 id
param.sortstring升/降序 asc,desc

返回值

返回项类型说明
listarray意见反馈
list[].idint意见反馈ID
list[].titlestring标题
list[].typestring类型
list[].descriptionstring描述
list[].client_idint用户ID
list[].usernamestring用户名
list[].contactstring联系方式
list[].attachmentarray附件
list[].create_timeint反馈时间
countint意见反馈总数

正常返回

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