POST api/Message/GetNormalMsgList?CookCode={CookCode}&CustID={CustID}&MsgType={MsgType}&PageIndex={PageIndex}&PageSize={PageSize}
【可用】登录用户--普通消息列表
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
CookCode |
登录Token |
string |
Required |
CustID |
当前登录用户ID |
integer |
Required |
MsgType |
消息类型:0表示所有消息,1表示公告,2表示通知 |
integer |
Default value is 0 |
PageIndex |
当前页 |
integer |
Default value is 1 |
PageSize |
分页大小 |
integer |
Default value is 10 |
Body Parameters
None.
Response Information
Resource Description
RequestResultOfListOfNormalMsgModelName | Description | Type | Additional information |
---|---|---|---|
ResultCode | integer |
None. |
|
Message | string |
None. |
|
Data | Collection of NormalMsgModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "ResultCode": 1, "Message": "sample string 2", "Data": [ { "MsgID": 1, "MsgType": 2, "MsgTypeName": "sample string 3", "MsgTitle": "sample string 4", "MsgContent": "sample string 5", "MsgTime": "sample string 6" }, { "MsgID": 1, "MsgType": 2, "MsgTypeName": "sample string 3", "MsgTitle": "sample string 4", "MsgContent": "sample string 5", "MsgTime": "sample string 6" } ] }
text/html
Sample:
{"ResultCode":1,"Message":"sample string 2","Data":[{"MsgID":1,"MsgType":2,"MsgTypeName":"sample string 3","MsgTitle":"sample string 4","MsgContent":"sample string 5","MsgTime":"sample string 6"},{"MsgID":1,"MsgType":2,"MsgTypeName":"sample string 3","MsgTitle":"sample string 4","MsgContent":"sample string 5","MsgTime":"sample string 6"}]}
application/xml, text/xml
Sample:
<RequestResultOfArrayOfNormalMsgModelLVEGsFhm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MF.Common"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/MF.WebApi.Models"> <d2p1:NormalMsgModel> <d2p1:MsgContent>sample string 5</d2p1:MsgContent> <d2p1:MsgID>1</d2p1:MsgID> <d2p1:MsgTime>sample string 6</d2p1:MsgTime> <d2p1:MsgTitle>sample string 4</d2p1:MsgTitle> <d2p1:MsgType>2</d2p1:MsgType> <d2p1:MsgTypeName>sample string 3</d2p1:MsgTypeName> </d2p1:NormalMsgModel> <d2p1:NormalMsgModel> <d2p1:MsgContent>sample string 5</d2p1:MsgContent> <d2p1:MsgID>1</d2p1:MsgID> <d2p1:MsgTime>sample string 6</d2p1:MsgTime> <d2p1:MsgTitle>sample string 4</d2p1:MsgTitle> <d2p1:MsgType>2</d2p1:MsgType> <d2p1:MsgTypeName>sample string 3</d2p1:MsgTypeName> </d2p1:NormalMsgModel> </Data> <Message>sample string 2</Message> <ResultCode>1</ResultCode> </RequestResultOfArrayOfNormalMsgModelLVEGsFhm>