GET api/News/GetNewsCategory

获取资讯分类

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of NewsCategory
NameDescriptionTypeAdditional information
Id

integer

None.

CategoryName

string

None.

Layer

integer

None.

Parent

integer

None.

Tag

integer

None.

Union

string

None.

States

integer

None.

CreateTime

date

None.

TypeId

integer

None.

OrderBy

integer

None.

EK_Identity

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "CategoryName": "sample string 2",
    "Layer": 1,
    "Parent": 1,
    "Tag": 1,
    "Union": "sample string 3",
    "States": 1,
    "CreateTime": "2026-07-26 15:42:30",
    "TypeId": 1,
    "OrderBy": 1,
    "EK_Identity": "sample string 4"
  },
  {
    "Id": 1,
    "CategoryName": "sample string 2",
    "Layer": 1,
    "Parent": 1,
    "Tag": 1,
    "Union": "sample string 3",
    "States": 1,
    "CreateTime": "2026-07-26 15:42:30",
    "TypeId": 1,
    "OrderBy": 1,
    "EK_Identity": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfNewsCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopMallBusiness.DataModel">
  <NewsCategory>
    <CategoryName>sample string 2</CategoryName>
    <CreateTime>2026-07-26T15:42:30.3592211+08:00</CreateTime>
    <EK_Identity>sample string 4</EK_Identity>
    <Id>1</Id>
    <Layer>1</Layer>
    <OrderBy>1</OrderBy>
    <Parent>1</Parent>
    <States>1</States>
    <Tag>1</Tag>
    <TypeId>1</TypeId>
    <Union>sample string 3</Union>
  </NewsCategory>
  <NewsCategory>
    <CategoryName>sample string 2</CategoryName>
    <CreateTime>2026-07-26T15:42:30.3592211+08:00</CreateTime>
    <EK_Identity>sample string 4</EK_Identity>
    <Id>1</Id>
    <Layer>1</Layer>
    <OrderBy>1</OrderBy>
    <Parent>1</Parent>
    <States>1</States>
    <Tag>1</Tag>
    <TypeId>1</TypeId>
    <Union>sample string 3</Union>
  </NewsCategory>
</ArrayOfNewsCategory>