###登录
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/list
Authorization: {{authToken}}
Content-Type: application/json

{
    "page":1,
    "size":10
}


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

{
        "deviceName":"zhwrae",
        "roomId":667,
        "roomName":"2aeynl",
        "deviceCode":"wg5xmc",
        "deviceMac":"75ymd2",
        "siteId":1,
        "siteCode":"v9l4kt",
        "siteName":"qu3nfs",
        "productCode":"cx21r5",
        "productName":"4vndh3",
        "deviceFirmname":"wtpr9w",
        "resolution":0,
        "deviceInBuilding":509,
        "deviceInFloor":253,
        "defectsLiabilityPeriod":"1684684800000",
        "leadingOfficial":"k8uf1y",
        "deviceAddr":"afshaf",
        "leadingOfficialTelephone":"4k2r3i",
        "devicePhotoPath":"1jbs3l",
        "ip":"bqrwdd",
        "centernum":"nne6m8",
        "port":"xfwjpi",
        "deviceStatus":0,
        "enabled":1,
        "deviceRemark":"5tkj76",
        "onlineTime":"1684684800000",
        "offlineTime":"1684684800000",
}

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

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

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


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




