###登录
POST {{baseUrl}}/login/login
Content-Type: application/json

{
"loginName":"admin",
"password":"admin",
"securityCode":"8888"
}

> {%
client.global.set("SmsSet_id", JSON.parse(response.body).data.id);
client.global.set("authToken", JSON.parse(response.body).data.token);
%}

###设备管理列表
POST {{baseUrl}}/device/infoByCode
Content-Type: application/json

{

    "deviceCode":"18-93-7F-C0-AD-B5"
}


###设备管理更新与保存
POST {{baseUrl}}/device/save
Authorization: {{authToken}}
Content-Type: application/json

{
        "deviceName":"ymkpn3",
        "roomId":373,
        "roomName":"vmk7g3",
        "deviceCode":"xp4fls",
        "deviceMac":"zqitew",
        "siteId":1,
        "siteCode":"16va6i",
        "siteName":"1p82mk",
        "productCode":"p4dfgd",
        "productName":"dtap3v",
        "deviceFirmname":"y0vsvl",
        "resolution":0,
        "deviceInBuilding":307,
        "deviceInFloor":804,
        "defectsLiabilityPeriod":"1701619200000",
        "leadingOfficial":"m25mxa",
        "deviceAddr":"50aye2",
        "leadingOfficialTelephone":"k7pbuc",
        "devicePhotoPath":"h515jt",
        "ip":"x01b6k",
        "centernum":"7jdo5e",
        "port":"o4lbv4",
        "deviceStatus":0,
        "enabled":1,
        "deviceRemark":"rcjjtp",
        "onlineTime":"1701619200000",
        "offlineTime":"1701619200000",
}

> {%
client.global.set("Device_id", JSON.parse(response.body).data.id);
%}

###设备管理查看
GET {{baseUrl}}/device/info?id={{Device_id}}
Accept: application/json

###设备管理编辑
GET {{baseUrl}}/device/edit?id={{Device_id}}
Accept: application/json


###设备管理删除
GET {{baseUrl}}/device/delete?id={{Device_id}}
Authorization: {{authToken}}
Accept: application/json




