GET api/v1/Banner/GetBanner?id={id}

获取指定广告

请求信息(Request)

URI 参数

名称描述类型备注
id

广告id

integer

Required

Body 参数

None.

响应信息(Response)

资源描述

指定id的广告

RequestResultOfBannerDTO
名称描述类型备注
Data

BannerDTO

None.

Status

状态(0:成功,1:失败)

integer

None.

Message

导致失败的相关消息

string

None.

Total

集合总数,用于分页时使用

integer

None.

响应格式

application/json, text/json

Sample:
{
  "Data": {
    "ID": 1,
    "Title": "sample string 2",
    "Description": "sample string 3",
    "CurrentPrice": 4.1,
    "OriginalPrice": 5.1,
    "Type": 0,
    "TypeName": "sample string 6",
    "Departure": "sample string 7",
    "Destination": "sample string 8",
    "GoodsOrigin": "sample string 9",
    "Tips": "sample string 10",
    "FullPathImages": [
      "sample string 1",
      "sample string 2"
    ],
    "SmallFullPathImages": [
      "sample string 1",
      "sample string 2"
    ],
    "Images": "sample string 11",
    "Position": 0,
    "Url": "sample string 12",
    "PositionName": "sample string 13",
    "ItemID": 14,
    "ItemCategoryID": 15,
    "CityID": 16,
    "CityName": "sample string 17",
    "CityNames": "sample string 4,sample string 4",
    "CityIDs": "sample string 18",
    "GlobalShow": true,
    "IsShow": true,
    "SortNumer": 21,
    "CreateTime": "2025-05-04T17:57:03.5272925+08:00"
  },
  "Status": 1,
  "Message": "sample string 2",
  "Total": 3
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: “WLife.Application.DTOs.CityDTO”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: “WLife.Application.DTOs.CityDTO”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。