GET api/TMSApp/AuthUser/GetMsgList?pageIndex={pageIndex}&pageSize={pageSize}&keyWord={keyWord}&msgType={msgType}&isReaded={isReaded}

根据消息类型, 获取消息列表

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pageIndex

分页,从0开始

integer

Required

pageSize

每页显示多少项

integer

Required

keyWord

搜索关键词

string

Required

msgType

消息类型-1.全部, 1.采购订单消息, 2.货运计划消息, 3.托运消息, 4.承运分配消息, 5.运单消息,6.系统公告

integer

Required

isReaded

是否在获取消息列表时,就将消息置为已读,1.在获取消息列表同时,将消息置为已读,0.不将消息置为已读

integer

Required

Body Parameters

None.

Response Information

Resource Description

根据消息类型, 获取消息列表

MsgBaseApiPageOfMsgInfo
NameDescriptionTypeAdditional information
Status

返回状态0:失败,1:成功

integer

None.

Msg

返回消息

string

None.

Data

返回数据内容,默认为空

MsgInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "Msg": "sample string 2",
  "Data": {
    "MsgList": [
      {
        "ID": 1,
        "MsgTitle": "sample string 2",
        "MsgContent": "sample string 3",
        "Type": 4,
        "Parameter": "sample string 5",
        "IsReaded": 6,
        "CreateTime": "2024-04-26T05:45:12.9902267+08:00",
        "PictureUrl": "sample string 8",
        "VideoUrl": "sample string 9",
        "MessageCode": "sample string 10",
        "SendMessageUserName": "sample string 11",
        "MsgType": 12
      },
      {
        "ID": 1,
        "MsgTitle": "sample string 2",
        "MsgContent": "sample string 3",
        "Type": 4,
        "Parameter": "sample string 5",
        "IsReaded": 6,
        "CreateTime": "2024-04-26T05:45:12.9902267+08:00",
        "PictureUrl": "sample string 8",
        "VideoUrl": "sample string 9",
        "MessageCode": "sample string 10",
        "SendMessageUserName": "sample string 11",
        "MsgType": 12
      }
    ],
    "UnreadCnt": 1,
    "MsgType": 2
  }
}