/SysNoticeAction 注:滚动通知rollNotice改为websocket传值:这个方法为之前轮询实现实时的接口


接口列表

POST接口

/getNotice:获取通知

request:

header:
  • content-type=appliation/json
  • token=登录令牌token
    body:
    1. {
    2. "c_noticeState":"", //通知状态(Y:已通知,N:未通知)
    3. "c_readState":"", //读取状态(Y:已读取,N:未读取)
    4. "c_noticeType":"", //通知类型(1:信息,2:告警,3:错误)
    5. "pageIndex":"",
    6. "pageSize":"",
    7. "order":""
    8. }

    response:

    body:
    1. {
    2. code:20000,
    3. msg:"",
    4. data:{"pagination":[{},{},{}],
    5. }
    6. }

/setReaded:标记为已读

request:

header:
  • content-type=appliation/json
  • token=登录令牌token
    body:
    1. {
    2. "params":["","",""], //这些params中置放id数组,如果有更好的格式,可以商量
    3. }

    response:

    body:

    1. {
    2. code:20000,
    3. msg:"",
    4. }

/delNotice:删除通知

request:

header:
  • content-type=appliation/json
  • token=登录令牌token
    body:
    1. {
    2. "params":["","",""],
    3. }

    response:

    body:
    1. {
    2. code:20000,
    3. msg:"",
    4. }

/setAllReaded:全部标记为已读

request:

header:
  • content-type=appliation/json
  • token=登录令牌token
    body:
    1. {
    2. "c_noticeType":"",通知类型(1:信息,2:告警,3:错误)
    3. }

    response:

    body:
    1. {
    2. code:20000,
    3. msg:"",
    4. }

GET接口

/getNoticeCount:获取通知数

request:

header:
  • content-type=
  • token=登录令牌token

    response:

    header:
  • content-type=text/html; charset=utf-8

    body:

    ```json {

    1. code:20000,
    2. msg:"",
    3. Data:{"noticeCount":[{},{},{}],
    4. }
    5. noticeCount中的内容为:,
    6. noticeCnt; 全部信息
    7. msgunReadCnt; 全部未读
    8. msgreadCnt; 全部已读
    9. msgreadInfoCnt; 已读
    10. msgreadWarnCnt; 告警
    11. msgreadErrorCnt; 错误
    12. msgunReadInfoCnt; 未读
    13. msgunReadWarnCnt;
    14. msgunReadErrorCnt;

```