Appearance
9.1 添加工单
接口说明:
Method | URL | ContentType |
---|---|---|
POST | /api/v1/question/add | application/json |
请求参数说明:
字段名 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
orderId | String | 否 | "20250812001" | 订单ID |
content | String | 是 | "商品缺少配件" | 工单描述 |
files | String | 否 | "http://test.com/1.jpg,http://test.com/2.jpg" | 附件URL列表 |
questionTypeId | Integer | 是 | 1 | 工单类型ID |
请求示例:
POST /api/v1/question/add
请求数据示例:
json
{
"orderId":"20250812001",
"content":"商品缺少配件",
"files":"http://example.com/img1.jpg,http://example.com/img2.jpg",
"questionTypeId":1
}
返回参数说明:
参数 | 类型 | 描述 |
---|---|---|
id | Integer | 工单ID |
ownerId | String | 归属人Id |
ownerName | String | 归属人名称 |
currentSolverId | String | 当前协助人Id |
currentSolverName | String | 当前协助人名称 |
projectId | Integer | 项目Id |
title | String | 标题 |
orderId | String | 订单号 |
questionTypeId | Integer | 工单类型Id |
questionStatus | String | 工单状态 |
auditResult | String | 审核结果 |
auditComment | String | 审核意见 |
createTime | DateTime | 创建时间 |
updateTime | DateTime | 修改时间 |
closeTime | DateTime | 关单时间 |
closeBy | String | 关单操作人 |
closeById | String | 关单操作人id |
响应示例:
json
{
"success": true,
"code": "000",
"message": "成功",
"data": {
"id": 11,
"ownerId": "72",
"ownerName": "BBB",
"currentSolverId": null,
"currentSolverName": null,
"projectId": 707,
"title": "商品缺少配件",
"orderId": "20250812001",
"questionTypeId": 1,
"questionStatus": "Init",
"auditResult": null,
"auditComment": null,
"createTime": "2025-08-12 13:43:13",
"updateTime": "2025-08-12 13:43:13",
"closeTime": null,
"closeBy": null,
"closeById": null
}
}