提交意见反馈
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\FeedbackModel::createFeedback |
| 所属业务 | 客户服务 |
| 来源模块/系统 | 意见反馈模型 |
功能说明
提交意见反馈
调用示例
$param = ['type' => 1, 'title' => '示例名称', 'description' => '192.0.2.1', 'attachment' => ['string'], 'contact' => 'string'];
$result = (new \app\common\model\FeedbackModel())->createFeedback($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param.type | int | 是 | — | required | 类型 |
param.title | string | 是 | — | required | 标题 |
param.description | string | 是 | — | required | 描述 |
param.attachment | array | 否 | — | — | 附件 |
param.contact | string | 否 | — | — | 联系方式 |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
status | int | 状态,200=成功,400=失败 |
msg | string | 信息 |
正常返回
{
"status": 1,
"msg": "string"
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |