新增工单

简介

此接口用于在用户端创建一个新的报修工单

请求

创建工单

POST /v1/ticket/create

Headers

属性

Content-Type

application/json

Authorization

Bearer {access_token}

Body

属性
类型
描述
必填

purchase_date

date

机器购买时间

phone

string

用于联系的手机号

device_type

string

设备类型

brand

string

设备品牌

description

string

报修问题描述

image

string

报修图片地址

fault_type

string

问题类型

qq

int

用户预留qq号

campus

string

用户所在校区

Response

{
	"success": true,
	"orderid": "xxx"
}
属性
类型
描述

status

string

是否创建成功

orderid

int

工单号

Last updated

Was this helpful?