POST dz_api/Record/Search

查询消息记录

Request Information

URI Parameters

None.

Body Parameters

MessageSearchModel
NameDescriptionTypeAdditional information
TemplateId

模板ID

integer

None.

StartTime

开始时间 - 发送时间

date

None.

EndTime

结束时间 - 发送时间

date

None.

SendTo

客户ID

integer

None.

Sender

发送人ID

integer

None.

Status

发送状态

SendStatusEnums

None.

PageSize

页大小

integer

None.

PageIndex

页码

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "TemplateId": 1,
  "StartTime": "2024-04-18T23:48:01.5821833+08:00",
  "EndTime": "2024-04-18T23:48:01.5821833+08:00",
  "SendTo": 4,
  "Sender": 5,
  "Status": 1010,
  "PageSize": 6,
  "PageIndex": 7
}

application/xml, text/xml

Sample:
<MessageSearchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAa.Model.Message">
  <EndTime>2024-04-18T23:48:01.5821833+08:00</EndTime>
  <IsSupperAdmin>true</IsSupperAdmin>
  <PageIndex>7</PageIndex>
  <PageSize>6</PageSize>
  <SendTo>4</SendTo>
  <Sender>5</Sender>
  <StartTime>2024-04-18T23:48:01.5821833+08:00</StartTime>
  <Status>Ready</Status>
  <TemplateId>1</TemplateId>
</MessageSearchModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

查询消息记录

PagedListOfMessageRecordModel
NameDescriptionTypeAdditional information
Items

Collection of MessageRecordModel

None.

Total

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "RecordId": 1,
      "SendTo": 2,
      "SendToName": "sample string 3",
      "AuthPhone": "sample string 4",
      "Sender": 5,
      "SenderName": "sample string 6",
      "ScheduleSending": true,
      "CustmizeDate": "2024-04-18T23:48:01.5821833+08:00",
      "Title": "sample string 9",
      "Body": "sample string 10",
      "SendDate": "2024-04-18T23:48:01.5821833+08:00",
      "ScheduleSendingText": "sample string 12",
      "SendDateText": "sample string 13",
      "StatusText": "sample string 14",
      "GroupName": "sample string 15",
      "ErrorMessage": "sample string 16",
      "Status": 17
    },
    {
      "RecordId": 1,
      "SendTo": 2,
      "SendToName": "sample string 3",
      "AuthPhone": "sample string 4",
      "Sender": 5,
      "SenderName": "sample string 6",
      "ScheduleSending": true,
      "CustmizeDate": "2024-04-18T23:48:01.5821833+08:00",
      "Title": "sample string 9",
      "Body": "sample string 10",
      "SendDate": "2024-04-18T23:48:01.5821833+08:00",
      "ScheduleSendingText": "sample string 12",
      "SendDateText": "sample string 13",
      "StatusText": "sample string 14",
      "GroupName": "sample string 15",
      "ErrorMessage": "sample string 16",
      "Status": 17
    }
  ],
  "Total": 1
}

application/xml, text/xml

Sample:
<PagedListOfMessageRecordModel8Goe4i2y xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAa.Model">
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/LemonAa.WebApi.Areas.Message.Models">
    <d2p1:MessageRecordModel>
      <d2p1:AuthPhone>sample string 4</d2p1:AuthPhone>
      <d2p1:Body>sample string 10</d2p1:Body>
      <d2p1:CustmizeDate>2024-04-18T23:48:01.5821833+08:00</d2p1:CustmizeDate>
      <d2p1:ErrorMessage>sample string 16</d2p1:ErrorMessage>
      <d2p1:GroupName>sample string 15</d2p1:GroupName>
      <d2p1:RecordId>1</d2p1:RecordId>
      <d2p1:ScheduleSending>true</d2p1:ScheduleSending>
      <d2p1:ScheduleSendingText>sample string 12</d2p1:ScheduleSendingText>
      <d2p1:SendDate>2024-04-18T23:48:01.5821833+08:00</d2p1:SendDate>
      <d2p1:SendDateText>sample string 13</d2p1:SendDateText>
      <d2p1:SendTo>2</d2p1:SendTo>
      <d2p1:SendToName>sample string 3</d2p1:SendToName>
      <d2p1:Sender>5</d2p1:Sender>
      <d2p1:SenderName>sample string 6</d2p1:SenderName>
      <d2p1:StatusText>sample string 14</d2p1:StatusText>
      <d2p1:Title>sample string 9</d2p1:Title>
    </d2p1:MessageRecordModel>
    <d2p1:MessageRecordModel>
      <d2p1:AuthPhone>sample string 4</d2p1:AuthPhone>
      <d2p1:Body>sample string 10</d2p1:Body>
      <d2p1:CustmizeDate>2024-04-18T23:48:01.5821833+08:00</d2p1:CustmizeDate>
      <d2p1:ErrorMessage>sample string 16</d2p1:ErrorMessage>
      <d2p1:GroupName>sample string 15</d2p1:GroupName>
      <d2p1:RecordId>1</d2p1:RecordId>
      <d2p1:ScheduleSending>true</d2p1:ScheduleSending>
      <d2p1:ScheduleSendingText>sample string 12</d2p1:ScheduleSendingText>
      <d2p1:SendDate>2024-04-18T23:48:01.5821833+08:00</d2p1:SendDate>
      <d2p1:SendDateText>sample string 13</d2p1:SendDateText>
      <d2p1:SendTo>2</d2p1:SendTo>
      <d2p1:SendToName>sample string 3</d2p1:SendToName>
      <d2p1:Sender>5</d2p1:Sender>
      <d2p1:SenderName>sample string 6</d2p1:SenderName>
      <d2p1:StatusText>sample string 14</d2p1:StatusText>
      <d2p1:Title>sample string 9</d2p1:Title>
    </d2p1:MessageRecordModel>
  </Items>
  <Total>1</Total>
</PagedListOfMessageRecordModel8Goe4i2y>