设备添加
POST
192.168.0.23:8044/magicDevice/add
请求参数
参数名
类型
描述
必填
deviceCode
设备编码
必填
deviceName
设备名
必填
comment
备注
可选
type
设备类型 192.168.0.23:8044/magicList/deviceType
必填
brand
品牌名称
必填
location
位置描述 左或者右 192.168.0.23:8044/magicList/deviceLocation
必填
belongType
所在位置类型 0列车 1站点 192.168.0.23:8044/magicList/deviceBelongType
必填
belongCode
所在位置编号192.168.0.23:8044/magicList/train 查找列车编号 192.168.0.23:8044/magicList/station 查找站点编号
必填
carriageNo
车厢号(如果为列车则必填)
必填
runStatus
运行状态 0正常,1网络故障,2设备故障
可选
networkWay
联网方式 0有线 1无线 192.168.0.23:8044/magicList/deviceNetworkWay
必填
deviceStatus
设备状态0上线,1下线,2检修
可选
ip
ip地址
必填
响应参数
参数名
类型
描述
必填
status
int
2 添加成功 -1参数错误 -2编号重复
必填
message
string
示例:添加成功
必填
data
object
示例:null
必填