nbtca / Saturday

A restful API for repair service
https://sat-dev.app.nbtca.space/docs
MIT License
1 stars 3 forks source link

client create/update/cancel event #46

Closed wen-templari closed 2 years ago

wen-templari commented 2 years ago

报修人员更改事件

PATCH /client/events/{event_id}

参数

名称 类型 in 描述
Authorizeation string header
event_id string path 事件ID
phone number body
qq number body
problem string body

示例

请求

POST /client/events/1/
{
  "phone": "13333333333",
  "qq": "123456789",
  "problem": "装轮子"
}

响应

{
  "event_id": 1,
  "client_id": 1,
  "model": "7590",
  "phone": "13333333333",
  "qq": "123456789",
  "problem": "装轮子",
  "member_id": "",
  "closed_by": "",
  "status": "open",
  "logs": [
    {
      "log_id": 1,
      "description": "",
      "member_id": "",
      "action": "create",
      "gmt_create": "2022-05-10 11:00:26"
    },
    {
      "log_id": 2,
      "description": "",
      "member_id": "2333333333",
      "action": "update",
      "gmt_create": "2022-05-10 11:03:18"
    }
  ],
  "gmt_create": "2022-05-10 10:23:54",
  "gmt_modified": "2022-05-12 23:22:44"
}