Skip to content
On this page

9.1 添加工单

接口说明:

MethodURLContentType
POST/api/v1/question/addapplication/json

请求参数说明:

字段名类型是否必填示例值描述
orderIdString"20250812001"订单ID
contentString"商品缺少配件"工单描述
filesString"http://test.com/1.jpg,http://test.com/2.jpg"附件URL列表
questionTypeIdInteger1工单类型ID

请求示例:

POST /api/v1/question/add

请求数据示例:

json
{
    "orderId":"20250812001",
    "content":"商品缺少配件",
    "files":"http://example.com/img1.jpg,http://example.com/img2.jpg",
    "questionTypeId":1
}

返回参数说明:

参数类型描述
idInteger工单ID
ownerIdString归属人Id
ownerNameString归属人名称
currentSolverIdString当前协助人Id
currentSolverNameString当前协助人名称
projectIdInteger项目Id
titleString标题
orderIdString订单号
questionTypeIdInteger工单类型Id
questionStatusString工单状态
auditResultString审核结果
auditCommentString审核意见
createTimeDateTime创建时间
updateTimeDateTime修改时间
closeTimeDateTime关单时间
closeByString关单操作人
closeByIdString关单操作人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
  }
}