新增设备
POST
http://localhost:8084/web/device/addOrUpdateDevice
请求参数
参数名
类型
描述
必填
deviceId
int
(不填或0新增设备)示例:0
必填
deviceName
string
(设备名)示例:11111
必填
factoryNumber
string
(工厂编号)示例:dfgffd
必填
deviceModel
string
(设备型号)示例:kkkk
必填
dtId
int
(设备类型id)示例:1
必填
address
string
(地址)示例:一区
必填
pollingPeriod
string
(巡查周期)示例:每周一次
必填
deviceCertificate
string
(设备证书)示例:SY0201BK27638
必填
operateCertificate
操作证书
必填
declareStatus
设备申报(1未进行 2进行中 3已完成)
必填
enterTime
入场时间(年-月-日)
必填
devicePics
设备图片
必填
响应参数
参数名
类型
描述
必填
timestamp
string
示例:2020-12-21T05:39:43.647+0000
必填
status
int
示例:500
必填
error
string
示例:Internal Server Error
必填
message
string
示例:Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: the request was rejected because no multipart boundary was found
必填
path
string
示例:/web/device/addOrUpdateDevice
必填