1. 工单
workorder
  • 地址
    • 地址-添加
      POST
    • 地址-删除
      DELETE
    • 地址-列表
      POST
  • 任务
    • 任务-添加
      POST
    • 任务-删除
      DELETE
    • 任务-列表
      POST
  • 日志
    • 工单-日志
      POST
  • 工单
    • 订阅通知
      GET
    • 工单-添加
      POST
    • 工单-开始
      POST
    • 工单-列表
      POST
    • 工单-获取
      GET
    • 工单-更新
      PUT
    • 工单-删除
      DELETE
  • 数据模型
    • Schemas
    • base.JsonPageInfoReply
    • base.OrderStatus
    • base.WorkerType
    • handles.JonsUpdateOrderReply
    • handles.JonsUpdateOrderRequest
    • handles.JsonAddAddressPayload
    • handles.JsonAddAddressReply
    • handles.JsonAddAddressRequest
    • handles.JsonAddOrderPayload
    • handles.JsonAddOrderReply
    • handles.JsonAddOrderRequest
    • handles.JsonAddTaskPayload
    • handles.JsonAddTaskReply
    • handles.JsonAddTaskRequest
    • handles.JsonDelAddressReply
    • handles.JsonDelOrderReply
    • handles.JsonDelTaskReply
    • handles.JsonGetOrderPayload
    • handles.JsonGetOrderReply
    • handles.JsonJob
    • handles.JsonJobInfo
    • handles.JsonListAddressFilter
    • handles.JsonListAddressPayload
    • handles.JsonListAddressReply
    • handles.JsonListAddressRequest
    • handles.JsonListOrderFilter
    • handles.JsonListOrderPayload
    • handles.JsonListOrderReply
    • handles.JsonListOrderRequest
    • handles.JsonListTaskFilter
    • handles.JsonListTaskPayload
    • handles.JsonListTaskReply
    • handles.JsonListTaskRequest
    • handles.JsonOrderLog
    • handles.JsonOrderLogReply
    • handles.JsonOrderLogRequest
    • handles.JsonSubscribe
    • handles.JsonSubscribePayload
    • handles.JsonWorker
    • handles.JsonWorkerFilter
  1. 工单

工单-添加

POST
http://127.0.0.1/bvworkorder/v1/workorder/orders
添加工单

请求参数

Header 参数

Body 参数application/json必填

示例
{
    "name": "string",
    "worker": {
        "id": "string",
        "type": "user",
        "name": "string"
    },
    "assistWorkers": [
        {
            "id": "string",
            "type": "user",
            "name": "string"
        }
    ],
    "addressUid": "string",
    "jobs": [
        {
            "jobUid": "string",
            "addressUid": "string"
        }
    ],
    "beginTime": 0,
    "endTime": 0,
    "orderNumber": "string",
    "startType": 0
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'http://127.0.0.1/bvworkorder/v1/workorder/orders' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data '{
    "name": "string",
    "worker": {
        "id": "string",
        "type": "user",
        "name": "string"
    },
    "assistWorkers": [
        {
            "id": "string",
            "type": "user",
            "name": "string"
        }
    ],
    "addressUid": "string",
    "jobs": [
        {
            "jobUid": "string",
            "addressUid": "string"
        }
    ],
    "beginTime": 0,
    "endTime": 0,
    "orderNumber": "string",
    "startType": 0
}'

返回响应

🟢200成功
application/json
ok
Bodyapplication/json

示例
{
    "code": 0,
    "msg": "string",
    "data": {
        "uid": "string"
    }
}
修改于 2026-04-16 06:53:50
上一页
订阅通知
下一页
工单-开始
Built with