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

{
  "loginName":"xinhx",
  "password":"xhxADMIN8@a"
}

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


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

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


###首页
POST {{baseUrl}}/login/index
Authorization: {{authToken}}
Content-Type: application/json

{}


###首页
POST {{baseUrl}}//api/callback
Authorization: {{authToken}}
Content-Type: application/json

[{"deviceCode":"26-55-E7-3F-B1-AF","messageType":"waitqueue","timestamp":"1699428063250","data":"W10="}]


###站点树
GET {{baseUrl}}/site/siteTree
Authorization: {{authToken}}
Content-Type: application/json

{}


###短信设置编辑
GET {{baseUrl}}/sms/set/edit?id={{SmsSet_id}}
Accept: application/json


###短信设置删除
GET {{baseUrl}}/sms/set/delete?id={{SmsSet_id}}
Accept: application/json


###redis 测试
GET {{baseUrl}}/test/one/49
Accept: application/json

###controoler 测试
POST {{baseUrl}}/resource/refreshUrl
Accept: application/json


###站点树 测试
GET {{baseUrl}}/sitestat/siteTree
Authorization: {{authToken}}
Accept: application/json


###设备上报
POST {{baseUrl}}/test/upload?deviceId=1



###测试form提交
POST {{baseUrl}}/test/getHcpSin/form
Content-Type:  application/x-www-form-urlencoded

affairCode=abcd1234ddddd


###测试json提交
POST {{baseUrl}}/test/getHcpSin/json
Content-Type: application/json

{"affairCode":"abcd1234ddddd"}


###测试json提交
POST {{baseUrl}}/test/sendThirdParty
Content-Type: application/json

{}

###测试json提交
POST {{baseUrl}}/api/checkVersion
Content-Type: application/json

{"deviceCode":"8C-C5-8C-02-BC-5A"}


###测试设备消息统计
POST {{baseUrl}}/device/message/stat/list
Content-Type: application/json

{
  "size": -1,
  "groupList": ["productCode","year"],
  "year": 2024,
  "siteId": 1,
  "orderColList": [{"colName":"year","sortKind":"asc"}]
}





