GET api/NewManager/GetNews?topNumber={topNumber}

得到彩市新闻

Request Information

URI Parameters

NameDescriptionTypeAdditional information
topNumber

条数

integer

Required

Body Parameters

None.

Response Information

Resource Description

得到彩市新闻

Collection of NewManagerModelsDTO
NameDescriptionTypeAdditional information
Id

id

integer

None.

Title

标题

string

None.

CreateDateTime

创建时间

date

None.

Url

跳转连接

string

None.

MenuId

菜单Id

integer

None.

Description

详情内容

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Title": "sample string 2",
    "CreateDateTime": "2022-01-26T17:15:40.9011799+08:00",
    "Url": "sample string 4",
    "MenuId": 5,
    "Description": "sample string 6"
  },
  {
    "Id": 1,
    "Title": "sample string 2",
    "CreateDateTime": "2022-01-26T17:15:40.9011799+08:00",
    "Url": "sample string 4",
    "MenuId": 5,
    "Description": "sample string 6"
  }
]

application/xml, text/xml

Sample:
<ArrayOfNewManagerModelsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZX.Model.DTO">
  <NewManagerModelsDTO>
    <CreateDateTime>2022-01-26T17:15:40.9011799+08:00</CreateDateTime>
    <Description>sample string 6</Description>
    <Id>1</Id>
    <MenuId>5</MenuId>
    <Title>sample string 2</Title>
    <Url>sample string 4</Url>
  </NewManagerModelsDTO>
  <NewManagerModelsDTO>
    <CreateDateTime>2022-01-26T17:15:40.9011799+08:00</CreateDateTime>
    <Description>sample string 6</Description>
    <Id>1</Id>
    <MenuId>5</MenuId>
    <Title>sample string 2</Title>
    <Url>sample string 4</Url>
  </NewManagerModelsDTO>
</ArrayOfNewManagerModelsDTO>