/SysNoticeAction 注:滚动通知rollNotice改为websocket传值:这个方法为之前轮询实现实时的接口
接口列表
POST接口
/getNotice:获取通知
request:
header:
content-type=appliation/json
token=登录令牌token
body:
{
"c_noticeState":"", //通知状态(Y:已通知,N:未通知)
"c_readState":"", //读取状态(Y:已读取,N:未读取)
"c_noticeType":"", //通知类型(1:信息,2:告警,3:错误)
"pageIndex":"",
"pageSize":"",
"order":""
}
response:
body:
{
code:20000,
msg:"",
data:{"pagination":[{},{},{}],
}
}
/setReaded:标记为已读
request:
header:
content-type=appliation/json
token=登录令牌token
body:
{
"params":["","",""], //这些params中置放id数组,如果有更好的格式,可以商量
}
response:
body:
{
code:20000,
msg:"",
}
/delNotice:删除通知
request:
header:
content-type=appliation/json
token=登录令牌token
body:
{
"params":["","",""],
}
response:
body:
{
code:20000,
msg:"",
}
/setAllReaded:全部标记为已读
request:
header:
content-type=appliation/json
token=登录令牌token
body:
{
"c_noticeType":"",通知类型(1:信息,2:告警,3:错误)
}
response:
body:
{
code:20000,
msg:"",
}
GET接口
/getNoticeCount:获取通知数
request:
header:
content-type=
-
response:
header:
content-type=text/html; charset=utf-8
body:
```json {
code:20000,
msg:"",
Data:{"noticeCount":[{},{},{}],
}
noticeCount中的内容为:,
noticeCnt; 全部信息
msgunReadCnt; 全部未读
msgreadCnt; 全部已读
msgreadInfoCnt; 已读
msgreadWarnCnt; 告警
msgreadErrorCnt; 错误
msgunReadInfoCnt; 未读
msgunReadWarnCnt;
msgunReadErrorCnt;
```