获取维护工单列表
开发中
POST
/api/v1/system/ops/work-order/index
请求参数
Header 参数
iThings-token
string
可选
默认值:
{{iThings-token}}
iThings-project-id
string
可选
默认值:
1786838173980422144
iThings-app-code
string
可选
默认值:
{{iThings-app-code}}
iThings-user-role
string
可选
默认值:
1
Accept-Language
string
可选
默认值:
en
iThings-tenant-code
string
可选
Body 参数application/json
page
object
可选
page
integer
页码
size
integer
每页大小
status
integer
可选
type
string
工单类型
示例
{
"page": {
"page": 0,
"size": 0
},
"status": 0,
"type": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/system/ops/work-order/index' \
--header 'iThings-token: {{iThings-token}}' \
--header 'iThings-project-id: 1786838173980422144' \
--header 'iThings-app-code: {{iThings-app-code}}' \
--header 'iThings-user-role: 1' \
--header 'Accept-Language: en' \
--header 'iThings-tenant-code;' \
--header 'Content-Type: application/json' \
--data-raw '{
"page": {
"page": 0,
"size": 0
},
"status": 0,
"type": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer | null
返回code
msg
string
返回消息
默认值:
success
data
object
必需
list
array[object (OpsWorkOrder) {11}]
必需
total
integer
必需
示例
{
"code": 200,
"msg": "success",
"data": {
"total": 1,
"list": [
{
"id": 1,
"number": "DMWO202404070001",
"raiseUserID": "1740358057038188544",
"areaID": "72",
"type": "deviceMaintenance",
"params": {
"areaNamePath": "3楼-前台-会议室",
"deviceAlias": "fff",
"deviceName": "xxx",
"productID": "xxx",
"userName": "xxx@qq.com"
},
"issueDesc": "设备不正常",
"status": 3,
"createdTime": 1712496431,
"handleTime": 1712496538,
"finishedTime": 1712498223
}
]
}
}
🟢200成功返回

扫码加入 iThings微信交流群

